wokwi / avr8js

Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js
https://blog.wokwi.com/avr8js-simulate-arduino-in-javascript/
MIT License
481 stars 78 forks source link

Add pinState() method to GPIO port (AVRIOPort) #8

Closed urish closed 4 years ago

urish commented 4 years ago

The method will return the current state of the given pin: Output High, Output Low, Input, or Input with Pullup enabled.