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
main.cpp
- Committer:
- radhey04ec
- Date:
- 2020-07-16
- Revision:
- 0:bc6273c46d49
- Child:
- 1:d9d7df4ad61b
File content as of revision 0:bc6273c46d49:
/* 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 }