I just tried prior settings changing SCLK from 13 to 14 and using the long form of : ST7789_t3 tft = ST7789_t3(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
I lost visible display?
Wanted to use FrqCnt on LED_BUILTIN to measure loop speed. Merging sketches and the LED breaks display …
Moved to #15 for toggle to get FreqCnt - very close to counted frequency.
<added>
@KurtE - The tft.print and tft.printf are nice - with it filling background color - no need to clear text. And tft.setTextWrap(true); works for wrapping!
Using long pinned T4 on DIY breakout … Sketch starts with GraphicsTest {shorted delay()'s} - then instead of MediaButton loop() doing a 5 Serial# port pass through and doing a pin#15 toggle for FreqCnt, also the colorFade bar from SpeedTest.ino each data pass.
> Adds tft lag and messes with timing so having to adjust and clean stuff up that 'passed okay before' - better now
> And because lines can get shorter I do a fillRect() - after the string end - so some chars flash. Just shorted passed/printed Serial print text and got rid of that
> magnifying glass is very handy - - way too needed
But very nice to have FreqCnt print on display in one spot - not scroll by at one line of other text every 5ms … updated to 3ms and working with tft on 1 sec update when new FreqCnt.avail.
Using lots of pins 10 for Serial#, 2 for FreqCnt,, 4 for tft ST7789, 3,3V, GND ... turned off anaologWrite() to #2 so pins 8 left +GND&5V.
Got loop() cnt's to drop to about 127K with 2ms repeat - but only making 479 passes/sec with time slippage needed for limited tft updates.
Got loop() cycles back up over 7Million by reducing the 3 pixel wide colorFade bar update rate
T4 is amazing with USB output - checked the other day when PC was getting wacky with so much to display and stopping it from Teensy didn't speed up the Teensy loop() cnt.
This is with reduced yield() calls 1/100 loops() - plus 5 last minute calls before showing what was received - the ~16 Serial# chars transfer in under 100us. Will let it run next few hours and put a note on T4_Beta thread
Again tft ST7789 240x240 1.3" is very usable @KurtE