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

Add CNTS_TO_US() and US_TO_CNTS() macros! #4

Open
ElectricRCAircraftGuy opened this issue Jan 31, 2021 · 0 comments
Open

Add CNTS_TO_US() and US_TO_CNTS() macros! #4

ElectricRCAircraftGuy opened this issue Jan 31, 2021 · 0 comments

Comments

@ElectricRCAircraftGuy
Copy link
Owner

ElectricRCAircraftGuy commented Jan 31, 2021

These will be useful so I can do this in the demos, for instance:

PPMWriter.setChannelVal(CH1, US_TO_CNTS(900)); // set channel 1 (index 0) in the PPM train to 900us

...instead of this:

PPMWriter.setChannelVal(CH1,900*2); //set channel 1 (index 0) in the PPM train to 900us

Not sure, maybe use CNTS_TO_MICROS() and MICROS_TO_CNTS() instead?

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

No branches or pull requests

1 participant