wrote controller v4 to output and read serial