** Function name: _post_setup_gpio() ** Location: main.cpp ** Description: second stage gpio setup to make a few functions work ***************************************************************************************/
| 26 | ** Description: second stage gpio setup to make a few functions work |
| 27 | ***************************************************************************************/ |
| 28 | void _post_setup_gpio() { |
| 29 | |
| 30 | if (!touch.begin(&SPI)) { |
| 31 | launcherConsolePrintf("%s\n", String("Touch IC not Started").c_str()); |
| 32 | log_i("Touch IC not Started"); |
| 33 | } else launcherConsolePrintf("%s\n", String("Touch IC Started").c_str()); |
| 34 | pinMode(TFT_BL, OUTPUT); |
| 35 | ledcAttach(TFT_BL, TFT_BRIGHT_FREQ, TFT_BRIGHT_Bits); |
| 36 | ledcWrite(TFT_BL, bright); |
| 37 | } |
| 38 | |
| 39 | /********************************************************************* |
| 40 | ** Function: setBrightness |
nothing calls this directly
no test coverage detected