# log the accelerometer values to a .csv-file on the SD-card
= # create object of accelerometer
= # create object of blue LED
= # open file to write data - /sd/ is the SD-card, /flash/ the internal memory
# turn on blue LED
# 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.)
= # get time since reset
, , = # get acceleration data
# write data to file
# close file
# turn off LED