Step 4Programming the LED's
If you are not familiar with this technique, just use the script.
The principle is used for POV (Persistence of vision) and many other applications.
Funny is playing with the prescaler, making the LED's flicker a bit sometimes.
The script in the zip is prepared to receive a command over the RX pin of the ATTINY2313. This char received is used to give another pattern.
The script has several functions:
function main, setting the interrupt starting up fancy(), and waiting for a char
function choosing the PIN-numbers
function fancy (starting up, saying "hello world" with LED's
The patterns are made using a counter. Other patterns can be made easily. Like groups of LED's on or off, or two LED's running against each other.
Really, the LED patterns are another layer of design. Making the LED ring is technology, making meaningful expression of media is what I consider designing "primitive interfaces".
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|












































