Created
December 14, 2015 16:38
-
-
Save titimoby/740871a6f7185760c46c to your computer and use it in GitHub Desktop.
le with ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def run(self): | |
# Update the screen every second. | |
rate = Rate(2.0) | |
with self.model: | |
for y in range(self.nbstrips): | |
for x in range(self.nbleds): | |
self.model.set_pixel(x, y, self.PIXEL_COLOR) | |
rate.sleep() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/bin/python2.7 /home/thierry/Dropbox/Dev/Arbalet/arbapps/SimpleTester/SimpleTester.py
Traceback (most recent call last):
File "/home/thierry/Dropbox/Dev/Arbalet/arbapps/SimpleTester/SimpleTester.py", line 46, in
app.start()
File "/usr/local/lib/python2.7/dist-packages/arbalet-0.0.1-py2.7.egg/arbasdk/arbapp.py", line 92, in start
self.run()
File "/home/thierry/Dropbox/Dev/Arbalet/arbapps/SimpleTester/SimpleTester.py", line 29, in run
with self.model:
AttributeError: exit
Process finished with exit code 1