summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-07Fix invalid wait valuesHEADmasterAaron Ball
Previously, bad wait values default to 0 (like `sdf`) because atoi returns 0 when it doesn't understand the input. This caused very rapid color changing. Now we check if wait is set to less than 1, assuming an error, and defaults to 1000. This accounts for when users pass negative values and strings. Also removed unused `highest` variable.
2019-09-07Fix load_current_stateAaron Ball
Was using atoi to load a hex string, which doesn't work (atoi only reads decimal strings). Switched over to strtol specifying base 16 for hex.
2019-09-07Makefile:use CCOPTSAaron Ball
2019-07-20Change default wait time to 1 secondAaron Ball
2019-07-19Update Makefile with debug and install targetsAaron Ball
2019-07-19Refactor to use modulus for color channel switchingAaron Ball
Added macros for colormax and step size. Updated load_current_state. Added comments. Wrote channel_fade function which fades between two color channels. Also wrote rgb_fade which is the loop function around all the channels.
2019-07-16Initial commitAaron Ball
This fades through the rainbow spectrum. The sleep time between next color change is confurable along with step (color hex distance).

Generated by cgit