When I include the regular Servo library by Michael Margolis in PlatformIO I get the following error message when I compile for Wemos D1: .pio\libdeps\d1\Servo\src/Servo.h:77:2: error: #error “This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor.”
Okay, fair enough. Except the code compiles and runs perfectly on the ESP8266 when I use the Arduino IDE to upload code.
So the Servo library does work with the Wemos D1 Mini.
Do you have any idea on how to fix this? I have already spent hours pulling my hair.
I did read this similar issue, but I have no global libraries to remove.
I have also followed the suggestion in this topic to run the “Clean” project task and remove the .pio folder. The problem and error message still persists.