You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
servo.write(float) is missing. This breaks drop-in compatibility with other servo libraries. I have to do an #ifdef ESP32 for the #define <servo.h> and then another #ifdef ESP32 to have two versions of every servo.write() call. servo.write() should use the pin specified by servo.attach() if available.
The text was updated successfully, but these errors were encountered:
As I understand this Library that is sadly not possible, because there is only one servo object which has multiple pins attached which are then again attached to different channels.
That's due to the general structure of the underlying ESP32 LEDC structure that is used in this library and the corresponding pam library.
I mean, of course it is possible, but as I believe it's not within the scope at the moment and would require a major rewrite.
I have the same problem. After the update I can't compile my script.
This doesn't work anymore:
Servo::write(const byte&, int&, int&, int, int)'
pwm.write(sig2, duty, freq, 10, 512)
Because only this is in the new library:
float Servo::write(int, float)'
float write(int pin, float value)
Why is this function removed? Has the general structure of the library changed?
Is there an easy turnaround to make 2 signals with a specific frequency and duty and 50% phase shift?
servo.write(float) is missing. This breaks drop-in compatibility with other servo libraries. I have to do an #ifdef ESP32 for the #define <servo.h> and then another #ifdef ESP32 to have two versions of every servo.write() call. servo.write() should use the pin specified by servo.attach() if available.
The text was updated successfully, but these errors were encountered: