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
|
// Interrupt on button and rotary encoder pins
|
||||||
PCMSK = (1 << PCINT1) | (1 << PCINT3) | (1 << PCINT4);
|
PCMSK = (1 << PCINT1) | (1 << PCINT3) | (1 << PCINT4);
|
||||||
|
|
||||||
// Interrupt type is any logical change
|
// Sleep mode - power down
|
||||||
MCUCR = (1 << ISC00);
|
MCUCR = (1 << SM1);
|
||||||
|
|
||||||
// Enable Interrupt on pin-change
|
// Enable Interrupt on pin-change
|
||||||
GIMSK = (1 << PCIE);
|
GIMSK = (1 << PCIE);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user