fix setting clock divider to /1 when it should be /2
misinterpreted docs. too much ARM in my life. the system sets up the clock divider with /2 and expects it to stay there. was setting the divider to /1 thinking it only affected peripherals. adjusted timings to compensate for the new divider.
This commit is contained in:
@@ -1073,6 +1073,8 @@ void tinyNeoPixel::show(uint16_t leds) {
|
||||
|
||||
|
||||
interrupts();
|
||||
|
||||
/*
|
||||
#if (!defined(MILLIS_USE_TIMERNONE) && !defined(MILLIS_USE_TIMERRTC) && !defined(MILLIS_USE_TIMERRTC_XTAL) && !defined(MILLIS_USE_TIMERRTC_XOSC))
|
||||
endTime = micros();
|
||||
// Save EOD time for latch on next call
|
||||
@@ -1080,6 +1082,7 @@ void tinyNeoPixel::show(uint16_t leds) {
|
||||
#else
|
||||
#pragma message("micros() is not available because millis is disabled from the tools subemnu. It is your responsibility to ensure a sufficient time has passed between calls to show(). See documentation.")
|
||||
#endif
|
||||
*/
|
||||
}
|
||||
|
||||
// Set the output pin number
|
||||
|
||||
Reference in New Issue
Block a user