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

Function _post_setup_gpio

boards/m5stack-sticks3/interface.cpp:100–104  ·  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

98** Description: second stage gpio setup to make a few functions work
99***************************************************************************************/
100void _post_setup_gpio() {
101 // PWM backlight setup
102 ledcAttach(TFT_BL, TFT_BRIGHT_FREQ, TFT_BRIGHT_Bits);
103 ledcWrite(TFT_BL, 250);
104}
105
106/*********************************************************************
107** Function: setBrightness

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected