• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Learn LVGL – Error

Q&A Forum › Category: ESP32 › Learn LVGL – Error
0 Vote Up Vote Down
Dale Etchells asked 9 months ago

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).

Question Tags: Code example error
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.