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

Suggestion to change cc_delay to make it MCU speed agnostic #20

Open
mikkel75 opened this issue Nov 15, 2017 · 1 comment
Open

Suggestion to change cc_delay to make it MCU speed agnostic #20

mikkel75 opened this issue Nov 15, 2017 · 1 comment

Comments

@mikkel75
Copy link

It seems like the cc_delay function is heavily dependent on MCU speed, thus the timing on the CC interface won't be valid for faster MCUs. I suggest to change the function to take the MCU speed into account or use Arduino delay functions.

Any input?

@rvt
Copy link

rvt commented Jun 1, 2020

Good observation!
I don´t think this really matters, the ccXXXX might already be fast enough for the pulses generated.

This worked for me though:

void cc_delay( uint16_t d )
{
  delayMicroseconds( d);
}

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

2 participants