int pll=34;
int prl=35;
int ll=21;
int fl = 19;
int sl = 2;
int r=32;
int f=33;
int l=25;
int pl=26;
int pr=27;
int lees;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode (pll,OUTPUT);
pinMode (prl,OUTPUT);
pinMode (ll,OUTPUT);
pinMode (sl,OUTPUT);
pinMode (fl,OUTPUT);
pinMode (pl,INPUT);
pinMode (pr,INPUT);
pinMode (l,INPUT);
pinMode (f,INPUT);
pinMode (r,INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
lees = digitalRead(r);
if (lees =1)
{
digitalWrite(sl, HIGH);
//delay(500);
}
else{
digitalWrite(sl, LOW);
//delay(500);
}
delay(10); // this speeds up the simulation
}
stop
links
lichten
verstraler
rechts
links
rechts
verstraler
lichten
rem