main.c : button detection
This commit is contained in:
parent
afe2d53178
commit
d744215c24
1 changed files with 9 additions and 0 deletions
|
@ -195,6 +195,15 @@ int main(void)
|
|||
EPD_Display(BlackImage);
|
||||
DEV_Delay_ms(1000); //Analog clock 1s
|
||||
// printf("500ms..\r\n");
|
||||
if(!HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_12)){
|
||||
ButtonLeft_Pressed();
|
||||
}
|
||||
if(!HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_13)){
|
||||
ButtonPress_Pressed();
|
||||
}
|
||||
if(!HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_14)){
|
||||
ButtonRight_Pressed();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue