Electronic Dice
===============

Compile the software and program the microcontroller:

1) to compile run the command make:
make 

2) to load the software run the command
make load
  or use the command 
avrdude -p m8 -c stk500v2 -e -U flash:w:main.hex

Using the pre-compiled code
===========================
A pre-compiled .hex file is available incase you don't have
a avr-gcc compiler. Just use the file main_pre.hex and load it
(see step 2).

Changing the clock speed.
========================
The code is by default written for an atmega8 chip running at
1MHz (factory default setting). You can also use other speeds (just
for fun and playing with clock speeds. Be careful: garbage fuse settings
can make a microcontroller inaccessible).

For this just change the microcontroller's fuses which control
the clock speed.
There is a make target available for e.g 8 MHz:
make wrfuse8mhz

Now you still have to edit the file main.c and change the
F_CPU macro to reflect the new hardware settings. Save the file,
re-compile and download the resulting main.hex to the microcontroller.

-------------------------------------------------------------------
Copyright: GPL V2
Author: Guido Socher
Homepage: http://www.tuxgraphics.org/electronics/
-------------------------------------------------------------------
Change history:

e-dice-0.1 -- 2007-07-29 first public version
e-dice-0.2 -- 2012-12-04 changed programmer name to stk500v2 where applicable


-------------------------------------------------------------------