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

millis() function hangs oled #9

Open
unbracedcat500 opened this issue Aug 23, 2020 · 2 comments
Open

millis() function hangs oled #9

unbracedcat500 opened this issue Aug 23, 2020 · 2 comments

Comments

@unbracedcat500
Copy link

Hello,
I've noticed the IF statement (if millis() > buzzerPeriod) in case REFLOW_STATE_COMPLETE hangs the OLED. Even after pressing RESET button or re uploading the code, the OLED remains in the previous state(NO ADAFRUIT LOGO appears). Is it okay if I use delay function instead of millis to turn ON the buzzer?

@rocketscream
Copy link
Owner

It shouldn't, it's just a check whether the time has lapsed. I have never seen it hang until today at that stage. You can't use delay because we need to stay in that state while servicing other processes (read sensor, update OLED). Using delay means blocking those processes.

@VILLO88
Copy link

VILLO88 commented Nov 15, 2020

i am having the same problems, has anyone found a solution?

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

3 participants