#include BristleBot robo; void setup() { ; robo.init(180,20); } void LOS() { SCHALTE (robo.leseSensor()) { FALLS LINKS: robo.rechtesLicht(AN); robo.linkesLicht(AUS); robo.ruecklicht(AUS); robo.fahreRechts(); break; FALLS RECHTS: robo.rechtesLicht(AUS); robo.linkesLicht(AN); robo.ruecklicht(AUS); robo.fahreLinks(); break; FALLS BEIDE: robo.rechtesLicht(AUS); robo.linkesLicht(AUS); robo.ruecklicht(AN); robo.fahreGerade(); break; }; /* WENN( robo.linkerSensor() IST HELL) { Serial.println( "hell dunkel"); robo.rechtesLichtAn(); robo.linkesLichtAus(); robo.ruecklichtAus(); robo.fahreRechts(); } SONST WENN( robo.rechterSensor() IST HELL) { Serial.println( "dunkel hell"); robo.linkesLichtAn(); robo.rechtesLichtAus(); robo.ruecklichtAus(); robo.fahreLinks(); } SONST WENN( robo.beideSensorGleich() ) { Serial.println( "dunkel dunkel"); robo.linkesLichtAus(); robo.rechtesLichtAus(); robo.ruecklichtAn(); robo.fahreGerade(); } */ }