Skip to content

Latest commit

 

History

History
96 lines (79 loc) · 2.29 KB

README.md

File metadata and controls

96 lines (79 loc) · 2.29 KB

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