Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/Turtle Art/Programmable Brick
(view source)
Revision as of 01:48, 29 August 2011
64 bytes added
,
01:48, 29 August 2011
→Programmable Brick
Line 213:
Line 213:
fd =open(devicestr, 'rb')
fd =open(devicestr, 'rb')
for x in range(12):
for x in range(12):
−
fd.read(1)
+
fd.read(1)
#does not return till the switch state changes
−
tw.lc.heap.append( ord(fd.read(1))) #
do not return till the
switch state
changes
+
tw.lc.heap.append( ord(fd.read(1))) #
push ebook
switch state
to heap
fd.close
fd.close
Tonyforster
2,486
edits