From 1a6e2a23a7a83d63510bb1118f67791cc952abbd Mon Sep 17 00:00:00 2001 From: David Montero Date: Sat, 23 May 2026 08:49:26 +0200 Subject: [PATCH] fix(examples): auto-install libs for robot-desktop-eyes Sketch fails to compile out of the box with fatal error: ESP32Servo.h: No such file or directory because the ESP32Servo / U8g2 / DHT / Adafruit Unified Sensor libs aren't part of arduino-esp32 and weren't declared on the example. loadExample.ts already iterates `example.libraries` and runs arduino-cli lib install for any missing entry before the user touches Compile. Adding the four real deps the sketch needs gets the example compiling cleanly on a fresh container without any manual Library Manager dance. --- frontend/src/data/examples-robot-desktop.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/data/examples-robot-desktop.ts b/frontend/src/data/examples-robot-desktop.ts index 51da8814..4c6ec752 100644 --- a/frontend/src/data/examples-robot-desktop.ts +++ b/frontend/src/data/examples-robot-desktop.ts @@ -60,6 +60,16 @@ export const robotDesktopExamples: ExampleProject[] = [ difficulty: 'advanced', boardType: 'esp32', boardFilter: 'esp32', + // Sketch includes , , and + // . None of those ship with arduino-esp32, so + // declare them here — loadExample() runs `arduino-cli lib install` + // for each missing entry before the user clicks Compile. + libraries: [ + 'Adafruit Unified Sensor', + 'DHT sensor library', + 'ESP32Servo', + 'U8g2', + ], tags: [ 'esp32', 'oled', 'ssd1306', 'dht11', 'pir', 'ldr', 'servo', 'animation', 'robot', 'cozmo', 'eyes', 'multi-file',