** Function name: _setup_gpio() ** Description: initial setup for the device ***************************************************************************************/
| 9 | ** Description: initial setup for the device |
| 10 | ***************************************************************************************/ |
| 11 | void _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() |
nothing calls this directly
no test coverage detected