Buttons

Objective:

In this test we make sure we are able to get input from our buttons.

2) Download some button led code:

Buttons.tgz

  You can see the files here if you wish

3) Unzip and compile the flashy led code:

> tar -xzvf Button.tgz
> cd  Button
> make

You should have a file called main.hex when its done.

4) Upload the program to the avr

> make install

Results:

When you press one button, the led should go on, when you press the other button, the led should go off.




Back
Index
Next