Closed amotl closed 3 years ago
You have to also adjust the servo defaults.
Thanks. I will amend this patch accordingly.
Ich möchte im code nicht auf platformio als Bibliotheks-Quelle hinweisen, wenn die Bibliothek über die Arduino-IDE installiert werden kann. Wir haben u.a. auch die ESP32-Servo-Bibliothek gewechselt, damit Leute die einfach(er) über die Arduino-IDE einbinden können.
Wenn jemand platformio verwendet sind die Dinge in platformio.ini hinterlegt und man muss sich eh nicht kümmern, daher finde ich die Änderung der Kommentare hier kontraproduktiv.
#include <U8g2lib.h> /* aus dem Bibliotheksverwalter */
vs
#include <U8g2lib.h> /* https://platformio.org/lib/show/942/U8g2 */
Ich möchte im code nicht auf PlatformIO als Bibliotheks-Quelle hinweisen.
Dann nehme ich das wieder zurueck.
Hi Clemens,
ich habe den Patch ensprechend angepasst.
Viele Gruesse, Andreas.
Hi Clemens and Andreas,
this uses the most recent versions of the U8g2 and ESP32Servo libraries.
Both libraries are well maintained by their respective authors and maintainers, so we should use them in favour of outdated libraries which are no longer maintained.
A little adjustment has been made to one #include statement. The updated library header file is now called
ESP32Servo.h
instead ofESP32_Servo.h
.This also corresponds with 8e605aa5 by @andreash-esp.
With kind regards, Andreas.