Hi, I am working with byte converter library.
but I have some problems converting byte to and 8 bit.
I am using
the result of this is 99 in byte of course + 0 byte too
but I only need one byte
this represent a low byte and high byte. If I use int I use 4 bit.
if I use double that's 8 bit, does not work.
Any help will be appreciated.
but I have some problems converting byte to and 8 bit.
I am using
B4X:
Dim s As Short = 99
Dim comando() As Byte = bc.ShortsToBytes(Array As Short(s))
the result of this is 99 in byte of course + 0 byte too
but I only need one byte
this represent a low byte and high byte. If I use int I use 4 bit.
if I use double that's 8 bit, does not work.
Any help will be appreciated.