class documentation

class Adafruit_I2C(object):

Constructor: Adafruit_I2C(address, busnum, debug)

View In Hierarchy

Undocumented

Static Method get_i2c_device Return an I2C device for the specified address and on the specified bus. If busnum isn't specified, the default I2C bus for the platform will attempt to be detected.
Static Method getPiI2CBusNumber Undocumented
Static Method getPiRevision Gets the version number of the Raspberry Pi board
Method __init__ Undocumented
Method errMsg Undocumented
Method readList Read a list of bytes from the I2C device
Method readS16 Reads a signed 16-bit value from the I2C device
Method readS8 Reads a signed byte from the I2C device
Method readU16 Reads an unsigned 16-bit value from the I2C device
Method readU8 Read an unsigned byte from the I2C device
Method reverseByteOrder Reverses the byte order of an int (16-bit) or long (32-bit) value
Method write16 Writes a 16-bit value to the specified register/address pair
Method write8 Writes an 8-bit value to the specified register/address
Method writeList Writes an array of bytes using I2C format
Method writeRaw8 Writes an 8-bit value on the bus
Instance Variable address Undocumented
Instance Variable bus Undocumented
Instance Variable debug Undocumented
@staticmethod
def get_i2c_device(address, busnum=-1, **kwargs):

Return an I2C device for the specified address and on the specified bus. If busnum isn't specified, the default I2C bus for the platform will attempt to be detected.

@staticmethod
def getPiI2CBusNumber():

Undocumented

@staticmethod
def getPiRevision():

Gets the version number of the Raspberry Pi board

def __init__(self, address, busnum=-1, debug=False):

Undocumented

def errMsg(self):

Undocumented

def readList(self, reg, length):

Read a list of bytes from the I2C device

def readS16(self, reg, little_endian=True):

Reads a signed 16-bit value from the I2C device

def readS8(self, reg):

Reads a signed byte from the I2C device

def readU16(self, reg, little_endian=True):

Reads an unsigned 16-bit value from the I2C device

def readU8(self, reg):

Read an unsigned byte from the I2C device

def reverseByteOrder(self, data):

Reverses the byte order of an int (16-bit) or long (32-bit) value

def write16(self, reg, value):

Writes a 16-bit value to the specified register/address pair

def write8(self, reg, value):

Writes an 8-bit value to the specified register/address

def writeList(self, reg, list):

Writes an array of bytes using I2C format

def writeRaw8(self, value):

Writes an 8-bit value on the bus

address =

Undocumented

bus =

Undocumented

debug =

Undocumented