bdk: btn: enable HOME button as input

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

No files matched your search

+5
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();