Changed sleep mode to Power-down.

This commit is contained in:
DWW 2021-07-01 19:34:58 +03:00
parent d6fa80e21f
commit cbcecddc2f

View File

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