OttoDIY / OttoDIYPython

port of the OttoDIY Robot API (Otto9.h & Otto9Humanoid.h) to a micropython based platform
https://github.com/OttoDIY/OttoDIYPython
MIT License
21 stars 15 forks source link

oscillator.py for esp8266 & ESP32 #2

Closed sfranzyshen closed 3 years ago

sfranzyshen commented 4 years ago

oscillator.py for esp8266 & ESP32

sfranzyshen commented 4 years ago

first attempt to port the oscillator over is up ... i tried to keep it as close to the original oscillator code ... I tested this out using a esp8266 with the latest micropython firmware ... but I did not test the movements yet ... that's next up with tackling otto9.cpp port ...

>>> import oscillator
>>> servo1 = oscillator.Oscillator()
>>> servo1.attach(14)
>>> servo1.SetPosition(0)
>>> servo1.SetPosition(180)
>>> servo1.SetPosition(90)
sfranzyshen commented 4 years ago

first working code is up