Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oscillator.js #7

Open
sfranzyshen opened this issue Aug 17, 2020 · 2 comments
Open

oscillator.js #7

sfranzyshen opened this issue Aug 17, 2020 · 2 comments

Comments

@sfranzyshen
Copy link
Owner

No description provided.

@sfranzyshen
Copy link
Owner Author

first attempt at porting the oscillator code to javascript is up and ready for testing https://github.com/sfranzyshen/OttoDIYJavaScript/blob/master/oscillator.js

@sfranzyshen sfranzyshen changed the title oscillator.js for esp8266 & ESP32 oscillator.js Sep 14, 2020
@sfranzyshen
Copy link
Owner Author

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant