moved all code to gameclass

This commit is contained in:
2021-03-31 20:20:18 +02:00
parent 5acc1b8c3c
commit e345a8a687
15 changed files with 290 additions and 200 deletions

View File

@@ -13,7 +13,7 @@
void initBattery(void)
{
#ifdef VBATTPIN
battery.begin(VBATTREF, (R12+R13)/R13); //R1 = 220K, R2 = 100K, factor = (R1+R2)/R2
battery.begin(VBATTREF, (R12+R13)/R13);
#endif
}
@@ -22,7 +22,7 @@ void batterydisplay(void)
#ifdef VBATTPIN
uint16_t currentlevel = battery.level();
if (currentlevel > 90)
if (currentlevel > 80)
{
turnOnLed(3);
}