My newly-installed Enviro on an RPI Model 2 won’t run any of the examples. The import of the envirophat python library immediately produces:
$ sudo python temperature.py
Traceback (most recent call last):
File “temperature.py”, line 5, in
from envirophat import weather, leds
File “/usr/local/lib/python2.7/dist-packages/envirophat/init.py”, line 10, in
light = tcs3472(bus)
File “/usr/local/lib/python2.7/dist-packages/envirophat/tcs3472.py”, line 37, in init
self.i2c_bus.write_byte_data(ADDR, REG_ENABLE, REG_ENABLE_RGBC | REG_ENABLE_POWER)
IOError: [Errno 5] Input/output error
and i2cdetect shows:
$ sudo 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: – -- – -- – -- – --
…which if I understand correctly means that there’s nothing on the i2c bus.
I bought two of these boards at the same time – both of them show the same behavior. There were no errors during the software installation.
Any suggestions on what to check or try?
-M.