This may or may not help, it's what I did in python to make use of the joystick. Up down adjusts the brightness of the Sense Hat LED matrix. Dimmed or not dimmed. That's just a small bit of code from my full file. Hopefully I didn't leave anything important out. I do other things with the other positions but posting it all would likely confuse things.
Code: Select all
from sense_hat import SenseHat, ACTION_PRESSED, ACTION_HELD, ACTION_RELEASED
sense = SenseHat()
sense.low_light = True
def pushed_down(event):
if event.action == ACTION_PRESSED:
sense.low_light = True
def pushed_up(event):
if event.action == ACTION_PRESSED:
sense.low_light = False
sense.stick.direction_up = pushed_up
sense.stick.direction_down = pushed_down
sense.stick.direction_left = pushed_left
sense.stick.direction_right = pushed_right
sense.stick.direction_middle = pushed_middle