Plant Monitoring Project
Dependencies: mbed SHT21_ncleee WakeUp SSD1306 DHT Adafruit_TCS34725 DS1820
Diff: main.cpp
- Revision:
- 26:5d38b3abb89a
- Parent:
- 25:77322fbe298e
- Child:
- 27:05fb631b1f6e
--- 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