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

otto9.js #5

Open sfranzyshen opened 4 years ago

sfranzyshen commented 3 years ago

first attempt is up but is untested ...

sfranzyshen commented 3 years ago

right out of the box we have memory limitations using the esp8266 ... also the delay loops are (from what I can see) causing wdt resets ... kind of thought this was going to be a problem ... we will need to rewrite OttoDIY to be more async friendly ... the oscillator and servo code looks good so far

sfranzyshen commented 3 years ago

ok, the memory issue is addressed by using the send to flash feature (instead of to RAM) ... but the timing stuff is still a problem ...

sfranzyshen commented 3 years ago

the ottodiy code doesn't fit well into the javascript non-blocking world ... some considerations are needed before continuing