Python exemplarisch
deutsch     english
Unbenanntes Dokument

 

GPIO Header (40 pin)

gpio

 

 

SMBus Function Summary

addr always 7 bit I2C address

int8 = integer, but only 8 lower bits used
long8 = long, but only 8 lower bits used
int16 = int, but only 16 lower bits used
long16 = long, but only 16 lower bits used

Function Description Parameters Return value
write_quick(addr) Quick transaction int8 addr long8
read_byte(addr) Read one byte with no command int8 addr long8
write_byte(addr, data) Write one byte int8 addr, int8 data long8
read_byte_data(addr, cmd) Read one byte with command int8 addr, int8 cmd long8
write_byte_data(addr, cmd, data) Write one byte with command int8 addr, int8 cmd, int8 data long8
read_word_data(addr, cmd) Read two bytes with command int8 addr, int8 cmd long16
write_word_data(addr, cmd, data) Write two bytes with command int8 addr, int8 cmd, int16 data long8
read_block_data(addr, cmd) Read block of data with command int8 addr, int8 cmd [long8, long8,...] (list of long8)
write_block_data(addr, cmd, data) Write block of data with command int8 addr, int8 cmd, [int8, int8,... ] data None
       
process_call(addr, cmd, data) Process call transaction int8 addr, int8 cmd, int8 data long8
block_process_call(addr, cmd, data) Block process call transaction int8 addr, int8 cmd, [int8, int8,...] data [long8, long8,...]
       
read_i2c_block_data(addr, cmd) Read block with I2C access mode int8 addr, int8 cmd [long8, long8,...]
write_i2c_block_data(addr, cmd, data) Wrtie block with I2C access mode int8 addr, int8 cmd, [int8, int8,...] data None