aboutsummaryrefslogtreecommitdiff
path: root/Code_Arduino_Telecommande
diff options
context:
space:
mode:
authorNeodarZ <bretoncorentin44@gmail.com>2015-03-09 22:53:53 +0100
committerNeodarZ <bretoncorentin44@gmail.com>2015-03-09 22:53:53 +0100
commit316875376fbea1bbe45b789459e51a7f08c9da9e (patch)
tree801429baab39a57867496d8317739c2cbfb8b41f /Code_Arduino_Telecommande
parentbcd31ee41db04d4f5cf173cb1e22d3ffe4e0b73e (diff)
downloadRobot-Cable-316875376fbea1bbe45b789459e51a7f08c9da9e.tar.xz
Robot-Cable-316875376fbea1bbe45b789459e51a7f08c9da9e.zip
Bordel fichiers qui ne devrait pas être la
Diffstat (limited to '')
-rw-r--r--Code_Arduino_Telecommande/Code_Arduino_Telecommande.ino120
1 files changed, 0 insertions, 120 deletions
diff --git a/Code_Arduino_Telecommande/Code_Arduino_Telecommande.ino b/Code_Arduino_Telecommande/Code_Arduino_Telecommande.ino
deleted file mode 100644
index 4392bd3..0000000
--- a/Code_Arduino_Telecommande/Code_Arduino_Telecommande.ino
+++ /dev/null
@@ -1,120 +0,0 @@
-int LED_ROUGE = 2;
-int LED_ORANGE = 3;
-int LED_VERTE = 4;
-int BOUTON_GAUCHE = 8;
-int BOUTON_DROITE = 11;
-int BOUTON_BAS = 10;
-int BOUTON_HAUT = 9;
-int BOUTON_VAL = 12;
-
-int ETAT_BOUTON_GAUCHE;
-int ETAT_BOUTON_DROITE;
-int ETAT_BOUTON_HAUT;
-int ETAT_BOUTON_BAS;
-int ETAT_BOUTON_VAL;
-
-void setup()
-{
- Serial.begin(9600);
- pinMode(LED_ROUGE, OUTPUT);
- pinMode(LED_VERTE, OUTPUT);
- pinMode(LED_ORANGE, OUTPUT);
- pinMode(BOUTON_GAUCHE, INPUT);
- pinMode(BOUTON_DROITE, INPUT);
- pinMode(BOUTON_BAS, INPUT);
- pinMode(BOUTON_HAUT, INPUT);
- pinMode(BOUTON_VAL, INPUT);
-}
-
-void loop()
-{
- ETAT_BOUTON_GAUCHE = digitalRead(BOUTON_GAUCHE);
- if (ETAT_BOUTON_GAUCHE == 0)
- {
- digitalWrite(LED_VERTE, 1);
- Serial.print("BTG");
- Serial.print(1);
- Serial.print(";");
- delay(500);
- }
- else
- {
- digitalWrite(LED_VERTE, 0);
- Serial.print("BTG");
- Serial.print(0);
- Serial.print(";");
- }
-
-
- ETAT_BOUTON_DROITE = digitalRead(BOUTON_DROITE);
- if (ETAT_BOUTON_DROITE == 0)
- {
- digitalWrite(LED_ORANGE, 1);
- Serial.print("BTD");
- Serial.print(1);
- Serial.print(";");
- delay(500);
- }
- else
- {
- digitalWrite(LED_ORANGE, 0);
- Serial.print("BTD");
- Serial.print(0);
- Serial.print(";");
- }
-
-
- ETAT_BOUTON_BAS = digitalRead(BOUTON_BAS);
- if (ETAT_BOUTON_BAS == 0)
- {
- digitalWrite(LED_ROUGE, 1);
- Serial.print("BTB");
- Serial.print(1);
- Serial.print(";");
- delay(500);
- }
- else
- {
- digitalWrite(LED_ROUGE, 0);
- Serial.print("BTB");
- Serial.print(0);
- Serial.print(";");
- }
-
-
- ETAT_BOUTON_HAUT = digitalRead(BOUTON_HAUT);
- if (ETAT_BOUTON_HAUT == 0)
- {
- digitalWrite(LED_ROUGE, 1);
- Serial.print("BTH");
- Serial.print(1);
- Serial.print(";");
- delay(500);
- }
- else
- {
- digitalWrite(LED_ROUGE, 0);
- Serial.print("BTH");
- Serial.print(0);
- Serial.print(";");
- }
-
-
- ETAT_BOUTON_VAL = digitalRead(BOUTON_VAL);
- if (ETAT_BOUTON_VAL == 0)
- {
- digitalWrite(LED_ROUGE, 1);
- Serial.print("BTV");
- Serial.print(1);
- Serial.println(";");
- delay(500);
- }
- else
- {
- digitalWrite(LED_ROUGE, 0);
- Serial.print("BTV");
- Serial.print(0);
- Serial.println(";");
- }
-}
-