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

main.cpp

Committer:
jkordek
Date:
2020-10-24
Revision:
3:cc82a8579ae6
Parent:
2:ad0b044d0a10

File content as of revision 3:cc82a8579ae6:

// Hello World! for the TextLCD

#include "mbed.h"
#include "TextLCD.h"

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");
}