Open sfranzyshen opened 4 years ago
first test passed ... next up otto9.js 😄
let servo = [require('oscillator').init(), require('oscillator').init()];
// servo[0].attach(D12);
// servo[1].attach(D14);
// servo[0].SetPosition(0);
// servo[1].SetPosition(0);
// servo[0].SetPosition(180);
// servo[1].SetPosition(180);
// servo[0].SetPosition(90);
// servo[1].SetPosition(90);
// servo[0].detach();
// servo[1].detach();
first attempt at porting the oscillator code to javascript is up and ready for testing https://github.com/sfranzyshen/OttoDIYJavaScript/blob/master/oscillator.js