SMBus(0) # assuming your sensor is /dev/i2c-0 addr = 0x40 # read temperature (in celsius) b = bus.read_i2c_block_data(addr, 0xE3, ...
確定! 回上一頁