Comments added
Dependencies: Peripherals Buffer_lib_v2 SD_Lib_EffedUP_ERP Time_Lib_v2 Year3_Version5 BMP280 Network_Lib TextLCD BME280
Diff: main.cpp
- Revision:
- 15:00422efe0550
- Parent:
- 14:433745616744
- Child:
- 16:17e8f7d4241a
--- a/main.cpp Thu Jan 03 13:52:58 2019 +0000 +++ b/main.cpp Thu Jan 03 19:25:04 2019 +0000 @@ -5,6 +5,7 @@ #include "thread_functions.hpp" #include "SD_functions.hpp" #include "peripherals.hpp" +#include "Network.hpp" #ifndef SD_Present #define SD_Present @@ -14,17 +15,11 @@ #define DEBUG #endif -//TextLCD lcd(D9, D8, D7, D6, D4, D2); // rs, e, d4-d7 -//SDBlockDevice sd(PB_5, D12, D13, D10); // mosi, miso, sclk, cs -Serial pc(SERIAL_TX, SERIAL_RX); +//Serial pc(SERIAL_TX, SERIAL_RX); time_t currentTime; -char lcdBuffer[32]; -DigitalOut myled(LED1); -Ticker ticker; Mutex date_mutex; int setting; int t; -//InterruptIn SW1; Thread t1; Thread t2; @@ -38,18 +33,15 @@ float volts = 0.0; - //Main thread int main() { //Power On Check TODO - - lcd.printf("Select Time Option\n\n"); + lcd.cls(); // run threads t1.start(FunctionSensor); -// t2.start(FunctionTime); t2.start(FunctionSerial); t3.start(FunctionSD2); - + t4.start(Network); }