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:
parent
2f60e3816a
commit
1a6e2a23a7
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue