Plymouth ELEC351 Group T
/
ELEC351_Group_T
FINAL PROJECT isn't it
Fork of ELEC351 by
Diff: main.cpp
- Revision:
- 20:cbb71f84cff9
- Parent:
- 19:54bc302a82ea
- Child:
- 21:3c078c799caa
--- a/main.cpp Wed Dec 27 21:25:28 2017 +0000 +++ b/main.cpp Wed Dec 27 21:46:31 2017 +0000 @@ -18,6 +18,7 @@ #include "LED.hpp" #include "DATA.hpp" #include "NETWORK.hpp" +#include "LCD.hpp" #define SamplingTime 1 #define NotSamplingTime 0 #define Print_Time_to_LCD 1 @@ -45,6 +46,8 @@ LED Yellow_led(PB_10); LED Green_led(PB_11); +LCD LCD(D8,D9,D4,A0,A1,A2,A3,D7,D6,D3,D1); + //Tickers Ticker Sample_timer; @@ -246,6 +249,11 @@ set_time(1512940530); //Set RTC time to December 10 2017 pc.baud(9600); //Sets the Serial Comms Baud Rate + LCD.Initialise(); + LCD.DDRAM_Address(0x40); + LCD.Write_String("Hi Tom 21:41"); + + /* post(); //Power on Self Test @@ -281,7 +289,7 @@ t1.start(Sample); t2.start(Serial_Comms); - t5.start(ModeSelection); + //t5.start(ModeSelection); t6.start(Network); //Main thread ID