Primjer ispisa znakova na 1602 zaslonu pogonjenom HD44780 integriranim krugom.
Primjer programskog koda koji uz pomoć TextLCD biblioteke omogućuje ispis znakova na 1602 LCD zaslonu pogonjenim HD44780 integriranim krugom.
Spajanje LCD modula s LPC1768 mikroupravljačem:
Revision 3:cc82a8579ae6, committed 2020-10-24
- Comitter:
- jkordek
- Date:
- Sat Oct 24 16:54:53 2020 +0000
- Parent:
- 2:ad0b044d0a10
- Commit message:
- Prva verzija seminarskog rada
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ad0b044d0a10 -r cc82a8579ae6 main.cpp --- a/main.cpp Sat Dec 04 11:31:07 2010 +0000 +++ b/main.cpp Sat Oct 24 16:54:53 2020 +0000 @@ -3,8 +3,9 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 +TextLCD lcd(PA_0, PA_1, PA_4, PB_0, PC_1, PC_0); // rs, e, d4-d7 int main() { + lcd.locate(3,1); lcd.printf("Hello World!\n"); -} +} \ No newline at end of file