Let me start off by first saying that this project didn't exactly originate a few days ago, it actually started last year around Christmas when I wanted to find a way to give some light to a Nativity scene. I came up with lighting it with an RGB LED. I whipped something up under the Arduino IDE that would rotate between colors. It looked nice, but I later decided to make the transitions between colors smooth, so I made a second, much improved revision.
When I read about the HaD 1 kB challenge, I remembered my neat RGB LED transition program and knew that I could easily redo it under AVR-GCC to get it well below 1 kB. The one that I did (second revision) under the Arduino compiled to 1,402 KB. Under AVR-GCC toolchain I've gotten it as of this writing to 464 byes, way under the 1 kB limit.
I will most certainly be making some more changes and improvments.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.