OS: Windows 10 Home [10.0.16299.248]
IDE: 1.8.5
Boards: Uno Rev3, Nano (clone)
A delay() sentence is in my project and just like this:
delay(500);
But when I uploaded it on an Nano clone, I can't see any delay.
After that I uploaded the built-in "Blink" to it, but still can't see any delay, LED looks always on.
I got an Arduino Uno Rev3 and uploaded Blink. Still the same.
Same thing happens to delayMicroseconds().
"BlinkWithoutDelay" works fine.
Uploading with Web Editor works fine.
Then I tried, when I use
delay(230000);
It seems like 1 sec.
It works fine maybe 3 months ago, but I just discovered this problem until today.
So is this the IDE's problem or boards' ? Or is here anyone encountered the same problem?
CrossRoads:
delay(500) delays for 500milliseconds, or 1/2 second.
delayMicrosecond(100000) delays for 100,000 microseconds, 100 millisecond, 0.1 second.
No no no
The delay() on my computer not working as millisec.
I can't get a second's delay with delay(1000) or delayMicroseconds(1000000)
Instead, delay(230000) would give about 1 sec delay
I can't see any code, and I'm not sure how this is an "Installation and Troubleshooting" question, but other than that, this is an interesting problem.
CtrlAltElite:
I can't see any code, and I'm not sure how this is an "Installation and Troubleshooting" question, but other than that, this is an interesting problem.
I guess this is the problem with IDE... so maybe Troubleshooting
And you can use Blink as code.
CtrlAltElite:
But we can't see any of your code. If we could, it may prove to be a Programming problem
Well, here's my code
In fact I'm testing my own library
So I guess I should also post on that library
... but I believe my library does not affect the rest of Arduino.h ...
There is an internal function named init() which is used to set up the timers for (among other things) the timing functions. It is called immediately before setup().
Rename your init() function to something else and that should fix the problem.
DrAzzy:
There is an internal function named init() which is used to set up the timers for (among other things) the timing functions. It is called immediately before setup().
Rename your init() function to something else and that should fix the problem.
I renamed init() to S7init()
Nothing changed
...
I guess it has nothing to do with internal init()
Cuz... uploading with Web Editor works fine...