Skip to content

Instantly share code, notes, and snippets.

@DILL44 DILL44/pnt_en_H.ino
Created Feb 13, 2014

Embed
What would you like to do?
int sens1_1 = 8;
int sens1_2 = 9;
int sens2_1 = 10;
int sens2_2 = 11;
int segond=1000;
int led = 13;
void setup() {
pinMode(sens1_1, OUTPUT);
pinMode(sens1_2, OUTPUT);
pinMode(sens2_1, OUTPUT);
pinMode(sens2_2, OUTPUT);
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(sens1_1, HIGH);
digitalWrite(sens1_2, HIGH);
digitalWrite(sens2_1, LOW);
digitalWrite(sens2_2, LOW);
digitalWrite(led, HIGH);
delay(segond);
delay(segond);
delay(segond);
digitalWrite(sens1_1, LOW);
digitalWrite(sens1_2, LOW);
digitalWrite(sens2_1, LOW);
digitalWrite(sens2_2, LOW);
digitalWrite(led, LOW);
delay(segond);
digitalWrite(sens1_1, LOW);
digitalWrite(sens1_2, LOW);
digitalWrite(sens2_1, HIGH);
digitalWrite(sens2_2, HIGH);
digitalWrite(led, HIGH);
delay(segond);
delay(segond);
delay(segond);
digitalWrite(sens1_1, LOW);
digitalWrite(sens1_2, LOW);
digitalWrite(sens2_1, LOW);
digitalWrite(sens2_1, LOW);
digitalWrite(led, LOW);
delay(segond);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.