Class «accelerometer»

This article is automatically translated from Russian by Google Translator.

Represents the accelerometer of the TRIK controller.

Method

Description

Returns the current sensor reading as an array of three elements corresponding to the sensor readings along each axis.

Signal

Description

The signal sent by the sensor when new data is ready.

read

Returns the current sensor reading as an array of three elements corresponding to the sensor readings along each axis.

Syntax

brick.accelerometer().read();

newData

The signal sent by the sensor when new data is ready.

Last updated