You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: megaavr/cores/megatinycore/timers.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@
141
141
#defineTIME_TRACKING_TIMER_PERIOD (0xFFFF)
142
142
#defineTIME_TRACKING_TIMER_DIVIDER (32)
143
143
#defineMILLIS_INC (64000)
144
-
#define_RTC_PRESCALE_VALUE (0x05)
144
+
#define_RTC_PRESCALE_VALUE (0x28) //change from 0x05 to set prescaler to divide by 32, prescaler field is shifted by three bits. Alows millis()/delay() to run at correct speed.
145
145
#else
146
146
#error "Millis timer not specified, nor is millis disabled - can't happen!"
0 commit comments