Closed arcostasi closed 4 years ago
Thanks for reporting!
Actually, it seems like the issue is in the code itself: the type of timerLed
is unsigned int, which goes from 0 to 65535.
Can you try changing the type of this variable to unsigned long
or uint32_t
and see if this fixes the issue?
p.s. thanks for posting these super-clear reproduction instructions along with the diagram file!
Worked perfectly @urish 👍
I'm sorry, for a moment I thought it could be in the simulation, I'm happy to know that it was an error in my code! :) Thanks
You're welcome :-)
Hi @urish I'm running the code below, and I noticed that the millis() function goes crazy after running for a while, approximately 1 ~ 2 min, it happened in my tests with Electron and in the online simulation.
Have any idea what it could be? Thanks
tested in the environment: https://wokwi.com/arduino/libraries/demo/blink
diagram.json
blink.ino