void setup() { initBoard(); while(true) { if(DigitalRead(D14)) { DigitalWrite(D14, true); toneWithDelay(BuzzerPin, NOTE_E4, 100); } else { DigitalWrite(D14, false); } } }
void initSensors(void){ // check if the sensors have power if so go on // to the mroe interesting stuff int sensorVoltageReading = 0; LCDprintln("Init Digital Pins"); sensorVoltageReading = DigitalRead(Check_Sensors); if(sensorVoltageReading == HIGH){ #define SensorsOK LCDprintln(" [OK] "); } else{ return; } }