Skip to content

Latest commit

 

History

History
35 lines (17 loc) · 1.02 KB

onboard-makecode.md

File metadata and controls

35 lines (17 loc) · 1.02 KB

On-Board Sensor Data Logging with MakeCode

This example uses the onboard sensors displayed below on the micro:bit:

microbit-labeled

Example: Accelerometer

Step 1: Import the datalogger Extension

Select the Extensions in the Blocks Toolbox.

Extensions Drawer

Search for the datalogger extension and select it.

Searching for the datalogger extension

The datalogger blocks are now available in the Blocks Toolbox.

Step 2: Mirror Data to Serial

Drag the mirror data to serial block into the on start block:

block-enable-logging-serial


Step 4: Label the Label the Columns on the MY_DATA.HTM File

Select the set columns block. Drag it under the mirror data to serial block:

block-enable-logging-serial