Hi , I cannot find the answer to this on the web or in the forum. I am a beginner but successfully used my sense hat a few years ago. Now when I have fitted it it lights up OK with eth rainbow pattern on startup. I have updated the Pi and sense-hat and it says everything is up to date. I2C and SSH are both enabled. However the simple Hello world code does not work. ( though it does using the emulator if I import from sense_emu instead of sense_hat). the code is:
from sense_hat import SenseHat
sense = SenseHat()
sense.show_message("Hello world")
I am getting this error message:
>>> %Run 'Sense Hat.py'
WARNING:root:local variable 'e' referenced before assignment
Thanks in advance.
Andy
from sense_hat import SenseHat
sense = SenseHat()
sense.show_message("Hello world")
I am getting this error message:
>>> %Run 'Sense Hat.py'
WARNING:root:local variable 'e' referenced before assignment
Thanks in advance.
Andy
Statistics: Posted by Handford — Sat Nov 30, 2024 3:23 pm