Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
91bd4e8a
Commit
91bd4e8a
authored
Oct 26, 2014
by
Sebastian Plamauer
Committed by
Damien George
Oct 25, 2014
Browse files
changed file paths to new names
parent
124df6f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/SDdatalogger/datalogger.py
View file @
91bd4e8a
...
@@ -19,7 +19,7 @@ while True:
...
@@ -19,7 +19,7 @@ while True:
if
switch
():
if
switch
():
pyb
.
delay
(
200
)
# delay avoids detection of multiple presses
pyb
.
delay
(
200
)
# delay avoids detection of multiple presses
blue
.
on
()
# blue LED indicates file open
blue
.
on
()
# blue LED indicates file open
log
=
open
(
'
1:
/log.csv'
,
'w'
)
# open file on SD (SD: '
1:
/', flash: '
0
/)
log
=
open
(
'
/sd
/log.csv'
,
'w'
)
# open file on SD (SD: '
/sd
/', flash: '
/flash
/)
# until switch is pressed again
# until switch is pressed again
while
not
switch
():
while
not
switch
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment