Library question

Hi,

I’m looking at the “GrovePi Protocol and Adding Custom Sensors” example and
in there you don’t describe why the readbyte is needed.

-Tomas

@tfreedy,
When we had written the firmware for the GrovePi earlier, the python smbus library was a bit limited in terms of the i2c functions it could run and to get big blocks of data back, using a readbyte first and then issuing the readblock command worked much more reliably. And we have just kept using it since then.