HIHI
I did buy board from BCRobotics and was going to use that with Weewx but get error when i try to run Adafruit_BME280_Example.py
pi@raspberrypi:~/Adafruit_Python_BME280 $ sudo python Adafruit_BME280_Example.py
Traceback (most recent call last):
File "Adafruit_BME280_Example.py", line 5, in
degrees = sensor.read_temperature()
File "/home/pi/Adafruit_Python_BME280/Adafruit_BME280.py", line 215, in read_temperature
UT = float(self.read_raw_temp())
File "/home/pi/Adafruit_Python_BME280/Adafruit_BME280.py", line 194, in read_raw_temp
self.BME280Data = self._device.readList(BME280_REGISTER_DATA, 8)
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 136, in readList
File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 255, in read_i2c_block_data
TypeError: one character string expected
HIHI I did buy board from BCRobotics and was going to use that with Weewx but get error when i try to run Adafruit_BME280_Example.py
pi@raspberrypi:~/Adafruit_Python_BME280 $ sudo python Adafruit_BME280_Example.py Traceback (most recent call last): File "Adafruit_BME280_Example.py", line 5, in
degrees = sensor.read_temperature()
File "/home/pi/Adafruit_Python_BME280/Adafruit_BME280.py", line 215, in read_temperature
UT = float(self.read_raw_temp())
File "/home/pi/Adafruit_Python_BME280/Adafruit_BME280.py", line 194, in read_raw_temp
self.BME280Data = self._device.readList(BME280_REGISTER_DATA, 8)
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 136, in readList
File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 255, in read_i2c_block_data
TypeError: one character string expected
I have Raspberry2 and use raspian.