In the second phase of the bicycle flashlight project I'll describe the software loaded on the micro controller.
The program is writen and compiled in microPascal, and the machine code is loaded on the controller with AVRDude.
All the text small font size and dotted, is part of the code and part of one single program file in the sequence they appear in this article.
1) The first part of the program is a description, containing title, revision, author, date, etc.
- // Project Bike_lamp, revision 01, Gaal Alexandru, 09.01.2014
- // Bike flashlight project with 7 ligthing modes
- // Mode 1: Police light
- // Mode 2: Blinking red light
- // Mode 3: Constant red light
- // Mode 4: Blinking white light
- // Mode 5: Constant white light
- // Mode 6: Blinking blue light
- // Mode 7: Constant blue light
All the text that is after the "//" characters are considered comments.