Comments added and commented out outdated code

Dependencies:   Peripherals SD_Lib Time_Lib_v2 Year3_Version5 BMP280 LCDFunctions TextLCD BME280 Serial_Lib

Committer:
erolleyparnell
Date:
Fri Dec 07 15:27:15 2018 +0000
Revision:
11:799025124e87
Parent:
8:dde5976445b4
Child:
13:a89d4591af3f
07/12/18 Compile Emily T and Courtney code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
noutram 0:90e393878517 1 #include "mbed.h"
emilytrembeth 4:da63962bc0f1 2 #include "TextLCD.h"
emilytrembeth 4:da63962bc0f1 3 #include "SDBlockDevice.h"
emilytrembeth 4:da63962bc0f1 4 #include "FATFileSystem.h"
erolleyparnell 8:dde5976445b4 5 #include "thread_functions.hpp"
erolleyparnell 11:799025124e87 6 #include "SD_functions.hpp"
erolleyparnell 11:799025124e87 7 #include "peripherals.hpp"
emilytrembeth 5:60e116a1e913 8
erolleyparnell 11:799025124e87 9 //TextLCD lcd(D9, D8, D7, D6, D4, D2); // rs, e, d4-d7
erolleyparnell 11:799025124e87 10 //SDBlockDevice sd(PB_5, D12, D13, D10); // mosi, miso, sclk, cs
emilytrembeth 4:da63962bc0f1 11 Serial pc(SERIAL_TX, SERIAL_RX);
emilytrembeth 4:da63962bc0f1 12 time_t currentTime;
emilytrembeth 4:da63962bc0f1 13 char lcdBuffer[32];
emilytrembeth 4:da63962bc0f1 14 DigitalOut myled(LED1);
emilytrembeth 4:da63962bc0f1 15 Ticker ticker;
emilytrembeth 4:da63962bc0f1 16 Mutex date_mutex;
emilytrembeth 5:60e116a1e913 17 int setting;
emilytrembeth 5:60e116a1e913 18 int t;
emilytrembeth 5:60e116a1e913 19 //InterruptIn SW1;
noutram 0:90e393878517 20
noutram 1:948bd552a2a2 21 Thread t1;
noutram 1:948bd552a2a2 22 Thread t2;
cgogay 7:981670f59caf 23 Thread t3;
erolleyparnell 11:799025124e87 24 Thread t4;
cgogay 7:981670f59caf 25
cgogay 7:981670f59caf 26
cgogay 7:981670f59caf 27 //LDR sensor
cgogay 7:981670f59caf 28 AnalogIn LDD_ADC_In(A1);
cgogay 7:981670f59caf 29 float fLDR = 0.0;
cgogay 7:981670f59caf 30 float volts = 0.0;
cgogay 7:981670f59caf 31
emilytrembeth 4:da63962bc0f1 32
emilytrembeth 4:da63962bc0f1 33
cgogay 6:2ef9c06ce506 34 //Main thread
cgogay 6:2ef9c06ce506 35 int main() {
cgogay 6:2ef9c06ce506 36
erolleyparnell 11:799025124e87 37 //Power On Check TODO
cgogay 6:2ef9c06ce506 38
erolleyparnell 11:799025124e87 39 lcd.printf("Select Time Option\n\n");
cgogay 6:2ef9c06ce506 40
cgogay 6:2ef9c06ce506 41 // run threads
cgogay 6:2ef9c06ce506 42 t1.start(FunctionSensor);
cgogay 7:981670f59caf 43 t2.start(FunctionTime);
cgogay 7:981670f59caf 44 t3.start(FunctionSerial);
erolleyparnell 11:799025124e87 45 t4.start(FunctionSD2);
cgogay 6:2ef9c06ce506 46
cgogay 6:2ef9c06ce506 47 }