comninedroot: use one function to control the led's

repeating code is a horrible thing to do