MCPcopy Create free account
hub / github.com/BruceDevices/firmware / _setup_gpio

Function _setup_gpio

boards/m5stack-cardputer/interface.cpp:84–90  ·  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 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}
91volatile bool kb_interrupt = false;
92void IRAM_ATTR gpio_isr_handler(void *arg) {
93 kb_interrupt = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected