update schematic and add production files

This commit is contained in:
2021-10-08 16:00:18 +02:00
parent d83bea3725
commit 72ce01ef37
24 changed files with 296 additions and 92 deletions

View File

@@ -1,12 +1,20 @@
#include "game.h"
uint64_t last_hall_read;
void initGame(void)
{
pinMode(HALL_INPUT, ANALOG);
}
void handleGame(void)
{
uint32_t timeNow = millis();
if(timeNow - last_hall_read > HALLINTERVAL)
{
Serial.println(analogRead(HALL_INPUT));
last_hall_read = timeNow;
}
}