VolosR / ResistorTTGO

40 stars 14 forks source link

Compilation error: 'ledcSetup' was not declared in this scope #4

Open anthonyjclarke opened 1 month ago

anthonyjclarke commented 1 month ago

I wonder if this is a simple user error issue.... trying to compile this and get the following errors. I think I have the board and framework all setup correctly. Using ArduinoIDE

/Users/anthonyjclarke/Downloads/ResistorTTGO/ResistorTTGO/ResistorTTGO.ino: In function 'void setup()': /Users/anthonyjclarke/Downloads/ResistorTTGO/ResistorTTGO/ResistorTTGO.ino:36:3: error: 'ledcSetup' was not declared in this scope 36 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution); | ^~~~~ /Users/anthonyjclarke/Downloads/ResistorTTGO/ResistorTTGO/ResistorTTGO.ino:37:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 37 | ledcAttachPin(TFT_BL, pwmLedChannelTFT); | ^~~~~ | ledcAttach

exit status 1

Compilation error: 'ledcSetup' was not declared in this scope

image image

Many thanks in advance

anthonyjclarke commented 1 month ago

I think the issue is resolved, documenting if others have this... thanks to this thread.... https://forum.arduino.cc/t/how-to-display-image-on-ttgo-t-display-esp32/1174923