Pin names
Pins 0 to 13 are digital GPIO pins. Pins A0 to A5 double as analog input pins, in addition to being digital GPIO pins. There are three ground pins: GND.1, which is on top of the board, next to pin 13, and GND.2/GND.3, which are on the bottom. Pins VIN / 5V are connected to the positive power supply. Pins 3.3V / IOREF / AREF / RESET are not available in the simulation. Digital pins 3, 5, 6, 9, 10, and 11 have hardware PWM support. Some of the digital pins also have additional functions:RX - Serial receive
TX - Serial transmit
INT0
INT1
SS (Chip select)
MOSI
MISO
SCLK (Clock)
SDA (Data)
SCL (Clock)
On board LEDs
The board includes four LEDs:| LED | Function |
|---|---|
| L | Connected to digital pin 13 |
| RX | Serial RX Activity |
| TX | Serial TX Activity |
| ON | Power LED. Always on while the simulation is running |
LED_BUILTIN constant to reference it from your code:
Attributes
| Name | Description | Default value |
|---|---|---|
| frequency | MCU clock frequency, in hertz. Common values: “8m”, “16m”, and “20m” * | “16m” |
Simulation features
The Arduino Uno is simulated using the AVR8js Library. The table below summarizes the status of features:| Peripheral | Status | Notes |
|---|---|---|
| Processor | ✔️ | |
| GPIO | ✔️ | Including External/Pin Change Interrupts |
| 8-bit timers | ✔️ | Timer0, Timer2 |
| 16-bit timer | ✔️ | Timer1 |
| Watchdog Timer | ✔️ | Usage example |
| USART | ✔️ | |
| SPI | 🟡 | Master mode only |
| I2C | 🟡 | Master mode only |
| EEPROM | ✔️ | |
| Clock Prescale | ✔️ | |
| ADC | ✔️ | Used by analogRead() |
| Analog Comparator | ❌ | |
| GDB Debugging | ✔️ | See the GDB Debugging Guide |
✔️ Simulated
🟡 Simulated, but see notes
❌ Not implemented If you need any of the missing features, please open an issue on the AVR8js repo or reach out on Discord.