Closed koogar closed 1 year ago
Having the same problem. xiao works perfect (Same footprint & pinout) but same code does nothing on screen with the QT PY ESP32-C3 board. Using hardware SPI
This works on the XIAO ESP32C3 on Espressif v2.0.5 & v2.0.7(latest)
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST); // Use hardware SPI
I used D4 for the backlight
I do not know if you have to declare it as a digital pin "D" on the QT PY C3? I did on the XIAO C3.
Hope this helps
Rupert
Thanks Rupert,
both the adafruit QT PY & Xiao C3 are a little fickle, I have ended up going back to Arduino IDE V1.8 rather that V2 for programming these.
I have tried PIN_D?, but still no change. If i drop in a standard Xiao works straight away
"I have tried PIN_D? " I was referering to changing 5 to D5 etc, I should have also mentioned I was on arduino v1.8.19 Portable
Using the adafruit ILI9341 example to test rather than my code this is the header
// For the Adafruit shield, these are the default.
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
Same settings & code perfect on Xiao (SAMD)
Same settings & code on Xiao ESP32C3, white screen. Very strange
Try this on the XIAO C3. All the latest library versions
#include <Wire.h>
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
/* ESP32C3 SPi Hardware only for speed*/
#define TFT_CS D5
#define TFT_DC D7
#define TFT_RST D9
//#define TFT_CLK D8
//#define TFT_MOSI D10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST); // Use hardware SPI
https://github.com/koogar/Phat-Stats/tree/main/Experimental/XIAO_ESP32C3_ILI9431_GraphicsTest_PCB
Thanks I will try without change
Sorry I’m out of the office so Sent from my iPhone
On 24 Mar 2023, at 17:38, Tallman Labs @.***> wrote:
Try this on the XIAO C3. All the latest library versions
https://github.com/koogar/Phat-Stats/tree/main/Experimental/XIAO_ESP32C3_ILI9431_GraphicsTest_PCB
— Reply to this email directly, view it on GitHubhttps://github.com/adafruit/Adafruit_ILI9341/issues/86#issuecomment-1483178403, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6WYH4SZRRSB3NOTZ6MUGC3W5XLZ5ANCNFSM6AAAAAAVT2YQ5I. You are receiving this because you commented.Message ID: @.***>
Great works. Thanks. Now to find out what's different with my code
Arduino board: QT Py ESP32-C3
Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.19
Hi,
Just wondered if the ili9341 library is compatible with the QT Py ESP32-C3, as I have not been able to get an output.
I have been trying the same pins which I have been using on the QT PY ATSAMD21, plus some variations.
//QT Py ESP32-C3
// Libraries //Espressif 2.0.7 no compile //Espressif 2.0.6 no compile //Espressif 2.0.5 compiles
//ili9341 1.5.12 compiles
//----------------------------------------------------------------------------------
define TFT_CS 5
define TFT_DC 7
define TFT_RST 0 // also 9
/ hardware pins / // TFT_SCLK pin 8 // TFT_MOSI pin 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST); // Use hardware SPI //----------------------------------------------------------------------------------
Many thanks
Rupert