0 Replies Latest reply on Jul 12, 2015 1:56 PM by ByReaL

    documentation issue readBytesReg no length argument


      API — mraa v0.7.3-2-gdf0dbb0 documentation


      details mention a length but the function has no length argument.



      I2c self,

      uint8_t reg,

      uint8_t * data)

      → int[source]


      reg: uint8_t data: uint8_t *

      Read length bytes from the bus into *data pointer starting from an i2c register

      reg: Register to read from

      data: pointer to the byte array to read data in to

      length: max number of bytes to read

      length passed to the function or -1