wireless-tag-com / ZX2D10GE01R-V4848

The Unlicense
72 stars 18 forks source link

Button is created as active high but it's active low #3

Open FBEZ opened 7 months ago

FBEZ commented 7 months ago

The button in screen.c is created as active high g_btn = button_attch(3, 1, 10); While looking on the schematic it is clearly active low. It causes the event long press to be continuously fired. The line should be replaced with g_btn = button_attch(3, 0, 10); or better still with g_btn = button_attch(BTN_PIN, 0, 10)