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

script IC save as a user component #332

Open
stevemilkins opened this issue Mar 13, 2024 · 6 comments
Open

script IC save as a user component #332

stevemilkins opened this issue Mar 13, 2024 · 6 comments
Labels
feature New functionality P1 Priority label

Comments

@stevemilkins
Copy link

Just created a simple AD633 multiplier script, fantastic to emulate less common components. Could objects like this be saved as a user defined component for ease of reuse?
Great app!

@Proto-App Proto-App added P2 Priority label feature New functionality labels Mar 20, 2024
@Proto-App
Copy link
Owner

Thank you for interesting idea.

@Proto-App
Copy link
Owner

@stevemilkins
Is there any option to share your AD633 IC? We woul like to put in PROTO for everyone

@stevemilkins
Copy link
Author

stevemilkins commented Apr 3, 2024 via email

@Proto-App
Copy link
Owner

You can share circuit from PROTO and put link to your project here or simply copy and paste JavaScript code. Thank you!

@stevemilkins
Copy link
Author

stevemilkins commented Apr 3, 2024 via email

@stevemilkins
Copy link
Author

code for AD633

function readInputs(){
vX1 = in0.getVoltage();
vX2 = in1.getVoltage();
vY1 = in2.getVoltage();
vY2 = in3.getVoltage();
vZ = in4.getVoltage();
vW = ((vX1-vX2) * (vY1-vY2)/10) + vZ;
}

readInputs() ;
out0.forceVoltage(vW);

@Proto-App Proto-App added P1 Priority label and removed P2 Priority label labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality P1 Priority label
Projects
None yet
Development

No branches or pull requests

2 participants