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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -