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:
main.cpp@0:334327d1a416, 2010-05-29 (annotated)
- Committer:
- simon
- Date:
- Sat May 29 10:19:29 2010 +0000
- Revision:
- 0:334327d1a416
- Child:
- 1:7418a52375a0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:334327d1a416 | 1 | #include "mbed.h" |
simon | 0:334327d1a416 | 2 | #include "TextLCD.h" |
simon | 0:334327d1a416 | 3 | |
simon | 0:334327d1a416 | 4 | TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3 |
simon | 0:334327d1a416 | 5 | |
simon | 0:334327d1a416 | 6 | int main() { |
simon | 0:334327d1a416 | 7 | lcd.printf("Hello World!\n"); |
simon | 0:334327d1a416 | 8 | } |