UNPKG

pxt-maker

Version:
22 lines (17 loc) 353 B
# Data logger This example uses the ``data-logger`` library to sample the ``A1`` reading and write it to ``log.csv``. ```blocks datalogger.setSampleInterval(100) forever(function () { datalogger.addRow() datalogger.addValue("a1", pins.A1.analogRead()) }) ``` ```package datalogger ``` ```config feature=uf2 feature=pina1 feature=storage ```