enhancing led_library with ability to define a chain of (potentially circular) led states