Can't compile ESP32Servo example

I'm very beginner. Maybe this is thumb question.
Installed Arduino IDE. Added ESP8266 boards with Boards Manager and selected S1 Mini board. Upload .bin files worked with my ESP266 board.
Installed ESP32Servo lib and tried to Verify/Compile the example sketch PWMExample. Following error message appear:

=====================================================
Using board 'd1_mini' from platform in folder: /home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2
Using core 'esp8266' from platform in folder: /home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2
Verwendete Bibliotheken erkennen...
/home/he/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/include -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/lwip2/include -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino-sketch-E6D1D7A4282AC64506CA78F37A3910CD/core -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"" -DFLASHMODE_DIO -DESP8266 -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266 -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/variants/d1_mini /tmp/arduino-sketch-E6D1D7A4282AC64506CA78F37A3910CD/sketch/PWMExample.ino.cpp -o /dev/null
Alternativen für ESP32Servo.h: [ESP32Servo@0.12.0]
ResolveLibrary(ESP32Servo.h)
-> Kandidaten: [ESP32Servo@0.12.0]
/home/he/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/include -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/lwip2/include -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino-sketch-E6D1D7A4282AC64506CA78F37A3910CD/core -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"" -DFLASHMODE_DIO -DESP8266 -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266 -I/home/he/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/variants/d1_mini -I/home/he/Arduino/libraries/ESP32Servo/src /tmp/arduino-sketch-E6D1D7A4282AC64506CA78F37A3910CD/sketch/PWMExample.ino.cpp -o /dev/null
Alternativen für esp32-hal-ledc.h: []
ResolveLibrary(esp32-hal-ledc.h)
-> Kandidaten: []
In file included from /home/he/Arduino/libraries/ESP32Servo/src/ESP32Servo.h:67,
from /home/he/Arduino/libraries/ESP32Servo/examples/PWMExample/PWMExample.ino:1:
/home/he/Arduino/libraries/ESP32Servo/src/analogWrite.h:4:10: fatal error: esp32-hal-ledc.h: No such file or directory
4 | #include <esp32-hal-ledc.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.

Bibliothek ESP32Servo in Version 0.12.0 im Ordner: /home/he/Arduino/libraries/ESP32Servo wird verwendet
exit status 1

Compilation error: exit status 1

I found the file esp32-hal-ledc.h in ESP32 core SDK, thus installed ESP32 boards. But this did not help.

Now my question: What do I missing to resolve the missing header file?

br HE

An ESP32 is not a ESP266, as a note.

Yes, that's true. But some sketches for the ESP8266 D1 mini uses ESP32servo and PWM. Seems to be working somehow. That's why I installed ESP32servo. I'm on trying to find out what's happen. Need to grab some more D1 boards. :smiley:
The one I have is successfully working now as MAVlink bridge.

be HE

ESP32Servo uses the ESP32's ledC API. The ESP8266 does not have a ledC API.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/ledc.html

OK, thank you. I will use another sketch. Maybe the one I used was not for the ESP8266 and I misinterpreted the use case.
Case closed. I have still a lot to learn... Give me time :wink:

br HE