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

Do Avr8js have methods such as Digitalwrite and Analogwrite? #157

Closed
Green-hcq opened this issue May 24, 2024 · 2 comments
Closed

Do Avr8js have methods such as Digitalwrite and Analogwrite? #157

Green-hcq opened this issue May 24, 2024 · 2 comments

Comments

@Green-hcq
Copy link

Hello Urish, Do Avr8js have methods such as Digitalwrite and Analogwrite? If not, could you guide me on how to implement these two methods? I now want to manually control the on/off light or breathing light through Avr8js, rather than relying on writing Cpp code to achieve it.

@Green-hcq
Copy link
Author

Because I want to use these two methods to test component wiring without code, and then score the test data results.

@urish
Copy link
Contributor

urish commented Feb 11, 2025

digitalWrite / analogWrite are Arduino specific methods. If you compile your code with Arduino, the resulting HEX file can be simulated in avr8js.

@urish urish closed this as completed Feb 11, 2025
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

2 participants