From 63bafa90615953d39257f327c932a87b8cb82ad9 Mon Sep 17 00:00:00 2001 From: DWW Date: Thu, 1 Jul 2021 19:56:45 +0300 Subject: [PATCH] Disabled internal Pull-up resistors for power consumption --- code/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/main.c b/code/main.c index d0bf789..c881a7c 100644 --- a/code/main.c +++ b/code/main.c @@ -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);