![](/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
LCD.hpp@20:cbb71f84cff9, 2017-12-27 (annotated)
- Committer:
- chills
- Date:
- Wed Dec 27 21:46:31 2017 +0000
- Revision:
- 20:cbb71f84cff9
- Child:
- 25:36699ed589ab
2017_12_27 21:43; LCD Class Implemented;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chills | 20:cbb71f84cff9 | 1 | #ifndef _LCD_HPP_ //Known as header guards |
chills | 20:cbb71f84cff9 | 2 | #define _LCD_HPP_ |
chills | 20:cbb71f84cff9 | 3 | |
chills | 20:cbb71f84cff9 | 4 | #include <string> |
chills | 20:cbb71f84cff9 | 5 | |
chills | 20:cbb71f84cff9 | 6 | class LCD //This creates a class called Led |
chills | 20:cbb71f84cff9 | 7 | { |
chills | 20:cbb71f84cff9 | 8 | |
chills | 20:cbb71f84cff9 | 9 | public: |
chills | 20:cbb71f84cff9 | 10 | |
chills | 20:cbb71f84cff9 | 11 | LCD(PinName E, PinName RS, PinName RW, PinName DB0, PinName DB1, PinName DB2, PinName DB3, PinName DB4, PinName DB5, PinName DB6, PinName DB7); |
chills | 20:cbb71f84cff9 | 12 | ~LCD(); |
chills | 20:cbb71f84cff9 | 13 | void clock_in(); |
chills | 20:cbb71f84cff9 | 14 | void Function_Set(); |
chills | 20:cbb71f84cff9 | 15 | void Display_Off(); |
chills | 20:cbb71f84cff9 | 16 | void Display_Clear(); |
chills | 20:cbb71f84cff9 | 17 | void Entry_Mode_Set(); |
chills | 20:cbb71f84cff9 | 18 | void Display_On(); |
chills | 20:cbb71f84cff9 | 19 | void DDRAM_Address(int Address); |
chills | 20:cbb71f84cff9 | 20 | void Write_String(string Word); |
chills | 20:cbb71f84cff9 | 21 | void Initialise(); |
chills | 20:cbb71f84cff9 | 22 | |
chills | 20:cbb71f84cff9 | 23 | private: |
chills | 20:cbb71f84cff9 | 24 | |
chills | 20:cbb71f84cff9 | 25 | DigitalOut _RW; |
chills | 20:cbb71f84cff9 | 26 | DigitalOut _RS; |
chills | 20:cbb71f84cff9 | 27 | DigitalOut _E; |
chills | 20:cbb71f84cff9 | 28 | |
chills | 20:cbb71f84cff9 | 29 | DigitalOut _DB0; |
chills | 20:cbb71f84cff9 | 30 | DigitalOut _DB1; |
chills | 20:cbb71f84cff9 | 31 | DigitalOut _DB2; |
chills | 20:cbb71f84cff9 | 32 | DigitalOut _DB3; |
chills | 20:cbb71f84cff9 | 33 | DigitalOut _DB4; |
chills | 20:cbb71f84cff9 | 34 | DigitalOut _DB5; |
chills | 20:cbb71f84cff9 | 35 | DigitalOut _DB6; |
chills | 20:cbb71f84cff9 | 36 | DigitalOut _DB7; |
chills | 20:cbb71f84cff9 | 37 | |
chills | 20:cbb71f84cff9 | 38 | }; |
chills | 20:cbb71f84cff9 | 39 | |
chills | 20:cbb71f84cff9 | 40 | |
chills | 20:cbb71f84cff9 | 41 | #endif |