DustinWatts / FreeTouchDeck

For interfacing with Windows/macOS/Linux using an ESP32, a touchscreen and BLE.
https://www.youtube.com/dustinwatts
MIT License
617 stars 124 forks source link

Problem with ledcSetup while uploading FreeTouchDeck.ino #126

Open OpossumTinte opened 2 weeks ago

OpossumTinte commented 2 weeks ago

Hey,

I get an error in this section while uploading the .ino data. (I use the exact same hardware as in the Youtube video)

ledcSetup(0, 5000, 8);

ifdef TFT_BL

ledcAttachPin(TFT_BL, 0);

else

ledcAttachPin(backlightPin, 0);

endif // defined(TFT_BL)

ledcWrite(0, ledBrightness); // Start @ initial Brightness

Error: 'ledcSetup' was not declared in this scope

TY in advance

DustinWatts commented 1 week ago

The quick solution is to downgrade the ESP32 Arduino core. Because there are some breaking changes regarding ledc in version 3. If you go for something like 2. something, It will work again. The long time solution is something I am working on but it can take some time due to being really busy...

OpossumTinte commented 1 week ago

Mate, you are a bloody legend. TY, I love my touchdeck!

DustinWatts commented 1 week ago

You are welcome mate! :)

It is just a temporary fix, but it does work. I'm keeping this Issue open, because I need to make FreeTouchDeck compatible with the newest version of the Arduino Core.