Merge pull request #131 from lurch/patch-1

Modify LEDBorg code example to work with Python2
This commit is contained in:
RM 2016-10-19 15:59:17 +01:00 committed by GitHub
commit c87c217ac8
1 changed files with 3 additions and 3 deletions

View File

@ -50,15 +50,15 @@ lb = LedBorg()
while True:
r, g, b = 0, 0, 0
for i in range(100):
r = i / 100
r = i / 100.0
lb.value = (r, g, b)
sleep(0.01)
for i in range(100):
g = i / 100
g = i / 100.0
sleep(0.01)
lb.value = (r, g, b)
for i in range(100):
b = i / 100
b = i / 100.0
lb.value = (r, g, b)
sleep(0.01)
```