test de premier push
Dependencies: WakeUp mbed EPD_GDE021A1
Diff: Sources/main.cpp
- Revision:
- 27:221ee2a91664
- Parent:
- 24:b1c29d839d9b
--- a/Sources/main.cpp Thu Nov 24 18:26:47 2016 +0000 +++ b/Sources/main.cpp Fri Nov 25 06:56:49 2016 +0000 @@ -11,6 +11,7 @@ #include "../Headers/constants.h" #include "../Headers/ecran.h" #include "../Headers/poids.h" +#include "../Headers/send.h" #include "../Headers/refreshScreen.h" #include "../Headers/standby.h" @@ -21,6 +22,10 @@ State state = Start; // état de base : start int poidsRuche; +int poids = 17; +int temp = 21; +int hum = 92; + int main () { //Ecran::print; @@ -37,6 +42,7 @@ //TODO SI jour, Etat suivant = DeepSleepShort //TODO SI nuit, Etat suivant = DeepSleepLong + state = Send; break; case DeepSleepShort: pc.printf("State DeepSleepShort\n"); @@ -64,11 +70,12 @@ case Send: pc.printf("State Send\n"); //TODO Ajouter appel à send(...) - + send(poids,temp,hum); //TODO Test jour ou nuit //TODO SI jour, Etat suivant = DeepSleepShort //TODO SI nuit, Etat suivant = DeepSleepLong + state = Start; break; default: pc.printf("State Error\n");