I have a bluetooth pen that I need to send an array of bytes too, can somebody offer advice on how i create an array of bytes for the following:0x68 0x00 0x02 0xFF 0x0A (in the guide this is the array of bytes I need to send)Thanks.
I have a bluetooth pen that I need to send an array of bytes too, can somebody offer advice on how i create an array of bytes for the following:0x68 0x00 0x02 0xFF 0x0A (in the guide this is the array of bytes I need to send)Thanks.
The same way you create any other array. This is just one way: Dim bytes = New Byte() {&H68, &H00, &H02, &HFF, &H0A}
Thank you very much
Can you please explain why 0x is replaced with the &H?
Because VB uses &H to represent hexadecimal numbers.
Bookmarks