01-02-2023 10:34 AM
hi everybody
I have established a comunication with serial port ..it sends strings in hex ..my problem is how to convert string in hex( 2 bytes) to perform this opeartion in order to extract numbers ( the string is composed by 2 bytes AxL and AxH)
acc=((axH<<8)|axL)/32768*16
Thanks for help
Solved! Go to Solution.
01-02-2023 12:22 PM
Use string-to-byte array function.
01-02-2023 12:28 PM - edited 01-02-2023 12:34 PM