A Rust Arduino Brainfuck interpreter. Uses the Arduino library to make code simpler. Uses copy-pasted code.
You will need to compile a working version of rustc
for AVR. @gergoerdi wrote a nice tutorial for this. These steps do work under WSL (Windows Subsystem for Linux).
You can use avrdude to flash the hex file to the AVR. I found this guide and this guide useful.
avrdude -v -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -D -U flash:w:target/arduino/release/bf_arduino.hex:i
You can replace /dev/ttyUSB0
with your port connected to the AVR, e.g /dev/ttyUSBX
or, under windows COMX
, where X
is your port number. A quick way to find out which port it is plugged into is to use the Arduino IDE, and find it under Tools > Port
.