From 847cc4df42ef27c66fd20f1328d131c3d442cfd7 Mon Sep 17 00:00:00 2001
From: NeodarZ <bretoncorentin44@gmail.com>
Date: Wed, 29 Apr 2015 12:01:08 +0200
Subject: MAJ

---
 .../build-tmp/Menu_Choix_Nombre_de_Plat_V12.class  | Bin 0 -> 17577 bytes
 .../source/Menu_Choix_Nombre_de_Plat_V12.java      | 860 +++++++++++++++++++++
 2 files changed, 860 insertions(+)
 create mode 100644 Code_Processing_Menu/build-tmp/Menu_Choix_Nombre_de_Plat_V12.class
 create mode 100644 Code_Processing_Menu/build-tmp/source/Menu_Choix_Nombre_de_Plat_V12.java

(limited to 'Code_Processing_Menu/build-tmp')

diff --git a/Code_Processing_Menu/build-tmp/Menu_Choix_Nombre_de_Plat_V12.class b/Code_Processing_Menu/build-tmp/Menu_Choix_Nombre_de_Plat_V12.class
new file mode 100644
index 0000000..e8cc106
Binary files /dev/null and b/Code_Processing_Menu/build-tmp/Menu_Choix_Nombre_de_Plat_V12.class differ
diff --git a/Code_Processing_Menu/build-tmp/source/Menu_Choix_Nombre_de_Plat_V12.java b/Code_Processing_Menu/build-tmp/source/Menu_Choix_Nombre_de_Plat_V12.java
new file mode 100644
index 0000000..cee3eaf
--- /dev/null
+++ b/Code_Processing_Menu/build-tmp/source/Menu_Choix_Nombre_de_Plat_V12.java
@@ -0,0 +1,860 @@
+import processing.core.*; 
+import processing.data.*; 
+import processing.event.*; 
+import processing.opengl.*; 
+
+import processing.serial.*; 
+
+import java.util.HashMap; 
+import java.util.ArrayList; 
+import java.io.File; 
+import java.io.BufferedReader; 
+import java.io.PrintWriter; 
+import java.io.InputStream; 
+import java.io.OutputStream; 
+import java.io.IOException; 
+
+public class Menu_Choix_Nombre_de_Plat_V12 extends PApplet {
+
+//======================================================================================================================================================================
+//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| AJOUT DES BIBLIOTHEQUES NECESSAIRE |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+  
+
+//======================================================================================================================================================================
+//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| PARAMETRAGE DE TOUTE LES VARIABLES |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+
+
+//--------------------------------------------------------------------------
+// Param\u00e9trage du port S\u00e9rie
+//-------------------------------------------------------------------------- 
+ Serial monPortamoi;  
+//--------------------------------------------------------------------------
+//Param\u00e9trage des onglets et des plats
+//--------------------------------------------------------------------------
+ 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 Pre_Validation;
+ PImage Validation;
+ PImage Validation_Finale;
+ PImage ChoixPlats;
+
+//--------------------------------------------------------------------------
+//Param\u00e9trage des chiffres
+//--------------------------------------------------------------------------
+ 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;
+
+//--------------------------------------------------------------------------
+//Param\u00e9trage des variables afin d'y stocker les valeurs de la carte arduino
+//--------------------------------------------------------------------------
+ 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;
+
+//--------------------------------------------------------------------------
+//Param\u00e9trage des variables d'\u00e9tat et de remise \u00e0 z\u00e9ro du programme
+//--------------------------------------------------------------------------
+ int Etat_Du_Programme = 0;
+ int Remise_A_Zero = 0;
+
+//--------------------------------------------------------------------------
+// Param\u00e9trage des onglets des plats et du bouton validation
+//--------------------------------------------------------------------------
+ int Onglet = 1;
+ int Plats = 1;
+ int BoutonValidation = 0;
+ int MenuChoixNbPlats = 0;
+ int ChoixNbPlats_Salades = 1;
+ int ChoixNbPlats_Pizza = 1;
+ int ChoixNbPlats_Poisson_Entree = 1;
+ int ChoixNbPlats_Pates = 1;
+ int ChoixNbPlats_Frites = 1;
+ int ChoixNbPlats_Poisson_Plats = 1;
+ int ChoixNbPlats_Mousse_au_Chocolat = 1;
+ int ChoixNbPlats_Glace = 1;
+ int ChoixNbPlats_Crepe = 1;
+ int ChoixNbPlats_Coca_Cola = 1;
+ int ChoixNbPlats_Cafe = 1;
+ int ChoixNbPlats_The = 1;
+   //-- Bouton Validation --
+   int BoutonValidationApp = 0;
+   int Attente = 0;
+ 
+//--------------------------------------------------------------------------
+// Param\u00e9trage du nombre d'assiette \u00e0 commander \u00e0 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;
+ 
+ int Nb_Assiettes = 0;
+ 
+//--------------------------------------------------------------------------
+// Param\u00e9trage des totaux \u00e0 z\u00e9ro
+//-------------------------------------------------------------------------- 
+ int Nb_Assiettes_Totale = 0;
+ int Prix_Totale = 0;
+
+//--------------------------------------------------------------------------
+// Param\u00e9trage de la Police
+//-------------------------------------------------------------------------- 
+ PFont Police;
+ PFont Police_Validation_Finale;
+ PFont Police_Validation_Finale_Prix_Total;
+
+public void setup()
+{
+//======================================================================================================================================================================
+//|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| INITIALISATION DE TOUT ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+  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");
+  Pre_Validation = loadImage("pre-validation.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("\u20ac.png");
+  background(Menu_Entree_1);
+  
+  Police = loadFont("Shruti-13.vlw");
+  Police_Validation_Finale = loadFont("Shruti-15.vlw");
+  Police_Validation_Finale_Prix_Total = loadFont("Shruti-20.vlw");
+  textFont(Police, 13);
+}
+
+public void draw() {
+ 
+lecture();
+
+  
+//======================================================================================================================================================================
+//||||||||||||||||||||||||||||||||||||||||||||||||||||||| COMPORTEMENT DES VALEURS RECUS DEPUIS LA CARTE ARDUINO||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================  
+  
+  if (BTG == 1){Onglet = Onglet - 1;delay(200);}
+  if (BTD == 1){Onglet = Onglet + 1;delay(200);}
+
+  
+  
+  if (BTH == 1){Plats = Plats - 1;delay(200);}
+  if (BTB == 1){Plats = Plats + 1;delay(200);}
+  
+  if (BTV == 1){BoutonValidation = 1;}
+
+//======================================================================================================================================================================
+//||||||||||||||||||||||||||||||||||||||||||||||||||||||| CHOIX DE L'ONGLET ET DEPLACEMENT DU "CURSEUR"|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+  
+  if (Onglet <= 0){background(Menu_Boissons_1);Onglet = 5;}
+  if (Onglet == 5){background(Validation);}
+  if (Onglet >= 6){background(Menu_Entree_1);Onglet = 1;}
+  
+  
+  //==========================================================
+  // D\u00e9placement du "curseur" sur les plats de l'onglet entr\u00e9e
+  //==========================================================
+      if (Plats <= 0 && Onglet == 1){background(Menu_Entree_3);Plats = 3;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est inf\u00e9rieur ou \u00e9gal \u00e0 0 et que l'onglet actuel \u00e9gal 1 alors on descend le "curseur" sur le dernier plat
+      if (Plats == 1 && Onglet == 1) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 1 et que l'onglet \u00e9gal 1 alors on place le "curseur" su le plat 1
+      {
+            background(Menu_Entree_1);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 1)
+            {
+              MenuChoixNbPlats = 1;
+            }
+      }
+      if (Plats == 2 && Onglet == 1) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 2 et que l'onglet \u00e9gal 1 alors on place le "curseur" su le plat 2
+      {
+            background(Menu_Entree_2);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 2)
+            {
+              MenuChoixNbPlats = 2;
+            }
+      }
+      if (Plats == 3 && Onglet == 1) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 3 et que l'onglet \u00e9gal 1 alors on place le "curseur" su le plat 3
+      {
+            background(Menu_Entree_3); 
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 3)
+            {
+              MenuChoixNbPlats = 3;
+            }
+      }
+      if (Plats >= 4 && Onglet == 1){background(Menu_Entree_1);Plats = 1;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est sup\u00e9rieur ou \u00e9gal \u00e0 4 et que l'onglet actuel \u00e9gal 1 alors on remonte "curseur" sur le premier plat
+  
+  //==========================================================
+  //  D\u00e9placement du "curseur" sur les plats de l'onglet plats
+  //==========================================================
+  if (Plats <= 0 && Onglet == 2){background(Menu_Plats_3);Plats = 3;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est inf\u00e9rieur ou \u00e9gal \u00e0 0 et que l'onglet actuel \u00e9gal 2 alors on descend le "curseur" sur le dernier plat
+  if (Plats == 1 && Onglet == 2) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 1 et que l'onglet \u00e9gal 2 alors on place le "curseur" su le plat 1
+  {
+            background(Menu_Plats_1);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 4)
+            {
+              MenuChoixNbPlats = 4;
+            }
+  }
+  if (Plats == 2 && Onglet == 2) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 2 et que l'onglet \u00e9gal 2 alors on place le "curseur" su le plat 2
+  {
+            background(Menu_Plats_2);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 5)
+            {
+              MenuChoixNbPlats = 5;
+            }
+  }
+  if (Plats == 3 && Onglet == 2) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 3 et que l'onglet \u00e9gal 2 alors on place le "curseur" su le plat 3
+  {
+            background(Menu_Plats_3);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 6)
+            {
+              MenuChoixNbPlats = 6;
+            }
+  }
+  if (Plats >= 4 && Onglet == 2){background(Menu_Plats_1);Plats = 1;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est sup\u00e9rieur ou \u00e9gal \u00e0 4 et que l'onglet actuel \u00e9gal 2 alors on remonte "curseur" sur le premier plat
+  
+
+  //=============================================================
+  //  D\u00e9placement du "curseur" sur les plats de l'onglet desserts
+  //=============================================================
+  if (Plats <= 0 && Onglet == 3){background(Menu_Desserts_3);Plats = 3;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est inf\u00e9rieur ou \u00e9gal \u00e0 0 et que l'onglet actuel \u00e9gal 3 alors on descend le "curseur" sur le dernier plat
+  if (Plats == 1 && Onglet == 3) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 1 et que l'onglet \u00e9gal 3 alors on place le "curseur" su le plat 1
+  {
+            background(Menu_Desserts_1); 
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 7)
+            {
+              MenuChoixNbPlats = 7;
+            }
+  }
+  if (Plats == 2 && Onglet == 3) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 2 et que l'onglet \u00e9gal 3 alors on place le "curseur" su le plat 2
+  {
+            background(Menu_Desserts_2);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 8)
+            {
+              MenuChoixNbPlats = 8;
+            }
+  }
+  if (Plats == 3 && Onglet == 3) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 3 et que l'onglet \u00e9gal 3 alors on place le "curseur" su le plat 3
+  {
+            background(Menu_Desserts_3);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 9)
+            {
+              MenuChoixNbPlats = 9;
+            }
+  }
+  if (Plats >= 4 && Onglet == 3){background(Menu_Desserts_1);Plats = 1;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est sup\u00e9rieur ou \u00e9gal \u00e0 4 et que l'onglet actuel \u00e9gal 3 alors on remonte "curseur" sur le premier plat
+  
+  //=============================================================
+  // D\u00e9placement du "curseur" sur les plats de l'onglet boissons
+  //=============================================================
+  if (Plats <= 0 && Onglet == 4){background(Menu_Boissons_3);Plats = 3;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est inf\u00e9rieur ou \u00e9gal \u00e0 0 et que l'onglet actuel \u00e9gal 4 alors on descend le "curseur" sur le dernier plat
+  if (Plats == 1 && Onglet == 4) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 1 et que l'onglet \u00e9gal 4 alors on place le "curseur" su le plat 1
+  {
+            background(Menu_Boissons_1);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 10)
+            {
+              MenuChoixNbPlats = 10;
+            }
+  }
+  if (Plats == 2 && Onglet == 4) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 2 et que l'onglet \u00e9gal 4 alors on place le "curseur" su le plat 2
+  {
+            background(Menu_Boissons_2);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 11)
+            {
+              MenuChoixNbPlats = 11;
+            }
+  }
+  if (Plats == 3 && Onglet == 4) // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est \u00e9gal \u00e0 3 et que l'onglet \u00e9gal 4 alors on place le "curseur" su le plat 3
+  {
+            background(Menu_Boissons_3);
+            if (BoutonValidation == 1 && MenuChoixNbPlats == 0 || MenuChoixNbPlats == 12)
+            {
+              MenuChoixNbPlats = 12;
+            }
+  }
+  if (Plats >= 4 && Onglet == 4){background(Menu_Boissons_1);Plats = 1;} // Si la valeur du plat s\u00e9l\u00e9ctionner par le curseur est sup\u00e9rieur ou \u00e9gal \u00e0 4 et que l'onglet actuel \u00e9gal 4 alors on remonte "curseur" sur le premier plat
+  
+  //=====================================================
+  // Calcul du Nombre d'assiettes total et du prix totale
+  //=====================================================
+  Nb_Assiettes_Totale = Nb_Assiettes_Salades + Nb_Assiettes_Pizza + Nb_Assiettes_Poisson_Entree + Nb_Assiettes_Pates + Nb_Assiettes_Frites + Nb_Assiettes_Poisson_Plats + Nb_Assiettes_Mousse_au_Chocolat + Nb_Assiettes_Glace + Nb_Assiettes_Crepe + Nb_Assiettes_Coca_Cola + Nb_Assiettes_Cafe + Nb_Assiettes_The;
+  Prix_Totale = Nb_Assiettes_Salades*3 + Nb_Assiettes_Pizza*5 + Nb_Assiettes_Poisson_Entree*6 + Nb_Assiettes_Pates*8 + Nb_Assiettes_Frites*5 + Nb_Assiettes_Poisson_Plats*12 + Nb_Assiettes_Mousse_au_Chocolat*2 + Nb_Assiettes_Glace + Nb_Assiettes_Crepe + Nb_Assiettes_Coca_Cola + Nb_Assiettes_Cafe + Nb_Assiettes_The;
+
+  //=====================================================
+  // D\u00e9placement du "curseur" sur l'onglet Pre_Validation
+  //=====================================================
+  //if (Onglet == 5){background(Pre_Validation);}
+
+  //=================================================
+  // D\u00e9placement du "curseur" sur l'onglet Validation
+  //=================================================
+  if (Onglet == 5)
+  {
+    background(Validation);
+    if (BoutonValidation == 1){MenuChoixNbPlats = 13;}
+  }
+
+  //======================================================================================================================================================================
+  //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| AFFICHAGE DU NOMBRE D'ASSIETTE COMMANDER |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+  //======================================================================================================================================================================
+
+  if (MenuChoixNbPlats != 13)
+  {
+  fill(0,0,0);
+  text(Prix_Totale, 270, 276);
+  text(Nb_Assiettes_Totale, 315, 290);
+  text("Salades :", 235, 307);
+  text(Nb_Assiettes_Salades, 360, 307);
+  text("Pizza :", 235, 317);
+  text(Nb_Assiettes_Pizza, 360, 317);
+  text("Poisson Entr\u00e9e :", 235, 327);
+  text(Nb_Assiettes_Poisson_Entree, 360, 327);
+  text("P\u00e2tes :", 235, 337);
+  text(Nb_Assiettes_Pates, 360, 337);
+  text("Frites :", 235, 347);
+  text(Nb_Assiettes_Frites, 360, 347);
+  text("Poissons Plats :", 235, 357);
+  text(Nb_Assiettes_Poisson_Plats, 360, 357);    
+  text("Mousse au chocolat :", 235, 367);
+  text(Nb_Assiettes_Mousse_au_Chocolat, 360, 367);
+  text("Glace :", 235, 377);
+  text(Nb_Assiettes_Glace, 360, 377);
+  text("Crepe :", 235, 387);
+  text(Nb_Assiettes_Crepe, 360, 387);
+  text("Coca-Cola :", 235, 397);
+  text(Nb_Assiettes_Coca_Cola, 360, 397);
+  text("Caf\u00e9 :", 235, 407);
+  text(Nb_Assiettes_Cafe, 360, 407);
+  text("Th\u00e9 :", 235, 417);
+  text(Nb_Assiettes_The, 360, 417);
+  Etat_Du_Programme = 0;
+  }
+
+//======================================================================================================================================================================
+//|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| CHOIX DU NOMBRE D'ASSIETTE ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+  
+  //==========================================================
+  //  Choix du nombre de SALADE \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 1)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 1;
+        Onglet = 1;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+
+        if (BTH == 1){ChoixNbPlats_Salades = ChoixNbPlats_Salades + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Salades = ChoixNbPlats_Salades - 1;delay(100);}
+        if (ChoixNbPlats_Salades <= -1){ChoixNbPlats_Salades = 0;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 0){image(NB_0,281,236);Nb_Assiettes = 0;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 1){image(NB_1,281,236);Nb_Assiettes = 1;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 2){image(NB_2,281,236);Nb_Assiettes = 2;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 3){image(NB_3,281,236);Nb_Assiettes = 3;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 4){image(NB_4,281,236);Nb_Assiettes = 4;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 5){image(NB_5,281,236);Nb_Assiettes = 5;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 6){image(NB_6,281,236);Nb_Assiettes = 6;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 7){image(NB_7,281,236);Nb_Assiettes = 7;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 8){image(NB_8,281,236);Nb_Assiettes = 8;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades == 9){image(NB_9,281,236);Nb_Assiettes = 9;Plats = 1;Onglet = 1;}
+        if (ChoixNbPlats_Salades >= 10){ChoixNbPlats_Salades = 9;Plats = 1;Onglet = 1;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Salades = Nb_Assiettes;}
+      }        
+  
+  //==========================================================
+  //  Choix du nombre de PIZZA \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 2)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 2;
+        Onglet = 1;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;    
+        
+        if (BTH == 1){ChoixNbPlats_Pizza = ChoixNbPlats_Pizza + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Pizza = ChoixNbPlats_Pizza - 1;delay(100);}
+        if (ChoixNbPlats_Pizza <= -1){ChoixNbPlats_Pizza = 0;}
+        if (ChoixNbPlats_Pizza == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Pizza == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Pizza == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Pizza == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Pizza == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Pizza == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Pizza == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Pizza == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Pizza == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Pizza == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Pizza >= 10){ChoixNbPlats_Pizza = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Pizza = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de POISSON \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 3)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 3;
+        Onglet = 1;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Poisson_Entree = ChoixNbPlats_Poisson_Entree + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Poisson_Entree = ChoixNbPlats_Poisson_Entree - 1;delay(100);}
+        if (ChoixNbPlats_Poisson_Entree <= -1){ChoixNbPlats_Poisson_Entree = 0;}
+        if (ChoixNbPlats_Poisson_Entree == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Poisson_Entree == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Poisson_Entree == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Poisson_Entree == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Poisson_Entree == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Poisson_Entree == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Poisson_Entree == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Poisson_Entree == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Poisson_Entree == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Poisson_Entree == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Poisson_Entree >= 10){ChoixNbPlats_Poisson_Entree = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Poisson_Entree = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de PATES \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 4)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 1;
+        Onglet = 2;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Pates = ChoixNbPlats_Pates + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Pates = ChoixNbPlats_Pates - 1;delay(100);}
+        if (ChoixNbPlats_Pates <= -1){ChoixNbPlats_Pates = 0;}
+        if (ChoixNbPlats_Pates == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Pates == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Pates == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Pates == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Pates == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Pates == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Pates == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Pates == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Pates == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Pates == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Pates >= 10){ChoixNbPlats_Pates = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Pates = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de FRITES \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 5)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 2;
+        Onglet = 2;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Frites = ChoixNbPlats_Frites + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Frites = ChoixNbPlats_Frites - 1;delay(100);}
+        if (ChoixNbPlats_Frites <= -1){ChoixNbPlats_Frites = 0;}
+        if (ChoixNbPlats_Frites == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Frites == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Frites == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Frites == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Frites == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Frites == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Frites == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Frites == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Frites == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Frites == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Frites >= 10){ChoixNbPlats_Frites = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Frites = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de POISSON \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 6)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 3;
+        Onglet = 2;
+        image(NB_0,281,236); //x,y
+        
+        if (BTH == 1){ChoixNbPlats_Poisson_Plats = ChoixNbPlats_Poisson_Plats + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Poisson_Plats = ChoixNbPlats_Poisson_Plats - 1;delay(100);}
+        if (ChoixNbPlats_Poisson_Plats <= -1){ChoixNbPlats_Poisson_Plats = 0;}
+        if (ChoixNbPlats_Poisson_Plats == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Poisson_Plats == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Poisson_Plats == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Poisson_Plats == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Poisson_Plats == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Poisson_Plats == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Poisson_Plats == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Poisson_Plats == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Poisson_Plats == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Poisson_Plats == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Poisson_Plats >= 10){ChoixNbPlats_Poisson_Plats = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;BoutonValidation = 0;Nb_Assiettes_Poisson_Plats = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de MOUSSE AU CHOCOLAT \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 7)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 1;
+        Onglet = 3;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Mousse_au_Chocolat = ChoixNbPlats_Mousse_au_Chocolat + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Mousse_au_Chocolat = ChoixNbPlats_Mousse_au_Chocolat - 1;delay(100);}
+        if (ChoixNbPlats_Mousse_au_Chocolat <= -1){ChoixNbPlats_Mousse_au_Chocolat = 0;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Mousse_au_Chocolat == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Mousse_au_Chocolat >= 10){ChoixNbPlats_Mousse_au_Chocolat = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Mousse_au_Chocolat = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de GLACE \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 8)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 2;
+        Onglet = 3;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Glace = ChoixNbPlats_Glace + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Glace = ChoixNbPlats_Glace - 1;delay(100);}
+        if (ChoixNbPlats_Glace <= -1){ChoixNbPlats_Glace = 0;}
+        if (ChoixNbPlats_Glace == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Glace == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Glace == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Glace == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Glace == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Glace == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Glace == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Glace == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Glace == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Glace == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Glace >= 10){ChoixNbPlats_Glace = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Glace = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de CREPE \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 9)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 3;
+        Onglet = 3;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Crepe = ChoixNbPlats_Crepe + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Crepe = ChoixNbPlats_Crepe - 1;delay(100);}
+        if (ChoixNbPlats_Crepe <= -1){ChoixNbPlats_Crepe = 0;}
+        if (ChoixNbPlats_Crepe == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Crepe == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Crepe == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Crepe == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Crepe == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Crepe == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Crepe == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Crepe == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Crepe == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Crepe == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Crepe >= 10){ChoixNbPlats_Crepe = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Crepe = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de COCA-COLA \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 10)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 1;
+        Onglet = 4;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Coca_Cola = ChoixNbPlats_Coca_Cola + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Coca_Cola = ChoixNbPlats_Coca_Cola - 1;delay(100);}
+        if (ChoixNbPlats_Coca_Cola <= -1){ChoixNbPlats_Coca_Cola = 0;}
+        if (ChoixNbPlats_Coca_Cola == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Coca_Cola == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Coca_Cola == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Coca_Cola == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Coca_Cola == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Coca_Cola == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Coca_Cola == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Coca_Cola == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Coca_Cola == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Coca_Cola == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Coca_Cola >= 10){ChoixNbPlats_Coca_Cola = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Coca_Cola = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de CAFE \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 11)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 2;
+        Onglet = 4;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_Cafe = ChoixNbPlats_Cafe + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_Cafe = ChoixNbPlats_Cafe - 1;delay(100);}
+        if (ChoixNbPlats_Cafe <= -1){ChoixNbPlats_Cafe = 0;}
+        if (ChoixNbPlats_Cafe == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_Cafe == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_Cafe == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_Cafe == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_Cafe == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_Cafe == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_Cafe == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_Cafe == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_Cafe == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_Cafe == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_Cafe >= 10){ChoixNbPlats_Cafe = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_Cafe = Nb_Assiettes;}
+      }
+  
+  //==========================================================
+  //  Choix du nombre de THE \u00e0 commander
+  //==========================================================
+  if (MenuChoixNbPlats == 12)
+      {
+        image(ChoixPlats,89,187);
+        Plats = 3;
+        Onglet = 4;
+        image(NB_0,281,236); //x,y
+        BoutonValidation = 0;
+        
+        if (BTH == 1){ChoixNbPlats_The = ChoixNbPlats_The + 1;delay(100);}
+        if (BTB == 1){ChoixNbPlats_The = ChoixNbPlats_The - 1;delay(100);}
+        if (ChoixNbPlats_The <= -1){ChoixNbPlats_The = 0;}
+        if (ChoixNbPlats_The == 0){image(NB_0,281,236);Nb_Assiettes = 0;}
+        if (ChoixNbPlats_The == 1){image(NB_1,281,236);Nb_Assiettes = 1;}
+        if (ChoixNbPlats_The == 2){image(NB_2,281,236);Nb_Assiettes = 2;}
+        if (ChoixNbPlats_The == 3){image(NB_3,281,236);Nb_Assiettes = 3;}
+        if (ChoixNbPlats_The == 4){image(NB_4,281,236);Nb_Assiettes = 4;}
+        if (ChoixNbPlats_The == 5){image(NB_5,281,236);Nb_Assiettes = 5;}
+        if (ChoixNbPlats_The == 6){image(NB_6,281,236);Nb_Assiettes = 6;}
+        if (ChoixNbPlats_The == 7){image(NB_7,281,236);Nb_Assiettes = 7;}
+        if (ChoixNbPlats_The == 8){image(NB_8,281,236);Nb_Assiettes = 8;}
+        if (ChoixNbPlats_The == 9){image(NB_9,281,236);Nb_Assiettes = 9;}
+        if (ChoixNbPlats_The >= 10){ChoixNbPlats_The = 9;}
+        if (BTD == 1){MenuChoixNbPlats = 0;Nb_Assiettes_The = Nb_Assiettes;}
+      }
+
+  //==========================================================
+  //  Affichage du MENU commander par le client
+  //==========================================================
+  if (MenuChoixNbPlats == 13)
+      {
+        background(Validation_Finale);
+        textFont(Police_Validation_Finale, 15);
+        text("Salades ("+Nb_Assiettes_Salades+" X 3\u20ac)", 35, 70);
+        text(Nb_Assiettes_Salades*3+"\u20ac", 320, 70);
+        text("Pizza ("+Nb_Assiettes_Pizza+" X 5\u20ac)", 35, 85);
+        text(Nb_Assiettes_Pizza*5+"\u20ac", 320, 85);
+        text("Poisson Entr\u00e9e ("+Nb_Assiettes_Poisson_Entree+" X 6\u20ac)", 35, 100);
+        text(Nb_Assiettes_Poisson_Entree*6+"\u20ac", 320, 100);
+        text("P\u00e2tes ("+Nb_Assiettes_Pates+" X 8\u20ac)", 35, 115);
+        text(Nb_Assiettes_Pates*8+"\u20ac", 320, 115);
+        text("Frites ("+Nb_Assiettes_Frites+" X 5\u20ac)", 35, 130);
+        text(Nb_Assiettes_Frites*5+"\u20ac", 320, 130);
+        text("Poissons Plats ("+Nb_Assiettes_Poisson_Plats+" X 12\u20ac)", 35, 145);
+        text(Nb_Assiettes_Poisson_Plats*12+"\u20ac", 320, 145);
+        text("Mousse au chocolat ("+Nb_Assiettes_Mousse_au_Chocolat+" X 2\u20ac)", 35, 160);
+        text(Nb_Assiettes_Mousse_au_Chocolat*2+"\u20ac", 320, 160);
+        text("Glace ("+Nb_Assiettes_Glace+" X 1\u20ac)", 35, 175);
+        text(Nb_Assiettes_Glace+"\u20ac", 320, 175);
+        text("Crepe ("+Nb_Assiettes_Crepe+" X 2\u20ac)", 35, 190);
+        text(Nb_Assiettes_Crepe*2+"\u20ac", 320, 190);
+        text("Coca-Cola ("+Nb_Assiettes_Coca_Cola+" X 1\u20ac)", 35, 205);
+        text(Nb_Assiettes_Coca_Cola+"\u20ac", 320, 205);
+        text("Caf\u00e9 ("+Nb_Assiettes_Cafe+" X 1\u20ac)", 35, 220);
+        text(Nb_Assiettes_Cafe+"\u20ac", 320, 220);
+        text("Th\u00e9 ("+Nb_Assiettes_The+" X 1\u20ac)", 35, 235);
+        text(Nb_Assiettes_The+"\u20ac", 320, 235);
+        textFont(Police_Validation_Finale_Prix_Total, 20);
+        text("TOTAL A REGLER ( "+Nb_Assiettes_Totale+")", 35, 315);
+        text(Prix_Totale+"\u20ac", 300, 315);
+        textFont(Police_Validation_Finale, 15);
+        text("------------------------------------------------------", 35, 330);
+        text("Date : "+day()+"/"+month()+"/"+year()+"  / Heure : "+hour()+":"+minute(), 90, 345);
+        text("------------------------------------------------------", 35, 360);
+        text("Votre commande est en cours de pr\u00e9paration !", 55, 375);
+        text("Merci de patienter...", 145, 400);
+        textFont(Police, 13);
+        Etat_Du_Programme = 1;
+        if (BTD == 1){Onglet = 5;}
+        if (BTG == 1){Onglet = 5;}
+        if (keyPressed){ if (key == 'e' && MenuChoixNbPlats == 13){Remise_A_Zero = 1;}}
+      }
+
+    if (Remise_A_Zero == 1)
+        {
+          MenuChoixNbPlats = 0;
+          Onglet = 1;
+          Plats = 1;
+          BoutonValidation = 0;
+          Nb_Assiettes_Salades = 0;
+          Nb_Assiettes_Pizza = 0;
+          Nb_Assiettes_Poisson_Entree = 0;
+          Nb_Assiettes_Pates = 0;
+          Nb_Assiettes_Frites = 0;
+          Nb_Assiettes_Poisson_Plats = 0;
+          Nb_Assiettes_Mousse_au_Chocolat = 0;
+          Nb_Assiettes_Glace = 0;
+          Nb_Assiettes_Crepe = 0;
+          Nb_Assiettes_Coca_Cola = 0;
+          Nb_Assiettes_Cafe = 0;
+          Nb_Assiettes_The = 0;
+          Nb_Assiettes = 0;
+          Nb_Assiettes_Totale = 0;
+          Prix_Totale = 0;
+          Remise_A_Zero = 0;
+        }   
+
+//======================================================================================================================================================================
+//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| AFFICHAGE DES LEDS |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+  if (Etat_Du_Programme == 1)
+  {
+    monPortamoi.write("BLOQUER:");
+    
+  }
+  if (Etat_Du_Programme == 0)
+  {
+    monPortamoi.write("DEBLOQUER:");
+  }
+}
+
+//======================================================================================================================================================================
+//|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| PARAMETRAGE & INITIALISATION DU DELAY |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+public void delay(int delay)
+{
+  int time = millis();
+  while(millis() - time <= delay);
+}
+//======================================================================================================================================================================
+//||||||||||||||||||||||||||||||||||||||||||||||||||||||||| RECUPERATION DES VALEURS DEPUIS LA CARTE ARDUINO||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+//======================================================================================================================================================================
+
+  //lecture();         // lecture carte Arduino reli\u00e9 aux touches
+public void lecture()
+{
+  if ( monPortamoi.available() > 0) //pour voir si contenu disponible dans le port s\u00e9rie
+  {  
+    maChaineRecue=monPortamoi.readStringUntil('\n');
+    if (maChaineRecue!=null)
+    {
+      valeurLueBTG = match(maChaineRecue, "BTG(.*?);");
+      valeurLueBTD = match(maChaineRecue, "BTD(.*?);");
+      valeurLueBTH = match(maChaineRecue, "BTH(.*?);");
+      valeurLueBTB = match(maChaineRecue, "BTB(.*?);");
+      valeurLueBTV = match(maChaineRecue, "BTV(.*?);");
+      BTG=PApplet.parseInt(valeurLueBTG[1]);//);//changer la chaine extraite en valeur
+      BTD=PApplet.parseInt(valeurLueBTD[1]);//);//changer la chaine extraite en valeur
+      BTH=PApplet.parseInt(valeurLueBTH[1]);//);//changer la chaine extraite en valeur
+      BTB=PApplet.parseInt(valeurLueBTB[1]);//);//changer la chaine extraite en valeur
+      BTV=PApplet.parseInt(valeurLueBTV[1]);//);//changer la chaine extraite en valeur
+    } //fin si la chaine recue n'est pas nulle   
+   
+  } //fin si le buffer s\u00e9rie n'est pas vide
+}
+
+  static public void main(String[] passedArgs) {
+    String[] appletArgs = new String[] { "Menu_Choix_Nombre_de_Plat_V12" };
+    if (passedArgs != null) {
+      PApplet.main(concat(appletArgs, passedArgs));
+    } else {
+      PApplet.main(appletArgs);
+    }
+  }
+}
-- 
cgit v1.2.1