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.78k stars 1.09k forks source link

lilygo T-Display S3 ESP32-S3 1.9 inch ST7789 LCD Display ARDUINO compiler error: 'ledcSetup' was not declared in this scope 16 | ledcSetup(0, 10000, 8); #3411

Open SalihHortum opened 3 months ago

SalihHortum commented 3 months ago

ARDUINO IDE 2.3.2 TFT_eSPI ver: 2.5.43 Board "Lilygo T-Display s3" selected CustomFont.zip Compiler gives error : C:\Users\salih\OneDrive\Desktop\CustomFonts-main\CustomFonts-main\FontCustom\CustomFont\CustomFont.ino:16:6: error: 'ledcSetup' was not declared in this scope 16 | ledcSetup(0, 10000, 8); | ^~~~~ C:\Users\salih\OneDrive\Desktop\CustomFonts-main\CustomFonts-main\FontCustom\CustomFont\CustomFont.ino:17:6: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 17 | ledcAttachPin(38, 0);

Thanks.

Rollmops67 commented 2 months ago

Maybe ou changed your ESP 32 library from 2.x.xx to 3.x.xx ?? With the versions beginning with 3 there are a lot of new or changed commands, particulary to setup a PWM output with commands beginning with "ledc". Have a look here : https://github.com/espressif/arduino-esp32/blob/master/docs/en/migration_guides/2.x_to_3.0.rst#id4

Roland