Merge pull request #299 from pjbroad/master

Issue #228: fix Blinkt\! code example.
This commit is contained in:
Philip Howard 2019-01-22 19:50:44 +00:00 committed by GitHub
commit 9809b27247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 18 deletions

View File

@ -45,9 +45,9 @@ from time import sleep
while True:
for pixel in range(8):
r = randint(255)
g = randint(255)
b = randint(255)
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
set_pixel(pixel, r, g, b)
show()
sleep(0.1)

View File

@ -45,9 +45,9 @@ from time import sleep
while True:
for pixel in range(8):
r = randint(255)
g = randint(255)
b = randint(255)
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
set_pixel(pixel, r, g, b)
show()
sleep(0.1)

View File

@ -43,9 +43,9 @@ from time import sleep
while True:
for pixel in range(8):
r = randint(255)
g = randint(255)
b = randint(255)
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
set_pixel(pixel, r, g, b)
show()
sleep(0.1)

View File

@ -45,9 +45,9 @@ from time import sleep
while True:
for pixel in range(8):
r = randint(255)
g = randint(255)
b = randint(255)
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
set_pixel(pixel, r, g, b)
show()
sleep(0.1)

View File

@ -45,9 +45,9 @@ from time import sleep
while True:
for pixel in range(8):
r = randint(255)
g = randint(255)
b = randint(255)
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
set_pixel(pixel, r, g, b)
show()
sleep(0.1)

View File

@ -45,9 +45,9 @@ from time import sleep
while True:
for pixel in range(8):
r = randint(255)
g = randint(255)
b = randint(255)
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
set_pixel(pixel, r, g, b)
show()
sleep(0.1)