SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Servo not working on ESP32 #103

Open sofian opened 8 months ago

sofian commented 8 months ago

We need to figure out what to do with this:

examples/07.Advanced/ServoKnob/ServoKnob.ino:39:1: error: 'ServoOut' does not name a type; did you mean 'error_t'?
 ServoOut servo(9);
 ^~~~~~~~
 error_t
examples/07.Advanced/ServoKnob/ServoKnob.ino: In function 'void step()':
examples/07.Advanced/ServoKnob/ServoKnob.ino:46:10: error: 'servo' was not declared in this scope
   osc >> servo;
          ^~~~~

There is a specific servo library for ESP32 https://dronebotworkshop.com/esp32-servo/

However this would include a dependency.

Do we really need to support servo motors in the core Plaquette library?