BBC micro:bit

Microbit_Magnetometer

The Microbit_Magnetometer provides the ability to configure the BBC micro:bit’s on-board magnetometer and receive one or more magnetometer samples via the appropriate methods.

Properties

get Microbit_Magnetometer1 BluetoothDevice

set Microbit_Magnetometer1 BluetoothDevice  to

Methods

call Microbit_Magnetometer1 ReadMagnetometerBearing

call Microbit_Magnetometer1 ReadMagnetometerData

call Microbit_Magnetometer1 ReadMagnetometerPeriod

call Microbit_Magnetometer1 RequestMagnetometerBearingUpdates

call Microbit_Magnetometer1 RequestMagnetometerDataUpdates

call Microbit_Magnetometer1 StopMagnetometerBearingUpdates

call Microbit_Magnetometer1 StopMagnetometerDataUpdates

call Microbit_Magnetometer1 WriteMagnetometerPeriodMagnetometer_Period

Events

when Microbit_Magnetometer1 MagnetometerBearingReceived bearing_value do

when Microbit_Magnetometer1 MagnetometerDataReceived Magnetometer_X Magnetometer_Y Magnetometer_Z do

when Microbit_Magnetometer1 MagnetometerPeriodReceived Magnetometer_Period do

when Microbit_Magnetometer1 WroteMagnetometerPeriod Magnetometer_Period do