Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * LCD1602.h
- *
- * Created on: Jan 22, 2023
- * Author: Psi
- */
- #ifndef SRC_LCD1602_H_
- #define SRC_LCD1602_H_
- #include "stm32f1xx_hal.h"
- void I2C_Scan(I2C_HandleTypeDef *hi2c);
- HAL_StatusTypeDef LCD_SendInternal(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, uint8_t data, uint8_t flags);
- void LCD_SendCommand(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, uint8_t cmd);
- void LCD_SendData(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, uint8_t data);
- void LCD_Init(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr);
- void LCD_SendString(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, char *str);
- void init(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr);
- void loop(I2C_HandleTypeDef *hi2c);
- #endif /* SRC_LCD1602_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement