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
micros() function missing in Arduino.h #54
Comments
I have the same issue. I have not even been able to execute the basic examples for HTCC-AB01 due to the error of the micros () function. |
This appears to be a bug and really should be fixed for compatibility with the basics of the Arduino framework. |
I have same problem |
Also having the same issue with Lorawan example getting the error in Adafruit_NeoPixel.h and using a dallas DS18B20. I have Adafruit NeoPixel v1.3.5 installed.
|
Just added two examples: micros and millis. micros The delay in the example is 1000ms, ideally, the output value here should be 1000000. But look at the printed time stamp, each print have 20 - 22ms error. It means the actual So the error is That’s why I didn’t use system ticker for LoRaWAN operations. Another problem is the system ticker can’t run during the deep sleep period, wake up from deep sleep will make the micros back to 0. The millis function uses external 32.768KHz RTC clock, it a very accurate timer, and can run during the deep sleep period. As the picture has shown, it’s the same with the delay time. But the minimum period is |
This problem also talk here: |
For using ultrasonic sensors, accurate (microsecond) time measurements are necessary.
The
micros()
function seems currently not implemented in the board definition for the ArduinoIDE.Using the implemented
millis()
function is unfortunately not precise enough.Can the
micros()
function be implemented inArduino.h
as well?The text was updated successfully, but these errors were encountered: