From 2ddb4ea22957f5d79291c3233fca10a315345dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20K=C5=99enek?= <64211833+matejkrenek@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:28:57 +0100 Subject: [PATCH] Update README.md --- README.md | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f2fbfe8..abf3bc6 100644 --- a/README.md +++ b/README.md @@ -44,12 +44,37 @@ Library uses delay functions, so you can use your own implementation of these or ## Usage - Initializing LCD - - params: - - address of LCD - - number of columns - - number of rows + - parameters: + - address - address of LCD + - columns - number of columns + - rows - number of rows ```c - LCD_I2C_Init(0x27, 16, 2) + 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) + ```c + LCD_I2C_SetCursor(0, 1); + ``` + - Print on display + - parameters: + - string - string of chars to be printed + ```c + LCD_I2C_Print("Hello World"); + ``` + - Turn on backlight + ```c + LCD_I2C_Backlight(); + ``` +- Turn off backlight + ```c + LCD_I2C_NoBacklight(); + ``` +- Clear display + ```c + LCD_I2C_Clear(); ```