added multiple games [broken]
This commit is contained in:
27
src/detectled.cpp
Normal file
27
src/detectled.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "Arduino.h"
|
||||
#include "detectled.h"
|
||||
#include "buttons.h"
|
||||
#include "board.h"
|
||||
|
||||
extern buttons button1;
|
||||
extern buttons button2;
|
||||
extern buttons button3;
|
||||
|
||||
uint32_t detectled[3] = {0,0,0};
|
||||
|
||||
void handleDetectLed( void )
|
||||
{
|
||||
detectled[0] = analogRead(DETECT1);
|
||||
detectled[1] = analogRead(DETECT2);
|
||||
detectled[2] = analogRead(DETECT3);
|
||||
}
|
||||
|
||||
|
||||
void initDetectLed( void )
|
||||
{
|
||||
pinMode(DETECT1, INPUT_ANALOG);
|
||||
pinMode(DETECT2, INPUT_ANALOG);
|
||||
pinMode(DETECT3, INPUT_ANALOG);
|
||||
analogReadResolution(10);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user