bdk: btn: enable HOME button as input

This commit is contained in:
CTCaer
2022-01-16 01:05:42 +02:00
parent 1a9c6bf983
commit 5e6a7c486b
3 changed files with 9 additions and 2 deletions

View File

@@ -44,6 +44,11 @@ u8 btn_read_vol()
return res;
}
u8 btn_read_home()
{
return (!gpio_read(GPIO_PORT_Y, GPIO_PIN_1)) ? BTN_HOME : 0;
}
u8 btn_wait()
{
u8 res = 0, btn = btn_read();