dxxb / sim-arduboy

Arduboy board implementation using simavr
GNU General Public License v3.0
22 stars 8 forks source link

Sim-Arduboy

Arduboy board implementation using simavr

Follow the instruction for your operating system's Dependencies setup section and then jump to the Build section.

Dependencies setup

OSX

Install homebrew by running:

> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install SDL2 and ELF libraries:

> brew install sdl2 libelf

Ubuntu/Debian Linux

> sudo apt-get install build-essential libelf-dev libsdl2-dev freeglut3-dev

Build

Command line

Clone repository:

> git clone --recursive https://github.com/dxxb/sim-arduboy.git

Build:

> cd sim-arduboy
> make

Run your .hex file:

> ./sim_arduboy filename.hex

CMake (OSX)

If avr-gcc cross-compiler is not installed on your system (only needed when building via CMake):

> brew tap osx-cross/avr
> brew install avr-gcc

Create XCode project files:

> cd sim-arduboy
> cmake -G Xcode ./cmake

Then open with XCode and build.