** Function: setBrightness ** location: settings.cpp ** set brightness value **********************************************************************/
| 142 | ** set brightness value |
| 143 | **********************************************************************/ |
| 144 | void _setBrightness(uint8_t brightval) { |
| 145 | if (brightval == 0) { |
| 146 | analogWrite(TFT_BL, brightval); |
| 147 | } else { |
| 148 | int bl = MINBRIGHT + round(((255 - MINBRIGHT) * brightval / 100)); |
| 149 | analogWrite(TFT_BL, bl); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /********************************************************************* |
| 154 | ** Function: InputHandler |
nothing calls this directly
no outgoing calls
no test coverage detected