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.
This commit is contained in:
David Montero 2026-05-23 08:49:26 +02:00
parent 2f60e3816a
commit 1a6e2a23a7
1 changed files with 10 additions and 0 deletions

View File

@ -60,6 +60,16 @@ export const robotDesktopExamples: ExampleProject[] = [
difficulty: 'advanced',
boardType: 'esp32',
boardFilter: 'esp32',
// Sketch includes <U8g2lib.h>, <DHT.h>, <ESP32Servo.h> and
// <Adafruit_Sensor.h>. 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',