MCPcopy Create free account
hub / github.com/BruceDevices/firmware / _setup_gpio

Function _setup_gpio

boards/phantom/interface.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12***************************************************************************************/
13SPIClass touchSPI;
14void _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()

Callers

nothing calls this directly

Calls 2

setTouchMethod · 0.80
setRotationMethod · 0.45

Tested by

no test coverage detected