added length detection (when LEDs are looped back to the ATtiny)