aboutsummaryrefslogtreecommitdiff
path: root/Code_Processing_Menu
diff options
context:
space:
mode:
Diffstat (limited to 'Code_Processing_Menu')
-rw-r--r--Code_Processing_Menu/..pngbin145 -> 0 bytes
-rw-r--r--Code_Processing_Menu/0.pngbin147 -> 0 bytes
-rw-r--r--Code_Processing_Menu/1.pngbin143 -> 0 bytes
-rw-r--r--Code_Processing_Menu/2.pngbin164 -> 0 bytes
-rw-r--r--Code_Processing_Menu/3.pngbin164 -> 0 bytes
-rw-r--r--Code_Processing_Menu/4.pngbin170 -> 0 bytes
-rw-r--r--Code_Processing_Menu/5.pngbin164 -> 0 bytes
-rw-r--r--Code_Processing_Menu/6.pngbin186 -> 0 bytes
-rw-r--r--Code_Processing_Menu/7.pngbin158 -> 0 bytes
-rw-r--r--Code_Processing_Menu/8.pngbin167 -> 0 bytes
-rw-r--r--Code_Processing_Menu/9.pngbin176 -> 0 bytes
-rw-r--r--Code_Processing_Menu/ChoixPlats.pngbin1260 -> 0 bytes
-rw-r--r--Code_Processing_Menu/Code_Processing_Menu.pde206
-rw-r--r--Code_Processing_Menu/Lecture.pde28
-rw-r--r--Code_Processing_Menu/menu_boissons_1.pngbin6241 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_boissons_2.pngbin6296 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_boissons_3.pngbin6235 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_desserts_1.pngbin6389 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_desserts_2.pngbin6477 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_desserts_3.pngbin6411 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_entree_1.pngbin6226 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_entree_2.pngbin6239 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_entree_3.pngbin6220 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_plats_1.pngbin6264 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_plats_2.pngbin6309 -> 0 bytes
-rw-r--r--Code_Processing_Menu/menu_plats_3.pngbin6278 -> 0 bytes
-rw-r--r--Code_Processing_Menu/sketch.properties2
-rw-r--r--Code_Processing_Menu/validation.pngbin5722 -> 0 bytes
-rw-r--r--Code_Processing_Menu/validation_finale.pngbin5562 -> 0 bytes
-rw-r--r--Code_Processing_Menu/€.pngbin173 -> 0 bytes
30 files changed, 0 insertions, 236 deletions
diff --git a/Code_Processing_Menu/..png b/Code_Processing_Menu/..png
deleted file mode 100644
index a0466b4..0000000
--- a/Code_Processing_Menu/..png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/0.png b/Code_Processing_Menu/0.png
deleted file mode 100644
index 38fd29a..0000000
--- a/Code_Processing_Menu/0.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/1.png b/Code_Processing_Menu/1.png
deleted file mode 100644
index a490ede..0000000
--- a/Code_Processing_Menu/1.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/2.png b/Code_Processing_Menu/2.png
deleted file mode 100644
index a04ab85..0000000
--- a/Code_Processing_Menu/2.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/3.png b/Code_Processing_Menu/3.png
deleted file mode 100644
index 1122db7..0000000
--- a/Code_Processing_Menu/3.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/4.png b/Code_Processing_Menu/4.png
deleted file mode 100644
index 63399a3..0000000
--- a/Code_Processing_Menu/4.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/5.png b/Code_Processing_Menu/5.png
deleted file mode 100644
index 7ddc206..0000000
--- a/Code_Processing_Menu/5.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/6.png b/Code_Processing_Menu/6.png
deleted file mode 100644
index 0622a08..0000000
--- a/Code_Processing_Menu/6.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/7.png b/Code_Processing_Menu/7.png
deleted file mode 100644
index 2284156..0000000
--- a/Code_Processing_Menu/7.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/8.png b/Code_Processing_Menu/8.png
deleted file mode 100644
index ed04fab..0000000
--- a/Code_Processing_Menu/8.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/9.png b/Code_Processing_Menu/9.png
deleted file mode 100644
index 2aff7bd..0000000
--- a/Code_Processing_Menu/9.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/ChoixPlats.png b/Code_Processing_Menu/ChoixPlats.png
deleted file mode 100644
index b228a3c..0000000
--- a/Code_Processing_Menu/ChoixPlats.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/Code_Processing_Menu.pde b/Code_Processing_Menu/Code_Processing_Menu.pde
deleted file mode 100644
index a206ce9..0000000
--- a/Code_Processing_Menu/Code_Processing_Menu.pde
+++ /dev/null
@@ -1,206 +0,0 @@
-import processing.serial.*;
-Serial monPortamoi; // Create object from Serial class
-
-PImage Menu_Entree_1;
-PImage Menu_Entree_2;
-PImage Menu_Entree_3;
-PImage Menu_Plats_1;
-PImage Menu_Plats_2;
-PImage Menu_Plats_3;
-PImage Menu_Desserts_1;
-PImage Menu_Desserts_2;
-PImage Menu_Desserts_3;
-PImage Menu_Boissons_1;
-PImage Menu_Boissons_2;
-PImage Menu_Boissons_3;
-PImage Validation;
-PImage Validation_Finale;
-PImage ChoixPlats;
-
-PImage NB_0;
-PImage NB_1;
-PImage NB_2;
-PImage NB_3;
-PImage NB_4;
-PImage NB_5;
-PImage NB_6;
-PImage NB_7;
-PImage NB_8;
-PImage NB_9;
-PImage NB_p;
-PImage NB_e;
-
- String maChaineRecue;
- String[] valeurLueBTG;
- String[] valeurLueBTD;
- String[] valeurLueBTH;
- String[] valeurLueBTB;
- String[] valeurLueBTV;
- float BTG=0;
- float BTD=0;
- float BTH=0;
- float BTB=0;
- float BTV=0;
-
- // Initialisation des onglets des plats et du bouton validation
- int Onglet = 1;
- int Plats = 1;
- int BoutonValidation = 0;
- int MenuChoixNbPlats = 0;
- int ChoixNbPlats = 1;
-
- // Paramétrage du nombre d'assiette à commander à 0
- int Nb_Assiettes_Salades = 0;
- int Nb_Assiettes_Pizza = 0;
- int Nb_Assiettes_Poisson_Entree = 0;
- int Nb_Assiettes_Pates = 0;
- int Nb_Assiettes_Frites = 0;
- int Nb_Assiettes_Poisson_Plats = 0;
- int Nb_Assiettes_Mousse_au_Chocolat = 0;
- int Nb_Assiettes_Glace = 0;
- int Nb_Assiettes_Crepe = 0;
- int Nb_Assiettes_Coca_Cola = 0;
- int Nb_Assiettes_Cafe = 0;
- int Nb_Assiettes_The = 0;
-
-void setup()
-{
- size(410,451);
- String nomDesPortSerieDetecte = Serial.list()[0];
- monPortamoi = new Serial(this, nomDesPortSerieDetecte, 9600);
- Menu_Entree_1 = loadImage("menu_entree_1.png");
- Menu_Entree_2 = loadImage("menu_entree_2.png");
- Menu_Entree_3 = loadImage("menu_entree_3.png");
- Menu_Plats_1 = loadImage("menu_plats_1.png");
- Menu_Plats_2 = loadImage("menu_plats_2.png");
- Menu_Plats_3 = loadImage("menu_plats_3.png");
- Menu_Desserts_1 = loadImage("menu_desserts_1.png");
- Menu_Desserts_2 = loadImage("menu_desserts_2.png");
- Menu_Desserts_3 = loadImage("menu_desserts_3.png");
- Menu_Boissons_1 = loadImage("menu_boissons_1.png");
- Menu_Boissons_2 = loadImage("menu_boissons_2.png");
- Menu_Boissons_3 = loadImage("menu_boissons_3.png");
- Validation = loadImage("validation.png");
- Validation_Finale = loadImage("validation_finale.png");
- ChoixPlats = loadImage("ChoixPlats.png");
- NB_0 = loadImage("0.png");
- NB_1 = loadImage("1.png");
- NB_2 = loadImage("2.png");
- NB_3 = loadImage("3.png");
- NB_4 = loadImage("4.png");
- NB_5 = loadImage("5.png");
- NB_6 = loadImage("6.png");
- NB_7 = loadImage("7.png");
- NB_8 = loadImage("8.png");
- NB_9 = loadImage("9.png");
- NB_p = loadImage("..png");
- NB_e = loadImage("€.png");
- background(Menu_Entree_1);
-}
-
-void draw() {
-
-
-
- //lecture(); // lecture carte Arduino relié aux touches
-
- if ( monPortamoi.available() > 0) //pour voir si contenu disponible dans le port série
- {
- maChaineRecue=monPortamoi.readStringUntil('\n');
- if (maChaineRecue!=null)
- {
- //background(0); //nettoyage par fond noir
- //text(maChaineRecue, 10, 36);
- valeurLueBTG = match(maChaineRecue, "BTG(.*?);");
- valeurLueBTD = match(maChaineRecue, "BTD(.*?);");
- valeurLueBTH = match(maChaineRecue, "BTH(.*?);");
- valeurLueBTB = match(maChaineRecue, "BTB(.*?);");
- valeurLueBTV = match(maChaineRecue, "BTV(.*?);");
- BTG=int(valeurLueBTG[1]);//);//changer la chaine extraite en valeur
- BTD=int(valeurLueBTD[1]);//);//changer la chaine extraite en valeur
- BTH=int(valeurLueBTH[1]);//);//changer la chaine extraite en valeur
- BTB=int(valeurLueBTB[1]);//);//changer la chaine extraite en valeur
- BTV=int(valeurLueBTV[1]);//);//changer la chaine extraite en valeur
- } //fin si la chaine recue n'est pas nulle
-
- } //fin si le buffer série n'est pas vide
-
-
-
- if (BTG == 1){Onglet = Onglet - 1;delay(500);}
- if (BTD == 1){Onglet = Onglet + 1;delay(500);}
-
-
-
- if (BTH == 1){Plats = Plats - 1;delay(500);}
- if (BTB == 1){Plats = Plats + 1;delay(500);}
-
- if (BTV == 1){BoutonValidation = 1;}
-
- if (Onglet <= 0){background(Menu_Boissons_1);Onglet = 5;}
- if (Onglet == 5){background(Validation);}
- if (Onglet >= 6){background(Menu_Entree_1);Onglet = 1;}
-
- // Déplacement du "curseur" sur les plats de l'onglet entrée
- if (Plats <= 0 && Onglet == 1){background(Menu_Entree_3);Plats = 3;}
- if (Plats == 1 && Onglet == 1){background(Menu_Entree_1);
- if (BoutonValidation == 1){MenuChoixNbPlats = 1;println("Val 1 = "+BoutonValidation);}
- }
- if (Plats == 2 && Onglet == 1){background(Menu_Entree_2);}
- if (Plats == 3 && Onglet == 1){background(Menu_Entree_3);}
- if (Plats >= 4 && Onglet == 1){background(Menu_Entree_1);Plats = 1;}
-
- // Déplacement du "curseur" sur les plats de l'onglet plats
- if (Plats <= 0 && Onglet == 2){background(Menu_Plats_3);Plats = 3;}
- if (Plats == 1 && Onglet == 2){background(Menu_Plats_1);}
- if (Plats == 2 && Onglet == 2){background(Menu_Plats_2);}
- if (Plats == 3 && Onglet == 2){background(Menu_Plats_3);}
- if (Plats >= 4 && Onglet == 2){background(Menu_Plats_1);Plats = 1;}
-
- // Déplacement du "curseur" sur les plats de l'onglet desserts
- if (Plats <= 0 && Onglet == 3){background(Menu_Desserts_3);Plats = 3;}
- if (Plats == 1 && Onglet == 3){background(Menu_Desserts_1);}
- if (Plats == 2 && Onglet == 3){background(Menu_Desserts_2);}
- if (Plats == 3 && Onglet == 3){background(Menu_Desserts_3);}
- if (Plats >= 4 && Onglet == 3){background(Menu_Desserts_1);Plats = 1;}
-
- // Déplacement du "curseur" sur les plats de l'onglet boissons
- if (Plats <= 0 && Onglet == 4){background(Menu_Boissons_3);Plats = 3;}
- if (Plats == 1 && Onglet == 4){background(Menu_Boissons_1);}
- if (Plats == 2 && Onglet == 4){background(Menu_Boissons_2);}
- if (Plats == 3 && Onglet == 4){background(Menu_Boissons_3);}
- if (Plats >= 4 && Onglet == 4){background(Menu_Boissons_1);Plats = 1;}
-
- // Menu validation finale
- if (BoutonValidation == 1 && Onglet == 5){background(Validation_Finale);}
-
- if (MenuChoixNbPlats == 1){image(ChoixPlats,89,187);
- Plats = 1;
- Onglet = 1;
- image(NB_0,281,236); //x,y
-
-
- if (BTH == 1){ChoixNbPlats = ChoixNbPlats + 1;delay(100);}
- if (BTB == 1){ChoixNbPlats = ChoixNbPlats - 1;delay(100);}
- if (ChoixNbPlats <= -1){ChoixNbPlats = 0;}
- if (ChoixNbPlats == 0){image(NB_0,281,236);}
- if (ChoixNbPlats == 1){image(NB_1,281,236);}
- if (ChoixNbPlats == 2){image(NB_2,281,236);}
- if (ChoixNbPlats == 3){image(NB_3,281,236);}
- if (ChoixNbPlats == 4){image(NB_4,281,236);}
- if (ChoixNbPlats == 5){image(NB_5,281,236);}
- if (ChoixNbPlats == 6){image(NB_6,281,236);}
- if (ChoixNbPlats == 7){image(NB_7,281,236);}
- if (ChoixNbPlats == 8){image(NB_8,281,236);}
- if (ChoixNbPlats == 9){image(NB_9,281,236);}
- if (ChoixNbPlats >= 10){ChoixNbPlats = 9;}
- if
- if (BTV == 1){println("Val 2 = "+BoutonValidation);delay(100);BoutonValidation = 0;background(Menu_Entree_2);Onglet = 1;Plats = 2;println("Val 3 = "+BoutonValidation);}
- }
-}
-
-void delay(int delay)
-{
- int time = millis();
- while(millis() - time <= delay);
-}
diff --git a/Code_Processing_Menu/Lecture.pde b/Code_Processing_Menu/Lecture.pde
deleted file mode 100644
index cfee47e..0000000
--- a/Code_Processing_Menu/Lecture.pde
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
-LECTURE DES NOTES ENVOYEES DEPUIS L'ARDUINO
-
-
-void lecture() // Lecture d'une note depuis le port série à réception d'unen valeur de fréquence
-{
- String maChaineRecue;
- String[] valeurLueBTG;
- String[] valeurLueBTD;
- float BTG=0;
- float BTD=0;
- if ( monPortamoi.available() > 0) //pour voir si contenu disponible dans le port série
- {
- maChaineRecue=monPortamoi.readStringUntil('\n');
- if (maChaineRecue!=null)
- {
- background(0); //nettoyage par fond noir
- //text(maChaineRecue, 10, 36);
- valeurLueBTG = match(maChaineRecue, "BTG(.*?);");
- valeurLueBTD = match(maChaineRecue, "BTD(.*?);");
- BTG=int(valeurLueBTG[1]);//);//changer la chaine extraite en valeur
- BTD=int(valeurLueBTD[1]);//);//changer la chaine extraite en valeur
- } //fin si la chaine recue n'est pas nulle
-
- } //fin si le buffer série n'est pas vide
-
-}
-*/
diff --git a/Code_Processing_Menu/menu_boissons_1.png b/Code_Processing_Menu/menu_boissons_1.png
deleted file mode 100644
index cf44c32..0000000
--- a/Code_Processing_Menu/menu_boissons_1.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_boissons_2.png b/Code_Processing_Menu/menu_boissons_2.png
deleted file mode 100644
index 62e3793..0000000
--- a/Code_Processing_Menu/menu_boissons_2.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_boissons_3.png b/Code_Processing_Menu/menu_boissons_3.png
deleted file mode 100644
index f0669c4..0000000
--- a/Code_Processing_Menu/menu_boissons_3.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_desserts_1.png b/Code_Processing_Menu/menu_desserts_1.png
deleted file mode 100644
index bd544ee..0000000
--- a/Code_Processing_Menu/menu_desserts_1.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_desserts_2.png b/Code_Processing_Menu/menu_desserts_2.png
deleted file mode 100644
index 1cb7056..0000000
--- a/Code_Processing_Menu/menu_desserts_2.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_desserts_3.png b/Code_Processing_Menu/menu_desserts_3.png
deleted file mode 100644
index 4f8fb4c..0000000
--- a/Code_Processing_Menu/menu_desserts_3.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_entree_1.png b/Code_Processing_Menu/menu_entree_1.png
deleted file mode 100644
index 52015ff..0000000
--- a/Code_Processing_Menu/menu_entree_1.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_entree_2.png b/Code_Processing_Menu/menu_entree_2.png
deleted file mode 100644
index 9c9109c..0000000
--- a/Code_Processing_Menu/menu_entree_2.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_entree_3.png b/Code_Processing_Menu/menu_entree_3.png
deleted file mode 100644
index c2ddb16..0000000
--- a/Code_Processing_Menu/menu_entree_3.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_plats_1.png b/Code_Processing_Menu/menu_plats_1.png
deleted file mode 100644
index 77c6efa..0000000
--- a/Code_Processing_Menu/menu_plats_1.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_plats_2.png b/Code_Processing_Menu/menu_plats_2.png
deleted file mode 100644
index 5c85d4f..0000000
--- a/Code_Processing_Menu/menu_plats_2.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/menu_plats_3.png b/Code_Processing_Menu/menu_plats_3.png
deleted file mode 100644
index 5b871b2..0000000
--- a/Code_Processing_Menu/menu_plats_3.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/sketch.properties b/Code_Processing_Menu/sketch.properties
deleted file mode 100644
index 8630fa2..0000000
--- a/Code_Processing_Menu/sketch.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-mode.id=processing.mode.java.JavaMode
-mode=Java
diff --git a/Code_Processing_Menu/validation.png b/Code_Processing_Menu/validation.png
deleted file mode 100644
index a8ceffe..0000000
--- a/Code_Processing_Menu/validation.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/validation_finale.png b/Code_Processing_Menu/validation_finale.png
deleted file mode 100644
index 2a69cc8..0000000
--- a/Code_Processing_Menu/validation_finale.png
+++ /dev/null
Binary files differ
diff --git a/Code_Processing_Menu/€.png b/Code_Processing_Menu/€.png
deleted file mode 100644
index 4d9fe2a..0000000
--- a/Code_Processing_Menu/€.png
+++ /dev/null
Binary files differ