Xinyuan-LilyGO / T-Display-S3-Pro

35 stars 10 forks source link

Stemma QT Pinout #11

Open everybodyfloats opened 3 months ago

everybodyfloats commented 3 months ago

Can you provide the Stemma QT Pinout?

aleonnet commented 3 months ago

Hi @lewisxhe

Can you please provide an example to use this Stemma QT/UART for connecting an AT6558 navigation chip/GPS? Would something like this work?

include

static const uint32_t GPSBaud = 9600; HardwareSerial GPSRaw(2);

void Setup() { GPSRaw.begin(GPSBaud); ... }

void Loop(){ if (GPSRaw.available()) { int ch = GPSRaw.read(); uiRenderer.drawTextBox(mapSprite, String(ch), 10, 10, 4, TFT_WHITE); } .. }

lewisxhe commented 3 months ago

Refer to here, specify RX TX before initialization https://github.com/Xinyuan-LilyGO/LilyGo-AMOLED-Series/blob/299a71b1f79d5f372edfa2c1e0336e0de47b8b87/examples/QWIIC_GPS_Shield/QWIIC_GPS_Shield.ino#L30