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

Function _setup_gpio

boards/m5stack-cplus1_1/interface.cpp:11–18  ·  view source on GitHub ↗

** Function name: _setup_gpio() ** Description: initial setup for the device ***************************************************************************************/

Source from the content-addressed store, hash-verified

9** Description: initial setup for the device
10***************************************************************************************/
11void _setup_gpio() {
12 launcherGpioInput(SEL_BTN);
13 launcherGpioInput(DW_BTN);
14 // https://github.com/pr3y/Bruce/blob/main/media/connections/cc1101_stick_SDCard.jpg
15 launcherGpioOutput(33); // Keeps this pin high to allow working with the following pinout
16 launcherGpioWrite(33, HIGH); // Keeps this pin high to allow working with the following pinout
17 axp192.begin(); // Start the energy management of AXP192
18}
19
20/***************************************************************************************
21** Function name: getBattery()

Callers

nothing calls this directly

Calls 4

launcherGpioInputFunction · 0.85
launcherGpioOutputFunction · 0.85
launcherGpioWriteFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected