** Function: begin_tft ** Config tft *********************************************************************/
| 211 | ** Config tft |
| 212 | *********************************************************************/ |
| 213 | void begin_tft() { |
| 214 | tft.setRotation(bruceConfigPins.rotation); // sometimes it misses the first command |
| 215 | tft.invertDisplay(bruceConfig.colorInverted); |
| 216 | tft.setRotation(bruceConfigPins.rotation); |
| 217 | tftWidth = tft.width(); |
| 218 | #ifdef HAS_TOUCH |
| 219 | tftHeight = tft.height() - 20; |
| 220 | #else |
| 221 | tftHeight = tft.height(); |
| 222 | #endif |
| 223 | resetTftDisplay(); |
| 224 | setBrightness(bruceConfig.bright, false); |
| 225 | } |
| 226 | |
| 227 | /********************************************************************* |
| 228 | ** Function: boot_screen |
no test coverage detected