Skip to content

Library for stm8 to work with LCD with I2C convertor

Notifications You must be signed in to change notification settings

matejkrenek/stm8-lcd-i2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

STM8 LCD I2C LIBRARY

Library for stm8 to work with LCD with I2C convertor
Report Bug · Request Feature


Table of contents

  • Installation
  • Usage
  • Contact
  • Limitations
  • Installation

    You can download .zip file of the library and implement lcd_i2c.h and lcd_i2c.c to you project.

    Another option is to clone the repository to your project

    git clone https://github.com/matejkrenek/stm8-lcd-i2c.git lcd_i2c

    Requirements

    Library uses delay functions, so you can use your own implementation of these or you can use stm8-delay library.

    Usage

    • Initializing LCD
    • parameters:
      • address - address of LCD
      • columns - number of columns
      • rows - number of rows
    LCD_I2C_Init(0x27, 16, 2);
    • Set cursors on display
    • parameters:
      • columns - index of column (starting from 0)
      • rows - index of row (starting from 0)
    LCD_I2C_SetCursor(0, 1);
    • Print on display
    • parameters:
      • string - string of chars to be printed
    LCD_I2C_Print("Hello World");
    • Turn on backlight
    LCD_I2C_Backlight();
    • Turn off backlight
    LCD_I2C_NoBacklight();
    • Clear display
    LCD_I2C_Clear();

    Contact

    Matěj Křenek - [email protected]

    Project Link: https://github.com/matejkrenek/stm8-lcd-i2c

    Limitations

    • Library is tested and fully supported just for uP listed in the table below

      Supported microprocessors
      STM8S208
      STM8S105
      STM8S103

    About

    Library for stm8 to work with LCD with I2C convertor

    Resources

    Stars

    Watchers

    Forks

    Packages

    No packages published

    Languages