Convert small 64bit signed integer into a high and low byte ?
Author
Message
DigitalDreams Regular Member Joined: 03/05/2025 Location: United KingdomPosts: 65
Posted: 06:07pm 15 Apr 2026
Done, created a 4byte string by concatenation of the 2 individual FRAM address bytes (INT8) and the 16bit signed integer data (INT16) into one string for a single I2C2 string write (adding three Bin2Str$ together).
Reading back was much simpler as the I2C read is preceeded by an I2C write that simply sets the FRAM address of the two data bytes that are then I2C read into a string in Str2Bin format.
Don't think there's a more efficient/faster way at the moment unless Peter adds the ability into I2C2write 😎... Edited 2026-04-16 05:58 by DigitalDreams