Skip to content

Commit 65584bf

Browse files
committed
changed default Arduino init() implementation to reduce changes in monome environment -- additional timers unnecessary for NeoPixelBus
1 parent 9a0817a commit 65584bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/arduino/wiring.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ void init()
281281
#error Timer 0 overflow interrupt not set correctly
282282
#endif
283283

284+
#if 0
284285
// timers 1 and 2 are used for phase-correct hardware pwm
285286
// this is better for motors as it ensures an even waveform
286287
// note, however, that fast pwm mode can achieve a frequency of up
@@ -389,4 +390,6 @@ void init()
389390
#elif defined(UCSR0B)
390391
UCSR0B = 0;
391392
#endif
393+
394+
#endif
392395
}

0 commit comments

Comments
 (0)