09-29-2016 09:26 AM
Hi everyone!
I'm having some problems connecting an Arduino Leonardo via I2C to a myRio. I have a sensor connected (mandatory) to the arduino and I send data using I2C to the myRio. The problem is that I receive the data in Bytes and I want to know if it's possible to convert them into a number.
Thanks!
09-29-2016 10:30 AM
09-29-2016 10:50 AM
Generally, "bytes" is probably a string. There are many number representations (integers, signed, unsigned, 8, 16, 32, etc. bits, SGL, DBL, complex and even arrays of those). As a first step you need to know what the target representation is. Do you have any documentation? How many bytes do you receive per number? Can the values be negative?