TCCR0B not initialized in DigisparkRGB example

This commit is contained in:
Michael P. Flaga 2015-10-05 13:20:42 -04:00
parent 60edebc52b
commit 2de159b44d

View File

@ -49,6 +49,9 @@ void DigisparkRGBBegin() {
#ifdef TIMSK0
TIMSK0 = (1 << TOV0); // enable overflow interrupt
#endif
#ifdef TCCR0B
TCCR0B = (1 << CS00); // start timer, no prescale
#endif
sei();