serial port - c# console application sending commands to LCD Screen -
i have small lcd screen. @ moment can write text it, , commands such clear screen etc. these commands came user manual, , have been working fine, want able change colour of lcd screen.
all commands changing colour have (0x255) in them causing problem. error occurs saying 'constant value 597 cannot converted byte'.
the commands have send hex.
here code have been using:
byte[] bytestosend = { 0xfe, 0xd0, 0x0, 0x0, 0x255 }; port.write(bytestosend, 0, bytestosend.length);
is there way around this? thanks, lucy
you mean "0xff" or "255" decimal, not "0x255". not within range of bytes.
Comments
Post a Comment