** Function name: _setup_gpio() ** Location: main.cpp ** Description: initial setup for the device ***************************************************************************************/
| 8 | ** Description: initial setup for the device |
| 9 | ***************************************************************************************/ |
| 10 | void _setup_gpio() { |
| 11 | launcherGpioInput(UP_BTN); // Sets the power btn as an INPUT |
| 12 | launcherGpioInput(SEL_BTN); |
| 13 | launcherGpioInput(DW_BTN); |
| 14 | launcherGpioOutput(4); // Keeps the Stick alive after take off the USB cable |
| 15 | launcherGpioWrite(4, HIGH); // Keeps the Stick alive after take off the USB cable |
| 16 | // https://github.com/pr3y/Bruce/blob/main/media/connections/cc1101_stick_SDCard.jpg |
| 17 | // Keeps this pin high to allow working with the following pinout |
| 18 | // Keeps this pin high to allow working with the following pinout |
| 19 | launcherGpioOutput(32); |
| 20 | launcherGpioOutput(33); |
| 21 | launcherGpioWrite(32, LOW); |
| 22 | launcherGpioWrite(33, HIGH); |
| 23 | gpio_pulldown_dis(GPIO_NUM_36); |
| 24 | gpio_pullup_dis(GPIO_NUM_36); |
| 25 | } |
| 26 | |
| 27 | /********************************************************************* |
| 28 | ** Function: setBrightness |
nothing calls this directly
no test coverage detected