换屏幕驱动芯片,按钮驱动都要连带一起改
This commit is contained in:
@@ -11,4 +11,29 @@
|
||||
void my_code();
|
||||
|
||||
|
||||
|
||||
|
||||
#define HC595_DCK(x) HAL_GPIO_WritePin(HC595_DLK_GPIO_Port, HC595_DLK_Pin, x);
|
||||
#define HC595_RCK(x) HAL_GPIO_WritePin(HC595_RLK_GPIO_Port, HC595_RLK_Pin, x);
|
||||
#define HC595_SCK(x) HAL_GPIO_WritePin(HC595_SLK_GPIO_Port, HC595_SLK_Pin, x);
|
||||
#define HC595_SCK2(x) HAL_GPIO_WritePin(HC595_SLK2_GPIO_Port, HC595_SLK2_Pin, x);
|
||||
#define READ_HC595_DCK HAL_GPIO_ReadPin(HC595_DLK_GPIO_Port,HC595_DLK_Pin)
|
||||
|
||||
|
||||
struct display_penal
|
||||
{
|
||||
char d_num[4];
|
||||
char button_flag[4];
|
||||
char dot1:1;
|
||||
char dot2:1;
|
||||
char dot3:1;
|
||||
char dot4:1;
|
||||
char led_run:1;
|
||||
|
||||
char moto1a:1;
|
||||
char moto1b:1;
|
||||
char moto2a:1;
|
||||
char moto2b:1;
|
||||
}dis_buff;
|
||||
|
||||
#endif /* MY_CODE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user