LCD INTERFACING WITH STM-32 MBED PLATFORM In this tutorial you can find information about interfacing of different LCD panel with any (Here - STM32 NUCLEO-64) using Mbed platform and TextLCD.h library. Purpose of this program-- Basic Usage of library and interconnection description
Diff: main.cpp
- Revision:
- 0:bc6273c46d49
- Child:
- 1:d9d7df4ad61b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 16 06:20:35 2020 +0000 @@ -0,0 +1,24 @@ +/* LCD INTERFACING BASIC PART -- TEXT DISPLAY +D4 TO D7 = PA3,PA2,PA10,PB3 === PORT PINS ==== +RS = PC0 +E = PC1 +R/W = GND +PLATFORM :MBED ARM ONLINE +HARDWARE : NUCLEO-64 / STM32\ +LCD : 20 *4 DISPLAY MODULE RG2004A +JAYDEEP SHAH -- radhey04ec@gmail.com +*/ + +//NOTE YOU NEED TO IMPORT LIBRARY - TextLCD.h for using class (4-bit interface) + +//Link : https://os.mbed.com/components/HD44780-Text-LCD/ + +#include "mbed.h" //MBED LIBRARY +#include "TextLCD.h" // LCD LIBRARY + +TextLCD lcd(PC_0, PC_1, PB_4, PB_5, PB_3, PA_10, TextLCD::LCD20x4); // rs, e, d4-d7 -- REGISTER SELECT / ENABLE / AND DATA-PIN + +int main() { // MAIN THREAD START + + lcd.printf("Jaydeep Shah!\n"); // PRINT COMMAND -- TXT ON LCD +} \ No newline at end of file