I managed to misconnect my Sense HAT so that pin 1 on the Raspberry Pi got connected to pin 3 on the HAT, pin 2 to pin 4 and so on; that is to say, the HAT was inserted one pin off in the direction of pin 1. Then, after reconnecting the HAT the right way, it only shows a rainbow pattern as it does when powered, and when I try to use the HAT, the class creation fails with this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 36, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
OSError: Cannot detect RPi-Sense FB device
However, i2cdetect does detect I2C:
pi@raspberrypi ~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- 46 -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- 5c -- -- 5f
60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- --
70: -- -- -- -- -- -- -- --
Have I managed to fry the HAT, or is it more likely a software problem?