![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
Diff: LCD.hpp
- Revision:
- 20:cbb71f84cff9
- Child:
- 25:36699ed589ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LCD.hpp Wed Dec 27 21:46:31 2017 +0000 @@ -0,0 +1,41 @@ +#ifndef _LCD_HPP_ //Known as header guards +#define _LCD_HPP_ + +#include <string> + +class LCD //This creates a class called Led +{ + +public: + + LCD(PinName E, PinName RS, PinName RW, PinName DB0, PinName DB1, PinName DB2, PinName DB3, PinName DB4, PinName DB5, PinName DB6, PinName DB7); + ~LCD(); + void clock_in(); + void Function_Set(); + void Display_Off(); + void Display_Clear(); + void Entry_Mode_Set(); + void Display_On(); + void DDRAM_Address(int Address); + void Write_String(string Word); + void Initialise(); + +private: + + DigitalOut _RW; + DigitalOut _RS; + DigitalOut _E; + + DigitalOut _DB0; + DigitalOut _DB1; + DigitalOut _DB2; + DigitalOut _DB3; + DigitalOut _DB4; + DigitalOut _DB5; + DigitalOut _DB6; + DigitalOut _DB7; + +}; + + +#endif \ No newline at end of file