Repository navigation
V2 overhaul - #12
Merged
Merged
V2 overhaul#12
Conversation
Bump version number Rewrite entire library Now uses interrupts instead of timer for break signal detection DMX serial port is no longer restarted over and over Should work with any platform (only tested with SparkFun ESP32 Thing Plus boards so far)
Much more simplified, does not require any external components like servos and LEDs Uses updated DMX library
Using an interrupt on the UART RX pin may not work on all platforms (it actually doesn't work with ESP32 Arduino core v3.0.0 Alpha 1). This does away with the interrupt synchronization, and instead just looks at the received data in the UART buffer. A break signal just looks like an extra 0 byte. There is a risk of improper synchronization, but the bytes are checked for zeros and the buffer is flushed if it looks wrong. Testing has shown it to work well. This also removes the requirement for the DMX class to know the TX and RX pins, another simplification Also moved _dmxBuffer.begin() outside of begin(), caller is required to begin the serial port with the proper settings. This makes it easier to ensure pins and such are set properly on any platform
Update to use new DMX library syntax Also fix capitalization of WiFiUDP
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrite of entire library:
Now uses interrupts instead of timer for break signal detectionbegin()of this library, which should help with platform compatibility