** Function name: _setup_gpio() ** Location: main.cpp ** Description: initial setup for the device ***************************************************************************************/
| 82 | ** Description: initial setup for the device |
| 83 | ***************************************************************************************/ |
| 84 | void _setup_gpio() { |
| 85 | // Keyboard.begin(); |
| 86 | launcherGpioInput(0); |
| 87 | launcherGpioInput(10); // Pin that reads the Battery voltage |
| 88 | launcherGpioOutput(5); |
| 89 | // Set GPIO5 HIGH for SD card compatibility (thx for the tip @bmorcelli & 7h30th3r0n3) |
| 90 | launcherGpioWrite(5, HIGH); |
| 91 | } |
| 92 | volatile bool kb_interrupt = false; |
| 93 | void IRAM_ATTR gpio_isr_handler(void *arg) { kb_interrupt = true; } |
| 94 | void _post_setup_gpio() { |
nothing calls this directly
no test coverage detected