Building an interface with a touchscreen from 4D Systems - in the documentation it states to write to a number on the screen, the value needs to be:
This is the 2 byte value, Value(msb):Value(lsb), that is used in the
message transmissions to and from the host. For example, if the LED
Digits value is 5645 (0x160D) the 2 byte value will be:
Value(msb) = 0x16
Value(lsb) = 0x0D
I am receiving a value from Modbus that I want to pass onto the screen,
ie. 1350 rpm or 0x546 but cannot get my head around how to split the value into two bytes.
Appreciate any advice.