4 ms·
Love it. I'm adding that to my Better Living Through Microcontrollers Tumblr (http://bltuc.tumblr.com/ http://bltuc.tumblr.com/) Looking at the code it could p
by jgrahamc 13y ago
Love it. I'm adding that to my Better Living Through Microcontrollers Tumblr (http://bltuc.tumblr.com/ http://bltuc.tumblr.com/)
Looking at the code it could probably be a lot shorter if an array was used for the LEDs rather than the separate a, b, c, d, ... variables and lots of repeated code.
- conesus 13y agoI addressed the repeated nature of the code in the post. Fact is I was under a 2 day deadline, and that included both hardware and software. I would have loved to abstract the code so I could not only not repeat myself when addressing multiple strands, but there are a couple routines where the lights go in one direction then immediately switch to go back where they came from. That also could have been refactored, but with only two days to do it all I had to cut corners. But hey, it shipped!
- jgrahamc 13y agoI agree. Shipping matters: my comment on the code was just a friendly observation.
- hnriot 13y ago"but with only two days to do it all I had to cut corners." - I took one look at the code and would hazard a guess that getting rid of all the repetition would have saved you time. It's hard to look at all that repetition and not want to fix it! The dress is cool though, not so keen on the jacket. not sure if there's much demographic overlap, but you should check out some of the rave gear if you enjoy lightshows.
- RyanMcGreal 13y ago"I would have written a shorter letter, but I did not have the time." -- Blaise Pascal
- wpietri 13y agoOoh, awesome blog. Very inspiring. I've added it to my RSS in the hopes that eventually time, need, and motivation will all align so I build something a new physical thing. Thanks!