Plant Monitoring Project

Dependencies:   mbed SHT21_ncleee WakeUp SSD1306 DHT Adafruit_TCS34725 DS1820

Files at this revision

API Documentation at this revision

Comitter:
Germaint
Date:
Mon Dec 02 10:19:02 2019 +0000
Parent:
25:77322fbe298e
Child:
27:05fb631b1f6e
Commit message:
Suppression WakUp;

Changed in this revision

WakeUp.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
main.hh Show annotated file Show diff for this revision Revisions of this file
--- a/WakeUp.lib	Mon Dec 02 07:43:47 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/Radiopotache/code/WakeUp/#b6bd5ab62934
--- a/main.cpp	Mon Dec 02 07:43:47 2019 +0000
+++ b/main.cpp	Mon Dec 02 10:19:02 2019 +0000
@@ -2,7 +2,6 @@
 
 int main(){
     #ifdef DEEPSLEEP
-    WakeUp::calibrate();
     #endif
     #ifdef OLED
     bouton.rise(interruption_bouton);
@@ -12,9 +11,7 @@
     while(1) {
       readData();
       #ifdef DEEPSLEEP
-      WakeUp::set(DUREE_OFF);
-      WakeUp::attach(&mycallback);
-      deepsleep();
+      
       #endif
       #ifndef DEEPSLEEP
       wait(DUREE_OFF);
@@ -172,6 +169,4 @@
     wait(1);
     oled.cls(0,1);
     oled.sleep();
-}
-
-void mycallback(void){}
\ No newline at end of file
+}
\ No newline at end of file
--- a/main.hh	Mon Dec 02 07:43:47 2019 +0000
+++ b/main.hh	Mon Dec 02 10:19:02 2019 +0000
@@ -6,7 +6,6 @@
 #include "SHT21_ncleee.h"
 #include "Adafruit_TCS34725.h"
 #include "ssd1306.h"
-#include "WakeUp.h"
 
 #define DUREE_OFF 10                     // Durée en seconde entre deux mesures
 #define DUREE_ECRAN_ON  5                   // Durée en seconde d'éveil de l'écran
@@ -59,7 +58,6 @@
 void    interruption_bouton(void);
 void    turnOffScreen(void);
 void    initOLED(void);
-void    mycallback(void);
 
 // Variables globales
 bool            oled_on = 0;             // flag OLED