JavaScript implementation of the AVR 8-bit architecture
The demo project allows you to edit Arduino code, compile it, and run it in the simulator. It also simulates 2 LEDs connected to pins 12 and 13 (PB4 and PB5).
To run the demo project, check out this repository, run npm install
and then npm start
.
A step-by-step video tutorial showing how to build a simple Arduino simulator using AVR8js and React:
- Minimal Example
- 6 LEDs
- LED PWM
- Serial Monitor
- NeoPixel Matrix
- Arduino Mega NeoPixel Matrix
- Simon Game - with pushbuttons and sound
- XMAS LEDs
- Assembly Code
Run the tests once:
npm test
Run the tests of the files you modified since last commit (watch mode):
npm run test:watch
For more information, please check the Contributing Guide.
Copyright (C) 2019, 2020 Uri Shaked. The code is released under the terms of the MIT license.