Advertisement
PsiAmp

lcd1602.h

Jan 21st, 2023
1,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. /*
  2.  * LCD1602.h
  3.  *
  4.  *  Created on: Jan 22, 2023
  5.  *      Author: Psi
  6.  */
  7.  
  8. #ifndef SRC_LCD1602_H_
  9. #define SRC_LCD1602_H_
  10.  
  11. #include "stm32f1xx_hal.h"
  12.  
  13. void I2C_Scan(I2C_HandleTypeDef *hi2c);
  14. HAL_StatusTypeDef LCD_SendInternal(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, uint8_t data, uint8_t flags);
  15. void LCD_SendCommand(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, uint8_t cmd);
  16. void LCD_SendData(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, uint8_t data);
  17. void LCD_Init(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr);
  18. void LCD_SendString(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr, char *str);
  19. void init(I2C_HandleTypeDef *hi2c, uint8_t lcd_addr);
  20. void loop(I2C_HandleTypeDef *hi2c);
  21.  
  22. #endif /* SRC_LCD1602_H_ */
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement