Hello,
I’m using Arduino with an ESP32 Wroom2 ,ang the 2.5 Basic Slider.ino Works fine.
Sometimes I try to use Platformio using sketches written for Arduino. I’m currently trying to get the 2.5 Basic Slider from the LVGL course to work, and I can’t seem to resolve the problem. The main cause is the confusion created by Espressif by introducing a version 3. Attempts with PWN have been unsuccessful.
Does anyone have a simple modification to this program to make it work under Platformio?
I’m an older hobbyist, and I’m having a bit of trouble understanding the long explanations.
Hello
finally i just change in static vois dlider_event_callback(lv_event_t *e)
ledcWrite(CYD_LED_BLUE, map((int)lv_slider_get_value(slider), 0, 100, 255, 0));
with
ledcWrite(0, map((int)lv_slider_get_value(slider), 0, 100, 255, 0));
Hello
finally i just change in static vois dlider_event_callback(lv_event_t *e)
ledcWrite(CYD_LED_BLUE, map((int)lv_slider_get_value(slider), 0, 100, 255, 0));
with
ledcWrite(0, map((int)lv_slider_get_value(slider), 0, 100, 255, 0));
All is working fine now
Hi.
Great. I’m glad everything is working now.
Just to make things clear:
When using platformIO, it will use the older version of the ESP32 core, version 2.
From version 2 to version 3, the way PWM is controlled is different.
In our codes, we’re now using version 3.
plaformIO doesn’t support version 3 of the ESP32 core. For that, you have to use pioarduino:https://randomnerdtutorials.com/vs-code-pioarduino-ide-esp32/
However, we have received mixed feedback from using pioarduino. While some say it works as expected without any issues, others have reported mixing conflicting versions and issues with unexpected errors related to the installation. Some people still prefer to use the older version of VS Code.
This issue doesn’t happen with Arduino IDE.
Regards,
Sara
thanks Sara,
May be I cab try to use Espressif IDF as explain in you site..
best Regards
Jacques B