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

Function _setBrightness

boards/reaper/interface.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105**********************************************************************/
106
107void _setBrightness(uint8_t brightval) {
108 if (brightval == 0) {
109 analogWrite(TFT_BL, brightval);
110 } else {
111 int bl = MINBRIGHT + round(((255 - MINBRIGHT) * brightval / 100));
112 analogWrite(TFT_BL, bl);
113 }
114}
115
116/*********************************************************************
117** Function: InputHandler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected