-
Notifications
You must be signed in to change notification settings - Fork 1
/
lcd1602.h
50 lines (44 loc) · 1.06 KB
/
lcd1602.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/******************************************************************************
* This file is a part of the SM2 Tutorial (C). * *
******************************************************************************/
/**
* @file lcd1602.h
* @author Koryciak
* @date Sep 2020
* @brief File containing enums, structures and declarations for LCD 2x16.
* @ver 0.1
*/
#ifndef LCD1602_H
#define LCD1602_H
#include "frdm_bsp.h"
#include "i2c.h"
/**
* @brief LCD1602 initialization.
*/
void LCD1602_Init(void);
/**
* @brief Print on the display.
*
* @param String to display.
*/
void LCD1602_Print(char *str);
/**
* @brief Clear whole display.
*/
void LCD1602_ClearAll(void);
/**
* @brief Set cursor on display.
*
* @param Column.
* @param Row.
*/
void LCD1602_SetCursor(uint8_t col, uint8_t row);
/**
* @brief Backlight turn on/off.
*
* @param State of the backlight.
*/
void LCD1602_Backlight(uint8_t state);
void LCD1602_Blink_On(void);
void LCD1602_Blink_Off(void);
#endif /* LCD1602_H */