| 12 | ***************************************************************************************/ |
| 13 | SPIClass touchSPI; |
| 14 | void _setup_gpio() { |
| 15 | pinMode(XPT2046_CS, OUTPUT); |
| 16 | digitalWrite(XPT2046_CS, HIGH); |
| 17 | bruceConfigPins.rotation = 0; // portrait mode for Phantom |
| 18 | bruceConfig.colorInverted = 0; // color invert for Phantom |
| 19 | tft.setRotation(bruceConfigPins.rotation); |
| 20 | uint16_t calData[5] = {275, 3500, 280, 3590, 3}; // 0011 = 3 |
| 21 | tft.setTouch(calData); |
| 22 | } |
| 23 | |
| 24 | /*************************************************************************************** |
| 25 | ** Function name: _post_setup_gpio() |
nothing calls this directly
no test coverage detected