Creating a custom LED mode

And there is the FunctionalColor plugin that might save you some work. Not sure though if it works with current Kaleidoscope.