MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / _post_setup_gpio

Function _post_setup_gpio

boards/phantom/interface.cpp:28–37  ·  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

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

Callers

nothing calls this directly

Calls 2

launcherConsolePrintfFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected