** Function name: _post_setup_gpio() ** Location: main.cpp ** Description: second stage gpio setup to make a few functions work ***************************************************************************************/
| 27 | ** Description: second stage gpio setup to make a few functions work |
| 28 | ***************************************************************************************/ |
| 29 | void _post_setup_gpio() { |
| 30 | // uint16_t calData[5]; |
| 31 | // bruceConfigPins.rotation = 0; |
| 32 | // tft.setRotation(0); |
| 33 | // tft.calibrateTouch(calData, TFT_WHITE, TFT_BLACK, 10); |
| 34 | // Serial.printf("%d\n%d\n%d\n%d\n%d\n", calData[0], calData[1], calData[2], calData[3], calData[4]); |
| 35 | // tft.setTouch(calData); |
| 36 | // Brightness control must be initialized after tft in this case @Pirata |
| 37 | pinMode(TFT_BL, OUTPUT); |
| 38 | ledcAttach(TFT_BL, TFT_BRIGHT_FREQ, TFT_BRIGHT_Bits); |
| 39 | ledcWrite(TFT_BL, 255); |
| 40 | } |
| 41 | |
| 42 | /********************************************************************* |
| 43 | ** Function: setBrightness |
nothing calls this directly
no outgoing calls
no test coverage detected