fuck this
Dependencies: BMP280
LCD.h
- Committer:
- Swaggie
- Date:
- 2018-01-06
- Revision:
- 14:1fb1354ac27c
- Parent:
- 2:5a38ae8459d5
- Child:
- 15:e61297f9bae9
File content as of revision 14:1fb1354ac27c:
#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