** Function: setBrightness ** location: settings.cpp ** set brightness value **********************************************************************/
| 43 | ** set brightness value |
| 44 | **********************************************************************/ |
| 45 | void _setBrightness(uint8_t brightval) { |
| 46 | if (brightval == 0) { |
| 47 | analogWrite(TFT_BL, brightval); |
| 48 | } else { |
| 49 | int bl = MINBRIGHT + round(((255 - MINBRIGHT) * brightval / 100)); |
| 50 | analogWrite(TFT_BL, bl); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | /********************************************************************* |
| 55 | ** Function: InputHandler |
nothing calls this directly
no outgoing calls
no test coverage detected