Changed sleep mode to Power-down.
This commit is contained in:
parent
d6fa80e21f
commit
cbcecddc2f
@ -482,8 +482,8 @@ void simple_init()
|
||||
// Interrupt on button and rotary encoder pins
|
||||
PCMSK = (1 << PCINT1) | (1 << PCINT3) | (1 << PCINT4);
|
||||
|
||||
// Interrupt type is any logical change
|
||||
MCUCR = (1 << ISC00);
|
||||
// Sleep mode - power down
|
||||
MCUCR = (1 << SM1);
|
||||
|
||||
// Enable Interrupt on pin-change
|
||||
GIMSK = (1 << PCIE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user