Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 2 KB

File metadata and controls

43 lines (34 loc) · 2 KB

Arduino_JC3248W535_LVGL9.4

This is a simple MP3 player demo example ready to be compiled inside the Arduino IDE for the Guiton JC3248W535 board. The GUI has be constructed using SquareLine Studio and LVGL.

alt text

Libraries to be installed in Arduino IDE

Compile using Arduino GUI

  1. Load the the file Arduino/mp3_player/mp3_player.ino into the Arduino GUI
  2. Select in in menu Tools: Board: "ESPS3 Dev Module"
  3. Port:
  4. USB CDC On Boot: Enabled
  5. Flash Size: 16MB (128 Mb)
  6. PSRAM: OPI PSRAM
  7. Partition Scheme: "16M Flash (3MB APP/9.9MB FATFS)"
  8. Compile and burn the code - be patient, it took ~ 16 minutes on my machine. The Sketch used 1992559 bytes.
  9. Prepare an SD card with MP3 files - you can use the exmaples provided by manufacturer see SD_MMC

alt text

Build the GUI using SquareLine

  1. Download and install SquareLine Studio 1.5.4
  2. Download and unpack Arduino_JC3248W535_LVGL9.4.zip from Github
  3. Copy the directory arduino_JC3248W535_1.0 to C:\Users<User>\SquareLine\boards\Arduino. See also https://docs.squareline.io/docs/obp/
  4. Create a new
  5. Copy the contents of the directory squareline_import to
  6. Run SquareLine Studio
  7. Import Open>Project from /mp3_player.spj
  8. Open project mp3_player
  9. Export>Create Template Project - select folder
  10. Export>Export UI files
  11. File>Save
  12. File>Exit

You will now find the new generated UI files ui_Main.c and ui_Main.h in /\mp3_player\UI_export. You can copy these files to \mp3_player\Arduino\mp3_player and recompile the Arduino sketch.

alt text