Phase sequence indicator

Much of the code depends upon the hardware, but the functions millis() and micros() may help.