sfranzyshen / OttoDIYJavaScriptV9

port of the OttoDIY Robot API (Otto9.h & Otto9Humanoid.h) to a ESP espruino (JavaScript) based platform (Based On The OttoDIYAsync Project Code)
https://github.com/sfranzyshen/OttoDIYJavaScript
MIT License
0 stars 0 forks source link

otto_servo.js for esp8266 & esp32 #1

Open sfranzyshen opened 4 years ago

sfranzyshen commented 4 years ago

https://www.espruino.com/Servo+Motors https://www.espruino.com/PWM https://www.espruino.com/modules/servo.js

sfranzyshen commented 3 years ago

first otto_servo.js attempt is up and functional ... again it's modeled after the esp8266 arduino servo driver but only what is required by the OttoDIY API ... I used analogWrite() instead of digitalPulse() ... this is how the original arduino Servo code operates and inline with how the python port works too ...