MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / _setup_gpio

Function _setup_gpio

boards/m5stack-cardputer/interface.cpp:84–91  ·  view source on GitHub ↗

** Function name: _setup_gpio() ** Location: main.cpp ** Description: initial setup for the device ***************************************************************************************/

Source from the content-addressed store, hash-verified

82** Description: initial setup for the device
83***************************************************************************************/
84void _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}
92volatile bool kb_interrupt = false;
93void IRAM_ATTR gpio_isr_handler(void *arg) { kb_interrupt = true; }
94void _post_setup_gpio() {

Callers

nothing calls this directly

Calls 3

launcherGpioInputFunction · 0.85
launcherGpioOutputFunction · 0.85
launcherGpioWriteFunction · 0.85

Tested by

no test coverage detected