update schematic and add production files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user