From ccfa5566d1092161babe249a0b301580e6b6f99e Mon Sep 17 00:00:00 2001 From: Fabrice Bellamy <12b@distrilab.fr> Date: Fri, 30 Jan 2026 01:41:15 +0100 Subject: [PATCH] add more instructions aabout compiling and uploading using aduino-cli --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2020821..1545b6b 100644 --- a/README.md +++ b/README.md @@ -125,9 +125,16 @@ If you prefer the command line, you can use `arduino-cli`. 4. **Compile the project**: ```bash - arduino-cli compile --fqbn esp32:esp32:esp32s3box --build-property "build.partitions=default_16MB" --output-dir ./build . + arduino-cli compile --fqbn esp32:esp32:esp32s3box:USBMode=hwcdc --build-property "build.partitions=default_16MB" --output-dir ./build . ``` +5. **Compile the project and upload to the board though USB serial **: + ```bash + arduino-cli compile --fqbn esp32:esp32:esp32s3box:USBMode=hwcdc,DebugLevel=debug --build-property "build.partitions=default_16MB" && \ + arduino-cli upload -p /dev/ttyACM0 --fqbn esp32:esp32:esp32s3box:USBMode=hwcdc,DebugLevel=debug + ``` + Note : the `DebugLevel=debug` option can be omitted + Before building the souce code, you need to add in your working copy the secret.h file that contains the sensitive information that we not want to publish in the this git repository **ToDo :** The secret.h needs to be stored in the password manager used by Le Bib If your are building the source code for a different site than Le Bib, you can create your own secret.h based on secret.h.example