Skip to content

Commit c28fed6

Browse files
committed
examples/accellog.py: Change 1: to /sd/, and update comment about FS.
1 parent 00d6f99 commit c28fed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/accellog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
accel = pyb.Accel() # create object of accelerometer
66
blue = pyb.LED(4) # create object of blue LED
77

8-
log = open('1:/log.csv', 'w') # open file to write data - 1:/ ist the SD-card, 0:/ the internal memory
8+
log = open('/sd/log.csv', 'w') # open file to write data - /sd/ is the SD-card, /flash/ the internal memory
99
blue.on() # turn on blue LED
1010

1111
for i in range(100): # do 100 times (if the board is connected via USB, you can't write longer because the PC tries to open the filesystem which messes up your file.)

0 commit comments

Comments
 (0)