Hi,
My enviro hat (not plus) is working in a weird way.
From the examples folder I can only run lcd.py sucessfully none of the other examples work.
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
running python3 weather-and-light.py I got the following stacktrace
Traceback (most recent call last):
File “weather-and-light.py”, line 340, in
ltr559 = LTR559()
File “/usr/local/lib/python3.7/dist-packages/ltr559-0.1.1-py3.7.egg/ltr559/init.py”, line 218, in init
self.part_id = self._ltr559.get(‘PART_ID’)
File “/usr/local/lib/python3.7/dist-packages/i2cdevice-0.0.7-py3.7.egg/i2cdevice/init.py”, line 230, in get
self.read_register(register)
File “/usr/local/lib/python3.7/dist-packages/i2cdevice-0.0.7-py3.7.egg/i2cdevice/init.py”, line 183, in read_register
self.values[register.name] = self._i2c_read(register.address, register.bit_width)
File “/usr/local/lib/python3.7/dist-packages/i2cdevice-0.0.7-py3.7.egg/i2cdevice/init.py”, line 288, in _i2c_read
for x in self._i2c.read_i2c_block_data(self._i2c_address, register, bit_width // self._bit_width):
OSError: [Errno 121] Remote I/O error
I have installed everything twice on a pi zero and on a pi 4 in a fresh raspbian image, this worked well in the past. IC2 and SPI are on.
any idea what I can do next?
Thank you
1 post - 1 participant