Defining or Returning Byte Arrays in User Macros
Posted: Sat Oct 22, 2022 5:56 pm
Hi,
I have i2C read and write macro's . However I dont always want just a single return byte, I might be reading back anything from 1 to 6 bytes.
I see I can Return Strings, Longs, Integers. Can I return a Byte Array from a user Macro?
For the write macro, whilst I can create a parameter Byte Array to hold the 'write' data but how does the user load this array with values using the flowcode user macro interface?
Or am I better just building a set of simpler macros for 1, 2,3,4,6 bytes to be read / written ?
Thanks, J.
I have i2C read and write macro's . However I dont always want just a single return byte, I might be reading back anything from 1 to 6 bytes.
I see I can Return Strings, Longs, Integers. Can I return a Byte Array from a user Macro?
For the write macro, whilst I can create a parameter Byte Array to hold the 'write' data but how does the user load this array with values using the flowcode user macro interface?
Or am I better just building a set of simpler macros for 1, 2,3,4,6 bytes to be read / written ?
Thanks, J.