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

Function _setBrightness

boards/reaper/interface.cpp:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127**********************************************************************/
128
129void _setBrightness(uint8_t brightval) {
130 if (brightval == 0) {
131 analogWrite(TFT_BL, brightval);
132 } else {
133 int bl = MINBRIGHT + round(((255 - MINBRIGHT) * brightval / 100));
134 analogWrite(TFT_BL, bl);
135 }
136}
137
138/*********************************************************************
139** Function: InputHandler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected