Have you tried this new stick class?I need someway to have the sensehat run a shutdown command since it will be run headless
Code: Select all
from sense_hat import SenseStick
import os
stick = SenseStick()
for event in stick:
if event.key == stick.KEY_ENTER :
os.system("poweroff")
elif event.key == stick.KEY_UP :
os.system("reboot")Code: Select all
python3 /home/pi/stickpoweroff.py &