Jababa
Posts: 1
Joined: Fri May 11, 2018 8:03 pm

Sense Hat Led Matrix issue

Fri May 11, 2018 8:13 pm

Hi,

I am currently testing my Sense Hat and I do have an issue with the Led Matrix.

I wrote this code and tested it in the SenseHat Emulator : it turns on the led, one by one.
But when I test it directly with the SenseHat, I do have an entire line that turns on instead of a single led.

Here is the code used:

Code: Select all

from time import sleep
from sense_hat import SenseHat
sense = SenseHat()
blue = (0,0,255)
red = (255,0,0)
x=0
y=0
while(x<8) and (y<8):
    sense.set_pixel(x,y,blue)
    sleep(0.5)
    x=x+1
    sense.clear(0,0,0)
    if x>7:
      x=0
      y=y+1
 
and the result with the Sense Hat (I've tested with and without the ribbon)

https://youtu.be/deGWcwmvW58

I've no idea where the problem come from ! Is my SenseHat broken ?

Return to “Astro Pi”