avr8js icon indicating copy to clipboard operation
avr8js copied to clipboard

Do Avr8js have methods such as Digitalwrite and Analogwrite?

Open Green-hcq opened this issue 1 year ago • 1 comments

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 avatar May 24 '24 15:05 Green-hcq

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

Green-hcq avatar May 24 '24 15:05 Green-hcq

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

urish avatar Feb 11 '25 08:02 urish