MCPcopy Create free account
hub / github.com/BruceDevices/firmware / _post_setup_gpio

Function _post_setup_gpio

boards/phantom/interface.cpp:29–40  ·  view source on GitHub ↗

** Function name: _post_setup_gpio() ** Location: main.cpp ** Description: second stage gpio setup to make a few functions work ***************************************************************************************/

Source from the content-addressed store, hash-verified

27** Description: second stage gpio setup to make a few functions work
28***************************************************************************************/
29void _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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected