fuck this

Dependencies:   BMP280

Revision:
14:1fb1354ac27c
Parent:
2:5a38ae8459d5
Child:
15:e61297f9bae9
--- a/LCD.h	Thu Jan 04 19:32:30 2018 +0000
+++ b/LCD.h	Sat Jan 06 16:15:25 2018 +0000
@@ -1,6 +1,37 @@
 #ifndef __LCD__
 #define __LCD__
-
+/*
+*This class inherits the TextLCD class to add functionality to display enviromental readings,
+*with a scrolling display, or to display a specific message, with the option of timing out back
+*to scrolling
+*/
+#include "mbed.h"
+#include "TextLCD.h"
+#include <string>
 //These functions manage writing to the LCD
 
+class EnviromLCDDisplay : public TextLCD
+{
+private:
+    //private variables
+    enum ThreadState{MESSAGE,SCROLLREADINGS,ADJUSTTIME};
+    enum ScrollState{PRESTEMP,LDRTIME};
+    
+    ThreadState _TState;    //This determines what function the LCD is doing
+    ScrollState _SState;    //This determines what screen on the LCD is shown
+    
+    float 
+    //private functions
+public:
+    //public functions
+    EnviromLCDDisplay(PinName rs,PinName e, PinName d4, PinName d5, PinName d6, PinName d7);    //Constructor
+    ~EnviromLCDDisplay(void);   //Destructor
+    
+    void LCDThread(void);   //This needs to be attached to a thread
+    void LCD_Update(float temp, float pressure, float LDR, unsigned int TimeTaken); //Write these values to screen
+    void DisplayMessage(string Message);    //Clear the screen and write a custom mesage
+    //void POST(void);    //Power on self test
+};
+
+
 #endif
\ No newline at end of file