Microbit Accelerometer

Microbit_Accelerometer

The Microbit_Accelerometer component lets users configure the BBC micro:bit’s on-board accelerometer and receive one or more accelerometer samples via the appropriate methods.

The accelerometer’s report rate, or period, determines how frequently data will be sent to App Inventor.

Properties

get Microbit_Accelerometer1 BluetoothDevice

set Microbit_Accelerometer1 BluetoothDevice  to

Methods

call Microbit_Accelerometer1 ReadAccelerometerData

call Microbit_Accelerometer1 ReadAccelerometerPeriod

call Microbit_Accelerometer1 RequestAccelerometerDataUpdates

call Microbit_Accelerometer1 StopAccelerometerDataUpdates

call Microbit_Accelerometer1 WriteAccelerometerPeriodperiod

Events

when Microbit_Accelerometer1 AccelerometerDataReceived Accelerometer_X Accelerometer_Y Accelerometer_Z do

when Microbit_Accelerometer1 AccelerometerPeriodReceived Accelerometer_Period do

when Microbit_Accelerometer1 WroteAccelerometerPeriod Accelerometer_Period do