BME280 sensor
- class bme280.Device(address, i2c)[source]
Bases:
object
Class for communicating with an I2C device.
Allows reading and writing 8-bit, 16-bit, and byte array values to registers on the device.
- readS16(register, little_endian=True)[source]
Read a signed 16-bit value from the specified register, with the specified endianness (default little endian, or least significant byte first).
- readS16BE(register)[source]
Read a signed 16-bit value from the specified register, in big endian byte order.
- readS16LE(register)[source]
Read a signed 16-bit value from the specified register, in little endian byte order.
- readU16(register, little_endian=True)[source]
Read an unsigned 16-bit value from the specified register, with the specified endianness (default little endian, or least significant byte first).
- readU16BE(register)[source]
Read an unsigned 16-bit value from the specified register, in big endian byte order.