Disabled internal Pull-up resistors for power consumption

This commit is contained in:
DWW 2021-07-01 19:56:45 +03:00
parent cbcecddc2f
commit 63bafa9061

View File

@ -470,8 +470,10 @@ int main()
void simple_init()
{
#if 0
// Set pull-ups on button and rotary encoder
PORTB = (1 << 1) | (1 << 3) | (1 << 4);
#endif
// Prescaler 4 (1 MHz / 256 / 4 ~ 1000)
TCCR1 = (1 << CS11) | (1 << CS10);