Skip to content

16x2 LCD Library - Compatible with All STM32 Boards

License

Notifications You must be signed in to change notification settings

anilberg/stm32-lcd-lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCD (16x2) Library For STM32

Compatible with All STM32 Boards

This library provides to using STM32 and LCD together. This library debugged and tested on Nucleo F303RE and STM32F4 Discovery Boards.

Installing The LCD Library

Open lcd_config.h file with text editor.

4 Bit(Default) Mode Installation
Select port and pins which is suitable for your device.

/* CONFIG FOR LIBRARY USER */
#define GPIO_PORT GPIOC

#define DATA_PIN1 GPIO_PIN_1
#define DATA_PIN2 GPIO_PIN_2
#define DATA_PIN3 GPIO_PIN_3
#define DATA_PIN4 GPIO_PIN_4

#define E_PIN  GPIO_PIN_5
#define RS_PIN GPIO_PIN_6

8 Bit Mode Installation
If you want to work with 8 bit mode, you should be uncomment this area in "lcd_config.h". Then, you can configure pins.

//if 8-bit mode selected;

#define LCD8Bit
#define DATA_PIN5 GPIO_PIN_5
#define DATA_PIN6 GPIO_PIN_6
#define DATA_PIN7 GPIO_PIN_7
#define DATA_PIN8 GPIO_PIN_8

Example

main.c file has an example to test your library works correctly or not.

About

16x2 LCD Library - Compatible with All STM32 Boards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%