https://github.com/restioson/bf-arduino
A Brainfuck interpreter for Arduino
https://github.com/restioson/bf-arduino
Last synced: over 1 year ago
JSON representation
A Brainfuck interpreter for Arduino
- Host: GitHub
- URL: https://github.com/restioson/bf-arduino
- Owner: Restioson
- License: apache-2.0
- Created: 2017-08-17T15:22:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T15:27:54.000Z (almost 9 years ago)
- Last Synced: 2025-02-01T12:29:27.686Z (over 1 year ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BF-Arduino
A Rust Arduino Brainfuck interpreter. Uses the [Arduino](https://github.com/avr-rust/arduino/) library to make code simpler. Uses copy-pasted code.
## Compiling
You will need to compile a working version of [`rustc` for AVR](https://github.com/avr-rust/rust). [@gergoerdi](https://github.com/gergoerdi) wrote a [nice tutorial](https://github.com/gergoerdi/rust-avr-chip8-avr/blob/master/README.md) for this. These steps do work under WSL (Windows Subsystem for Linux).
## Flashing The Hex
You can use [avrdude](http://www.nongnu.org/avrdude/) to flash the hex file to the AVR. I found [this](https://typeunsafe.wordpress.com/2011/07/22/programming-arduino-with-avrdude/) guide and [this](https://learn.sparkfun.com/tutorials/pocket-avr-programmer-hookup-guide/using-avrdude) guide useful.
### Example:
```
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](https://www.arduino.cc/en/Main/Software), and find it under `Tools > Port`.