Trouble with Read Module Type in C#
Posted: Fri Mar 28, 2014 8:35 am
When I execute this code (visual studio, C#):
//Read module type
commando[0] = 254;
commando[1] = 55;
port.Write(commando, 0, commando.Length);
int length = port.BytesToRead;
byte[] buf = new byte[length];
port.Read(buf, 0, length);
Console.WriteLine("Received data: " + buf);
I don't get the expected answer from the LCD.
Putting text on the screen and changing the font types etc, is no problem but receiving the Module type is./
What am I missing??
//Read module type
commando[0] = 254;
commando[1] = 55;
port.Write(commando, 0, commando.Length);
int length = port.BytesToRead;
byte[] buf = new byte[length];
port.Read(buf, 0, length);
Console.WriteLine("Received data: " + buf);
I don't get the expected answer from the LCD.
Putting text on the screen and changing the font types etc, is no problem but receiving the Module type is./
What am I missing??