![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Comments added and commented out outdated code
Dependencies: Peripherals SD_Lib Time_Lib_v2 Year3_Version5 BMP280 LCDFunctions TextLCD BME280 Serial_Lib
main.cpp
- Committer:
- erolleyparnell
- Date:
- 2018-12-07
- Revision:
- 11:799025124e87
- Parent:
- 8:dde5976445b4
- Child:
- 13:a89d4591af3f
File content as of revision 11:799025124e87:
#include "mbed.h" #include "TextLCD.h" #include "SDBlockDevice.h" #include "FATFileSystem.h" #include "thread_functions.hpp" #include "SD_functions.hpp" #include "peripherals.hpp" //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); time_t currentTime; char lcdBuffer[32]; DigitalOut myled(LED1); Ticker ticker; Mutex date_mutex; int setting; int t; //InterruptIn SW1; Thread t1; Thread t2; Thread t3; Thread t4; //LDR sensor AnalogIn LDD_ADC_In(A1); float fLDR = 0.0; float volts = 0.0; //Main thread int main() { //Power On Check TODO lcd.printf("Select Time Option\n\n"); // run threads t1.start(FunctionSensor); t2.start(FunctionTime); t3.start(FunctionSerial); t4.start(FunctionSD2); }