mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-04-27 15:19:02 -07:00
Merge pull request #11 from mpflaga/master
TCCR0B not initialized in DigisparkRGB example
This commit is contained in:
commit
bd916e2eea
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user