mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-04-27 23:29:01 -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
|
#ifdef TIMSK0
|
||||||
TIMSK0 = (1 << TOV0); // enable overflow interrupt
|
TIMSK0 = (1 << TOV0); // enable overflow interrupt
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TCCR0B
|
||||||
|
TCCR0B = (1 << CS00); // start timer, no prescale
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
sei();
|
sei();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user