Primjer ispisa znakova na 1602 zaslonu pogonjenom HD44780 integriranim krugom.

Dependencies:   mbed TextLCD

Primjer programskog koda koji uz pomoć TextLCD biblioteke omogućuje ispis znakova na 1602 LCD zaslonu pogonjenim HD44780 integriranim krugom.

https://os.mbed.com/media/uploads/jkordek/lcd1602.png

Spajanje LCD modula s LPC1768 mikroupravljačem:

https://os.mbed.com/media/uploads/jkordek/spajanje_s_mbedom.png

Files at this revision

API Documentation at this revision

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