Requesting Guidance on Proper Way to Call rd_block(p_block, count, ackbit) in jm_i2c.spin2
CJMJ
Posts: 226
in Propeller 2
@JonnyMac What's the proper way to use this call with an array of bytes? Currently, I'm trying the following:
obj
i2c : "jm_i2c"
var
byte data[30]
pub go()
...
i2c.rd_block(@data,7,i2c.NAK)
...
I just want to verify I'm call the method correctly.
obj
i2c : "jm_i2c"
var
byte data[30]
pub go()
...
i2c.rd_block(@data,7,i2c.NAK)
...
I just want to verify I'm call the method correctly.
Comments
You should be able to write a routine like this for your RTC (Warning: not tested, not polished -- change magic #s to constants)