You could use strings (see ascii chart) in place of binary numbers. I think that is easier to debug.
so from PC Visual Studio write string + CRLF something like this:
A = 25
TextBox1.Text = "Zapnuté"
SerialPort1.Write(str(A)+chr(13)+chr(10))
and MCU something like this:
Input A
Lcd A
↧