6.b. Example program - Linux

A simple demo program is supplied in the directory examples/simple-test/.

Change to this directory and inspect the Makefile. Depending on your system, you may need to update the paths to the avr-gcc binaries and the device for your Orangutan Programmer. Then, you should be able to compile the example with make, which should generate the following output as it compiles the source code:

Compiling the test program under Linux.

If make completed successfully, connect your Orangutan Programmer to your computer and your Orangutan board, and turn on the Orangutan’s power. The green status LED close to the USB connector should be on, while the other two LEDs should be off, indicating that the programmer is ready. Type make program to load the program onto the Orangutan.

Programming the Orangutan with avrdude under Linux.

If your Orangutan was successfully programmed and you are using an Orangutan LV-168, you should hear a short tune, see the message “Hello!” on the LCD (if one is present and the contrast is set correctly), and the LEDs on the board should blink. If you are using a Baby Orangutan B, you will just see the red user LED blink.