Keiarash Zoughi's Multi-Sensor for weather detection.
Dependencies: BMP180 N5110 mbed
Diff: main.cpp
- Revision:
- 3:2b49a80bd90b
- Parent:
- 2:635c58eb70fb
--- a/main.cpp Wed May 06 14:02:16 2015 +0000 +++ b/main.cpp Wed May 06 15:39:53 2015 +0000 @@ -198,21 +198,26 @@ } - if(selectedOption == 1) { - - measurement(); - } - - if(selectedOption == 2) { + switch(buttonPressed){ + + case 1: + measurement(); + break; + + case 2: + + settingScreen(); + break; + + case 3: + + graph(); + break; - settingScreen(); - } - if(selectedOption == 3) { +} +} - graph(); - } -}