mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 21:17:51 +00:00
added dfu button to debug app
This commit is contained in:
@@ -48,7 +48,11 @@ void IO::init() {
|
||||
gpio_io_stbx.output();
|
||||
gpio_addr.output();
|
||||
gpio_rot_a.input();
|
||||
|
||||
//TODO: find right settings
|
||||
//gpio_rot_b.set();
|
||||
gpio_rot_b.input();
|
||||
//gpio_rot_b.configure();
|
||||
}
|
||||
|
||||
void IO::lcd_backlight(const bool value) {
|
||||
@@ -110,7 +114,8 @@ uint32_t IO::io_update(const TouchPinsConfig write_value) {
|
||||
}
|
||||
gpio_addr.write(addr);
|
||||
|
||||
return switches_raw;
|
||||
auto dfu_btn = portapack::io.dfu_read();
|
||||
return (switches_raw & 0x7f) | (dfu_btn << 7 );
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user