![](/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@50:3d61ca637399, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 12:19:12 2018 +0000
- Revision:
- 50:3d61ca637399
- Parent:
- 48:244d6d81bb52
Dynamic Dating Working
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> |
thomasmorris | 47:6d128e500875 | 5 | #include "mbed.h" |
thomasmorris | 47:6d128e500875 | 6 | #include "rtos.h" |
thomasmorris | 48:244d6d81bb52 | 7 | # |
chills | 20:cbb71f84cff9 | 8 | class LCD //This creates a class called Led |
chills | 20:cbb71f84cff9 | 9 | { |
chills | 20:cbb71f84cff9 | 10 | |
chills | 20:cbb71f84cff9 | 11 | public: |
chills | 20:cbb71f84cff9 | 12 | |
chills | 20:cbb71f84cff9 | 13 | 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 | 14 | ~LCD(); |
chills | 20:cbb71f84cff9 | 15 | void clock_in(); |
chills | 20:cbb71f84cff9 | 16 | void Function_Set(); |
chills | 20:cbb71f84cff9 | 17 | void Display_Off(); |
chills | 20:cbb71f84cff9 | 18 | void Display_Clear(); |
chills | 20:cbb71f84cff9 | 19 | void Entry_Mode_Set(); |
chills | 20:cbb71f84cff9 | 20 | void Display_On(); |
chills | 20:cbb71f84cff9 | 21 | void DDRAM_Address(int Address); |
chills | 20:cbb71f84cff9 | 22 | void Write_String(string Word); |
chills | 20:cbb71f84cff9 | 23 | void Initialise(); |
chills | 20:cbb71f84cff9 | 24 | |
chills | 20:cbb71f84cff9 | 25 | private: |
chills | 20:cbb71f84cff9 | 26 | |
thomasmorris | 25:36699ed589ab | 27 | DigitalOut _E; |
thomasmorris | 28:09b5c46c8afd | 28 | DigitalOut _RS; |
chills | 20:cbb71f84cff9 | 29 | DigitalOut _RW; |
chills | 20:cbb71f84cff9 | 30 | |
chills | 20:cbb71f84cff9 | 31 | DigitalOut _DB0; |
chills | 20:cbb71f84cff9 | 32 | DigitalOut _DB1; |
chills | 20:cbb71f84cff9 | 33 | DigitalOut _DB2; |
chills | 20:cbb71f84cff9 | 34 | DigitalOut _DB3; |
chills | 20:cbb71f84cff9 | 35 | DigitalOut _DB4; |
chills | 20:cbb71f84cff9 | 36 | DigitalOut _DB5; |
chills | 20:cbb71f84cff9 | 37 | DigitalOut _DB6; |
chills | 20:cbb71f84cff9 | 38 | DigitalOut _DB7; |
chills | 20:cbb71f84cff9 | 39 | |
chills | 20:cbb71f84cff9 | 40 | }; |
chills | 20:cbb71f84cff9 | 41 | |
chills | 20:cbb71f84cff9 | 42 | |
chills | 20:cbb71f84cff9 | 43 | #endif |