** 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 | pinMode(0, INPUT); |
| 87 | pinMode(5, OUTPUT); |
| 88 | // Set GPIO5 HIGH for SD card compatibility (thx for the tip @bmorcelli & 7h30th3r0n3) |
| 89 | digitalWrite(5, HIGH); |
| 90 | } |
| 91 | volatile bool kb_interrupt = false; |
| 92 | void IRAM_ATTR gpio_isr_handler(void *arg) { |
| 93 | kb_interrupt = true; |
nothing calls this directly
no outgoing calls
no test coverage detected