** Function: setBrightness ** location: settings.cpp ** set brightness value **********************************************************************/
| 30 | ** set brightness value |
| 31 | **********************************************************************/ |
| 32 | void _setBrightness(uint8_t brightval) { |
| 33 | if (brightval == 0) { |
| 34 | analogWrite(TFT_BL, brightval); |
| 35 | } else { |
| 36 | int bl = MINBRIGHT + round(((255 - MINBRIGHT) * brightval / 100)); |
| 37 | analogWrite(TFT_BL, bl); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /********************************************************************* |
| 42 | ** Function: InputHandler |
nothing calls this directly
no outgoing calls
no test coverage detected