You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to light up the right leds on the mini-Rainbow (8x4) with Python with x and y positions and set_pixel, both x and y seem to have a range with the length of 8 (0-7). Each second row of 4 leds seems to be a continuation of the first row of 4 leds.
Example:
import time
import rainbowhat as rainbow
rainbow.set_layout(rainbow.PHAT)
rainbow.rotation(0)
rainbow.brightness(0.3)
for x in range(8):
for y in range(4):
rainbow.set_pixel(x,y,255,255,255)
rainbow.show()
time.sleep(1)
Playing with rotation doesn't help. I'm using set_layout to set it to PHAT.
Example 2 (with rotation):
import time
import rainbowhat as rainbow
rainbow.set_layout(rainbow.PHAT)
rainbow.rotation(90)
rainbow.brightness(0.3)
for x in range(4):
rainbow.set_pixel(x,0,255,255,255)
rainbow.show()
time.sleep(1)
for x in range(4):
rainbow.set_pixel(x,1,255,0,0)
rainbow.show()
time.sleep(1)
results in this:
The text was updated successfully, but these errors were encountered:
mryzl
added a commit
to mryzl/Rainbow-HAT
that referenced
this issue
Apr 9, 2020
When trying to light up the right leds on the mini-Rainbow (8x4) with Python with x and y positions and set_pixel, both x and y seem to have a range with the length of 8 (0-7). Each second row of 4 leds seems to be a continuation of the first row of 4 leds.
Example:
Playing with rotation doesn't help. I'm using set_layout to set it to PHAT.
Example 2 (with rotation):
results in this:
The text was updated successfully, but these errors were encountered: