wip - defining color sensor bus state machine