Favre Lucas
/
Example_MyLab_lib
Programme test pour librairie MyLab
Diff: main.cpp
- Revision:
- 2:75dd587ca336
- Parent:
- 0:b7728b6800cc
--- a/main.cpp Tue Mar 29 20:31:56 2016 +0000 +++ b/main.cpp Tue Mar 29 20:47:40 2016 +0000 @@ -21,10 +21,10 @@ int main() { - printMenu(0); + periph.printMenu(0); while(1) { - switch (setMenu()) { + switch (periph.setMenu()) { case 1: lcd.cls(); lcd.locate(0,0); @@ -32,8 +32,8 @@ periph.PlayNote(969.0, 1, 1); periph.PlayNote(800.0, 1, 0.5); wait(1); - select_app=0; - printMenu(0); + periph.select_app=0; + periph.printMenu(0); break; case 2: lcd.cls(); @@ -49,8 +49,8 @@ lcd.printf("Lecture de l'enregistrement"); periph.Sound_Play(periph.dat); wait(1); - select_app=0; - printMenu(0); + periph.select_app=0; + periph.printMenu(0); break; case 3: lcd.cls(); @@ -61,8 +61,8 @@ lcd.locate(0,12); lcd.printf("%f",periph.val_x); } - select_app=0; - printMenu(0); + periph.select_app=0; + periph.printMenu(0); break; } }