init
This commit is contained in:
30
научка/code/pwm_motor_control/Interface/i2c_lcd.h
Normal file
30
научка/code/pwm_motor_control/Interface/i2c_lcd.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef __LCD_H_
|
||||
#define __LCD_H_
|
||||
|
||||
#include "periph_general.h"
|
||||
#include "cmsis_os.h"
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct{
|
||||
uint8_t Address;
|
||||
I2C_HandleTypeDef *hi2c;
|
||||
unsigned LCD_REINIT : 1;
|
||||
uint16_t DisplayDelay;
|
||||
uint8_t ClearDelay;
|
||||
|
||||
}LCDI2C_HandleTypeDef;
|
||||
|
||||
/**
|
||||
* @brief Initialization of LCD.
|
||||
* @note This called from main
|
||||
*/
|
||||
void LCD_Init(LCDI2C_HandleTypeDef *hlcd);
|
||||
void LCD_Reinit(LCDI2C_HandleTypeDef *hlcd);
|
||||
void LCD_Check(LCDI2C_HandleTypeDef *hlcd);
|
||||
void LCD_Send_STRING(LCDI2C_HandleTypeDef *hlcd, char *str);
|
||||
void LCD_Send_INT(LCDI2C_HandleTypeDef *hlcd, int int_to_string, uint8_t size);
|
||||
void LCD_Send_NUMB(LCDI2C_HandleTypeDef *hlcd, float numb_to_string, uint8_t size);
|
||||
void LCD_Send_DATA (LCDI2C_HandleTypeDef *hlcd, char data);
|
||||
void LCD_Send_CMD (LCDI2C_HandleTypeDef *hlcd, char cmd);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user