More ATTiny13 and LEDs

Ever since I discovered charlieplexing some time ago, I’ve wanted to implement it and I finally have - at least on a small scale. There are six LEDs controlled by three pins on the micro-controller. Since I didn’t really have the board space, I only used those six LEDs, but once I etch the board (or have it fabbed) there will probably be something like 20 LEDs.

Once I get to that many LEDs, I’ll really have to refine my code since as of now it is fairly rudimentary.

At one point I was putting together a rather nifty animation, but due to my rather inefficient code I ran out of memory to finish it. I only have 1K after all. And while yes, I could drop down to assembly to program it - I don’t know assembly; I know C/C++.

The next step for this little gizmo is to design it a board to use, etch it, and get some proper SMD components.

12:32 PM | Tags: , ,