Hi, In your book LVGL version 1.1 page 143 code example has missing and reversed code.
void setup() {
String LVGL_Arduino = String(“LVGL Library Version: “) + lv_version_major()
+ “.” + lv_version_minor() + “.” + lv_version_patch();
Serial.begin(115200);
Serial.println(LVGL_Arduino);
pinMode(CYD_LED_RED, OUTPUT);
// configure LED PWM functionalities
ledcAttachChannel(CYD_LED_RED, freq, resolution, ledChannel)
ledcWrite(CYD_RED_LED, 255);
The last two lines are wrong. Missing the; terminator and the ledcWrite should read (CYD_LED_RED).
Hi.
Thanks for pointing that out. I don’t know how that happened 😐
I’ll fix that in the next update.
However, the code in the URL is correct: https://gist.githubusercontent.com/RuiSantosdotme/e323ac830a79acbef6eead01c1d4f406/raw/f6d7a9c7181ea750a34580a879cdeeed96aa132d/2_5_Basic_Slider.ino
Always copy the code from the URLs provided in the eBook.
Regards,
Sara