Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.55k stars 1.03k forks source link

Support for ESP32C6? #3255

Open HonestQiao opened 3 months ago

HonestQiao commented 3 months ago

datasheet of ESP32C6: https://www.espressif.com.cn/sites/default/files/documentation/esp32-c6_datasheet_en.pdf

Love4yzp commented 4 weeks ago

Have you faced any problem?

OscarTofa commented 3 weeks ago

Hello

I am trying to compile for c6 but I get the several errors.

" oc/esp32c6/include/soc/soc.h:112:54: error: invalid operands of types 'void' and 'long unsigned int' to binary 'operator|' 112 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); \

esp32c6/include/soc/soc.h:112:54: error: invalid operands of types 'void' and 'long unsigned int' to binary 'operator|' 112 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); \

TFT_eSPI_ESP32.h:75:22: error: 'VSPI' was not declared in this scope; did you mean 'SPI'? 75 | #define SPI_PORT VSPI TFT_eSPI_ESP32.c:409:48: error: invalid operands of types 'void' and 'long unsigned int' to binary 'operator&' 409 | while (READ_PERI_REG(SPI_CMD_REG(SPI_PORT))&SPI_USR);

TFT_eSPI_ESP32.h:189:50: error: no match for 'operator=' (operand types are 'volatile gpio_out_w1tc_reg_t' and 'int') 189 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)

TFT_eSPI_ESP32.h:235:50: error: no match for 'operator=' (operand types are 'volatile gpio_out_w1ts_reg_t' and 'int') 235 | #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)

If I compile for c2 or s3 I have no error

OscarTofa commented 2 weeks ago

Has anyone else experienced the same problem?

limengdu commented 2 weeks ago

I'm having the same problem, it looks like the TFT library is no longer supported since esp-arduino updated to 3.0.x.

Cincinnatu commented 1 week ago

ESP32C6 is not supported. Can someone submit a PR (pull request) for it

Cincinnatu commented 6 days ago

I finished the PR about ESP32C6 and TFT_eSPI :https://github.com/Bodmer/TFT_eSPI/pull/3399