Merge pull request #11 from mpflaga/master

TCCR0B not initialized in DigisparkRGB example
This commit is contained in:
Erik Tylek Kettenburg 2015-10-10 02:14:52 -07:00
commit bd916e2eea

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();