LCD screen test for Stage 1 Engineering at the University of York

Dependencies:   TextLCD UoY-serial

Committer:
ajp109
Date:
Tue Sep 21 13:02:48 2021 +0000
Revision:
2:fa30a823bed1
Parent:
1:acb591685a28
Initial commit (LCD test)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ajp109 0:77209603a6fe 1 #include "mbed.h"
ajp109 2:fa30a823bed1 2 #include "UoY-serial.h"
ajp109 2:fa30a823bed1 3 #include "TextLCD.h"
ajp109 0:77209603a6fe 4
ajp109 2:fa30a823bed1 5 TextLCD lcd(D8, D9, D10, D11, D12, D13); // 4bit bus: rs, e, d4-d7
ajp109 1:acb591685a28 6
ajp109 0:77209603a6fe 7 int main()
ajp109 0:77209603a6fe 8 {
ajp109 2:fa30a823bed1 9 lcd.cls();
ajp109 2:fa30a823bed1 10 lcd.printf("Hello...");
ajp109 2:fa30a823bed1 11 lcd.locate(7, 1);
ajp109 2:fa30a823bed1 12 lcd.printf("...world!");
ajp109 0:77209603a6fe 13 }
ajp109 2:fa30a823bed1 14