nonNoise / PyMCP2221A

MCP2221 & MCP2221A work in Python.
MIT License
36 stars 21 forks source link

Feature I2C repeated start #1

Closed K4zuki closed 6 years ago

K4zuki commented 6 years ago

add more I2C functions to follow datasheet

  • add i2c{read,write}() to handle low level controls
  • add I2C_Write_Repeated() to handle write sequence starting with Repeated Start condition
  • add I2C_Write_No_Stop() to handle write sequence without Stop condition
  • add I2C_Read_Repeated() to handle read sequence starting with Repeated Start condition
  • apply autopep8(again)