Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkrenek authored Feb 17, 2023
1 parent f7289a1 commit 2ddb4ea
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,37 @@ Library uses delay functions, so you can use your own implementation of these or
<!-- USAGE EXAMPLES -->
## 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();
```

<!-- CONTACT -->
Expand Down

0 comments on commit 2ddb4ea

Please sign in to comment.