Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESPDmx replaced with SparkFunDMX #2613

Closed
wants to merge 1 commit into from

Conversation

berkut0
Copy link

@berkut0 berkut0 commented Apr 2, 2022

Hi.

Recently I developed my own controller "LightBrain" with RS485/DMX support.

I tried to complile firmware with DMXEsp code originally used by WLED, but the firmware could not make the DMX work. I tried to isolate the problem and compiled code purely from this library which was supposed to send simple messages, but my DMX device didn't understand it. Then I wrote a simple code in micropython and the messages started to come to the device. The code was crooked and the messages only reached the device after two sends, but it showed some problems with the ESPDmx code.

Then I ran isolated tests with the SparkFunDMX library and everything worked flawlessly. Moreover, the library already has a read from port functionality, which can be used later.

DMX.Demo.mp4

@berkut0
Copy link
Author

berkut0 commented Apr 2, 2022

Oops, my bad

Didn't check compatibility with esp8266, only ESP32

@Aircoookie
Copy link
Owner

We could either stick with ESPDMX for ESP8266 and use SparkFunDMX only on the ESP32, or we could switch to the LX libraries as proposed in #817 which would also allow for configurable pins

@berkut0 berkut0 changed the title ESPDmx replaced with SpurkFunDMX ESPDmx replaced with SparkFunDMX Apr 2, 2022
@berkut0
Copy link
Author

berkut0 commented Apr 2, 2022

LXESP32DMX great and full of capabilities library: DMX / RDM (!) / Multitasking

But there are my thoughts:

  1. More restrictive BSD license than MIT.
  2. Huge code base with differences in intitialization and usage. ESPDmx and SparkFunDMX in usage pretty similar and changes are insignificant.
  3. SparkFunDMX tested and proven

@Aircoookie
Copy link
Owner

Agreed! Then let's go with a combination of SparkFunDMX and ESPDmx :)

@berkut0
Copy link
Author

berkut0 commented Apr 4, 2022

I'm not very experienced in all this git stuff.
Can I make another commit and try another pull request?
Should I use #ifdef?

Also, does WLED currently use LEDPIN in const.h? Since the web interface has the ability to select a function pins, it looks obsolete, but I haven't been very investigative. And what you think, would it be hard to implement rx/tx/rt pin selection in web interface?

@blazoncek
Copy link
Collaborator

I'm not very experienced in all this git stuff. Can I make another commit and try another pull request? Should I use #ifdef?

Do whatever you like in a branch of your fork, then:
https://github.com/Aircoookie/WLED/wiki/How-to-properly-submit-a-PR

It makes our lives easier. 😉

@berkut0
Copy link
Author

berkut0 commented Apr 4, 2022

@blazoncek I will stick to the instructions, thank you!

@Aircoookie
Copy link
Owner

Closing in favor of #2652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants