VolosR / TTGOWeatherStation

129 stars 59 forks source link

ledcSetup compile error, any idea which lib should be used? #18

Open rolandbreedveld opened 3 months ago

rolandbreedveld commented 3 months ago

Hi I get these compile errors, perhaps using a wrong lib version?

regards, Roland

...../TTGOWeatherStation/Weather/Weather.ino:60:3: error: 'ledcSetup' was not declared in this scope 60 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution); | ^~~~~ .../TTGOWeatherStation/Weather/Weather.ino:61:17: error: 'TFT_BL' was not declared in this scope; did you mean 'TFT_CS'? 61 | ledcAttachPin(TFT_BL, pwmLedChannelTFT); | ^~ | TFT_CS .../TTGOWeatherStation/Weather/Weather.ino:61:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 61 | ledcAttachPin(TFT_BL, pwmLedChannelTFT); | ^~~~~ | ledcAttach

GeorgWolter commented 1 month ago

Hi Roland, solution for me was to use ESP 2.0.17 in the Board Manager. So not the 3x.

BoardManager