Step 7Set up the programming project
Linux and Windows, the procedure for starting a new project is basically the same.
1) Make a new directory. Here, call it LED_Demo or something.
2) Copy your Makefile into that directory.
3) Download the code (LED_Demo.c) into the directory, or start writing new code from scratch.
4) Edit the Makefile to reflect the chip you're using and the name of the project.
Then you're ready to program.
Editing the Makefile
Windows: The Makefile's set up for you. All you have to do to make the Makefile work is remove the ".txt" from the end of the filename. Open it up in Wordpad or Programmer's Notepad anyway, just to have a look at the options you can change later.
Linux: Rename the Makefile.txt to Makefile. Then open the Makefile up in an editor. Un-comment the line that has "/dev/parport0" and comment out (with a #) the line that has "lpt1".
| « Previous Step | Download PDFView All Steps | Next Step » |
2
comments
|
Add Comment
|
![]() |
Add Comment
|
















































