- small path change

master
Steve Clement 2015-03-09 19:19:56 +01:00
vecāks c95c7756d2
revīzija 32870ce0bd
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām

Parādīt failu

@ -12,14 +12,14 @@ matrix = Adafruit_RGBmatrix(32, 3)
# The adafruit.png image has a couple columns of black pixels at
# the right edge, so erasing after the scrolled image isn't necessary.
matrix.Clear()
image = Image.open("../images/32px-LightOn.svg.png")
image = Image.open("images/32px-LightOn.svg.png")
image.load()
for n in range(32, -image.size[0], -1):
matrix.SetImage(image.im.id, n, 1)
time.sleep(0.025)
matrix.Clear()
image = Image.open("../images/32px-LightOff.svg.png")
image = Image.open("images/32px-LightOff.svg.png")
image.load()
for n in range(32, -image.size[0], -1):
matrix.SetImage(image.im.id, n, 1)