schinken/PPMEncoder

[ENHANCEMENT] Inverted PPM signal

Closed this issue · 3 comments

Hi did you consider adding an option to generate inverted PPM signal? Could be configured by an additional parameter added to the begin method, e.g.:

void begin(uint8_t outputPin, uint8_t numChannels, bool inv);

Some RC systems do require an inverted PPM.

Hi @pawelsky,

cool idea! Never thought of it.
I've implemented this in "dry" - so I don't have any hardware to test that

df1d425

Please feel free to test and report if it doesn't work! :)

Wow, that was quick!

Looks like it works. Here is the default signal
image

And here is the inverted one
image

Thank you for the Logic-Output :)

I think we can close this issue then. I already pushed a 0.3.0 release. According to Arduino-Libary-Docs, this should get pulled automatically - but it wasn't yet: https://www.arduino.cc/reference/en/libraries/ppmencoder/

Have fun with this library! :)