VolosR / tDisplayS3WeatherStation

83 stars 9 forks source link

Uses the v2.x ESP32 API, so doesn't compile with v3.0 #1

Open twj42 opened 1 month ago

twj42 commented 1 month ago

The spec for ledcAttach has changed from v2 to v3 - functions of ledcSetup and ledcAttachPin are now merged.

a10kiloham commented 1 month ago

even with that fixed it goes into a bootloop now

ajdrew commented 4 weeks ago

Would it be possible to get these two lines re-written for the v3.0 API?

ledcSetup(0, 10000, 8); ledcAttachPin(38, 0);

I'm struggling translating the above into the new v3.0 API statement.

ledcAttach();

I have found this article, but I'm having a difficult time translating v2.0 to v3.0. Not a lot of information and I'm new at this. https://docs.espressif.com/projects/arduino-esp32/en/latest/api/ledc.html#ledcattach