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

Timer class now working properly in Wemos_mini_D1 #3

Open
il-gen opened this issue May 21, 2021 · 0 comments
Open

Timer class now working properly in Wemos_mini_D1 #3

il-gen opened this issue May 21, 2021 · 0 comments

Comments

@il-gen
Copy link

il-gen commented May 21, 2021

When I set timer using --Timer timer(t_s)=std::round(1e6 / f_s);-- it seen not working properly..
I added a time control line:
now = micros();
diff= now-last;
if (timer){ // returns true once every (1/f_s) sec, determines sampling frequency
last = now;
Serial.println(diff));
but result show me Timer class time constant smaller than expected..
(Actually <AH/Timing/MillisMicrosTimer.hpp> librarry is well structured but i cannot understand what is going wrong?)

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