Need help with code -serial

Yes it is but i need this: x1 and y1. Because A,B,C,D,E,F is letter for another function. And this project must be the easiest control method for understanding.

Dkl65 :I tried what you advised me but it but it did not work. it's still complicated for me. :~
If you have time.Could you create at least part of my code :blush:. example for X1 = high x0 = low

Thanks for your time