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.
Dependencies: mbed
main.cpp@4:2759062f4264, 2017-12-27 (annotated)
- Committer:
- chills
- Date:
- Wed Dec 27 18:26:50 2017 +0000
- Revision:
- 4:2759062f4264
- Parent:
- 3:6ee7c8ce0b7a
2017_12_27 18:23; Working LCD Class!!!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chills | 0:87888ca85258 | 1 | #include "mbed.h" |
chills | 1:23bf1845cc2f | 2 | #include <string> |
chills | 4:2759062f4264 | 3 | #include "LCD.hpp" |
chills | 0:87888ca85258 | 4 | |
chills | 0:87888ca85258 | 5 | DigitalOut myled(LED1); |
chills | 0:87888ca85258 | 6 | |
chills | 4:2759062f4264 | 7 | /*DigitalOut RS(D9); |
chills | 0:87888ca85258 | 8 | DigitalOut RW(D4); |
chills | 0:87888ca85258 | 9 | DigitalOut E(D8); |
chills | 4:2759062f4264 | 10 | BusInOut DB(A0, A1, A2, A3, D7, D6, D3, D1); //LSB First*/ |
chills | 0:87888ca85258 | 11 | |
chills | 4:2759062f4264 | 12 | LCD lcd(D8,D9,D4,A0,A1,A2,A3,D7,D6,D3,D1); |
chills | 0:87888ca85258 | 13 | |
chills | 0:87888ca85258 | 14 | int main() { |
chills | 0:87888ca85258 | 15 | |
chills | 4:2759062f4264 | 16 | lcd.Initialise(); |
chills | 2:ed06e716cca2 | 17 | |
chills | 4:2759062f4264 | 18 | lcd.DDRAM_Address(0x00); |
chills | 4:2759062f4264 | 19 | lcd.Write_String("2017_12_27 18:22"); |
chills | 0:87888ca85258 | 20 | |
chills | 0:87888ca85258 | 21 | } |
chills | 0:87888ca85258 | 22 | |
chills | 0:87888ca85258 | 23 |