Skip to content

delayMicroseconds(); #1799

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

Closed
tomasmickus opened this issue Jan 11, 2014 · 2 comments
Closed

delayMicroseconds(); #1799

tomasmickus opened this issue Jan 11, 2014 · 2 comments
Labels
Type: Duplicate Another item already exists for this topic

Comments

@tomasmickus
Copy link

I found that if you write less than 1 in argument (for example delayMicroseconds(0.1);) you get maximum function delay (16383us). Thats not a real bug, but took some time to find out why my loop speed was too slow, so it should be mentioned in arduino website, reference page.

@matthijskooijman
Copy link
Collaborator

delayMicroseconds only accepts integer numbers, so you can't really pass it a float like 0.1 as a value. However, I suspect the compiler automatically rounds 0.1 to 0, which triggers the bug from #1121. So fixing that bug should also fix this.

@cmaglie
Copy link
Member

cmaglie commented Jan 15, 2014

Yes, this is a duplicate of #1121

C

@cmaglie cmaglie closed this as completed Jan 15, 2014
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

4 participants