Ejemplo n.º 1
0
void setup()
{
	initBoard();
	while(true)
	{
		if(DigitalRead(D14))
		{
			DigitalWrite(D14, true);
			toneWithDelay(BuzzerPin, NOTE_E4, 100);
		}
		else
		{
			DigitalWrite(D14, false);
		}
	}
}
Ejemplo n.º 2
0
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;
    }
}