mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-10 07:30:08 -04:00
added dfu button to debug app
This commit is contained in:
parent
bcefa774cd
commit
d74fd92451
3 changed files with 7 additions and 11 deletions
|
@ -48,11 +48,7 @@ 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) {
|
||||
|
@ -114,8 +110,8 @@ uint32_t IO::io_update(const TouchPinsConfig write_value) {
|
|||
}
|
||||
gpio_addr.write(addr);
|
||||
|
||||
auto dfu_btn = portapack::io.dfu_read();
|
||||
return (switches_raw & 0x7f) | (dfu_btn << 7 );
|
||||
auto dfu_btn = portapack::io.dfu_read() & 0x01;
|
||||
return (switches_raw & 0x7f) | (dfu_btn << 7);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue