Skip to content

TaskinOkmen/lcd1602a-i2c-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lcd1602a-i2c-driver

Overview

Common LCD1602A-I2C driver for my projects. PCF8574 I2C Expander needed along with LCD1602A. Compatible with STM32CubeIDE. Multiple lcds can be attached with different I2C ports.

  • Tested on STM32F446RE

Use Locally

Clone the project

  git clone https://github.com/TaskinOkmen/lcd1602a-i2c-driver.git

Usage/Examples

#include "main.h"
#include "lcd1602a.h"

I2C_HandleTypeDef hi2c1;

LCD1602A lcd;

...

/**
  * @brief  The application entry point.
  * @retval int
  */
int main(void) {

    /* other init functions */
    MX_I2C1_Init();

    // call after i2c init
    LCD_Init(&lcd, &hi2c1);

    LCD_SetCursor(&lcd, 0, 0);
    LCD_WriteString(&lcd, "TEST MESSAGE");

    ...
}

References

Authors

About

Common LCD1602A I2C driver library for my projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages