delay #371
Replies: 1 comment 9 replies
-
Thanks, I'll see what I managed to break with delay - I did make some changes around delay a couple of days ago that are in master, but not in released version, I guess I didn't actually test whether the new delay implementation gave the right delay >.> I had realized the old delay implementation would break when a very long delay (more than 4.2 million milliseconds - ie, someone trying to wait for a couple of hours with delay - which is bad practice, but, you know people will do it). further investigation indicated that it was done to save 24 bytes of flash - but if the new implementation just straight up doesn't work, well... there is more to it I suppose... On a 4k part you should be getting the new implementation (I kept the old one for 2k parts where that 24 bytes really matters), but if its not behaving like delay should, I need to correct that. |
Beta Was this translation helpful? Give feedback.
-
Hi. I try this sketch on attiny414 (this is only part of my program):
void loop()
{
lcd.setCursor(0, 0);
adr=adr+1;
lcd.print(adr);
delay(500);
}
When I compile this sketch with last version MegaTinyCore (I instaled it to "hardware" program directory manually), delay not works.
When I compile this sketch with some older version MegaTinyCore (I installed it through "json" web adress), all ok, delay works.
Is it fault, or I have something wrong set up ? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions