Zap'Em Blast'Em Robots
robots that play laser tag!
Loading...
Searching...
No Matches
lcd.h
Go to the documentation of this file.
1
9
10
#ifndef LCD_H
11
#define LCD_H
12
13
#include "stm32f4xx_hal.h"
14
16
#define LCD_I2C_ADDR (0x27 << 1)
17
19
extern
I2C_HandleTypeDef
hi2c1
;
20
24
void
lcd_init
(
void
);
25
29
void
lcd_clear
(
void
);
30
37
void
lcd_set_cursor
(uint8_t row, uint8_t col);
38
44
void
lcd_print
(
char
*str);
45
51
void
lcd_send_command
(uint8_t cmd);
52
58
void
lcd_send_data
(uint8_t data);
59
63
void
lcd_force_backlight_on
(
void
);
64
65
#endif
// LCD_H
lcd_send_command
void lcd_send_command(uint8_t cmd)
Sends a command byte to the LCD.
Definition
lcd.c:57
lcd_init
void lcd_init(void)
Initializes the LCD in 4-bit I2C mode.
Definition
lcd.c:82
lcd_set_cursor
void lcd_set_cursor(uint8_t row, uint8_t col)
Sets the LCD cursor to a specific row and column.
Definition
lcd.c:114
lcd_print
void lcd_print(char *str)
Prints a null-terminated string to the LCD.
Definition
lcd.c:125
lcd_force_backlight_on
void lcd_force_backlight_on(void)
Forces the LCD backlight to remain on.
Definition
lcd.c:74
lcd_send_data
void lcd_send_data(uint8_t data)
Sends a data byte (character) to the LCD.
Definition
lcd.c:67
lcd_clear
void lcd_clear(void)
Clears the LCD display.
Definition
lcd.c:103
hi2c1
I2C_HandleTypeDef hi2c1
External handle to use your I2C peripheral.
Definition
main.c:57
Inc
lcd.h
Generated by
1.14.0