Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ELEC351_Group_T by
LCD.hpp@28:09b5c46c8afd, 2018-01-03 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed Jan 03 21:12:25 2018 +0000
- Revision:
- 28:09b5c46c8afd
- Parent:
- 25:36699ed589ab
- Child:
- 47:6d128e500875
Debugged Revision
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 | |
| thomasmorris | 25:36699ed589ab | 25 | DigitalOut _E; |
| thomasmorris | 28:09b5c46c8afd | 26 | DigitalOut _RS; |
| chills | 20:cbb71f84cff9 | 27 | DigitalOut _RW; |
| 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 |
