Data logger

This example uses the data-logger library to sample the A1 reading and write it to log.csv.

datalogger.setSampleInterval(100)
forever(function () {
    datalogger.addRow()
    datalogger.addValue("a1", pins.A1.analogRead())
})
datalogger
feature=uf2
feature=pina1
feature=storage