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

Function _setBrightness

boards/smoochiee-board/interface.cpp:70–73  ·  view source on GitHub ↗

** Function: setBrightness ** location: settings.cpp ** set brightness value **********************************************************************/

Source from the content-addressed store, hash-verified

68** set brightness value
69**********************************************************************/
70void _setBrightness(uint8_t brightval) {
71 int bl = MINBRIGHT + round(((255 - MINBRIGHT) * bright / 100));
72 analogWrite(TFT_BL, bl);
73}
74
75/*********************************************************************
76** Function: InputHandler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected