input: move battery ADC call to timer call

This commit is contained in:
Puck Meerburg
2026-02-06 17:51:16 +00:00
parent 88126c31b7
commit 54e09bc059
4 changed files with 17 additions and 7 deletions

10
src/input.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include "platform.h"
void button_init(void);
extern volatile int button_pressed[BUTTON_COUNT];
int get_battery_percentage(void);
int is_charging(void);
int is_plugged(void);