Getting Started

(lily) #1

Chapter 2: Quick Start Guide


Figure 10: Hardware setup for Blinky...................................................................


Blinking LEDs – Your First C Program


You might wonder why blinking an LED is the first project, when traditional C
programming texts start with the classic “Hello, world” program. It certainly
seems that since the Butterfly has an LCD that can show the words it would be
easy. But the reality is that controlling the LCD is much more complex than
linking an LED, so we’ll save the LCD for later when we’ve gotten a better
han



  • Make a directory called Blinky for this project.
    Copy ‘.../WinAVR/Samples/makefile’ (notice that it has no extension) to


Write it in Programmers Notepad



b
dle on things.



the Blinky directory.

Find Programmers Notepad that was installed as part of
WinAVR (you should have an icon for it on your desktop) and open it. You
will need to add a tool, which will let you use the AVR Studio simulator.


  • Open the Tools menu and click on Options.

Free download pdf