Read data from accelerometer and magnetometer sensors, or read data from an I2C device, connected to BBC micro:bit board
reads data from both the accelerometer and magnetometer sensors connected to the BBC
micro:bit board, specified as a data
= read(microbitObj
)microbit
object. The data is returned as
a timetable
.