The Arduino101Accelerometer component lets users configure the Arduino 101's on-board accelerometer and receive one or more accelerometer samples via the appropriate methods.
More links:
Properties
Methods
⦁
IsSupported – Check whether the accelerometer is currently available for the device connected via theBluetoothDevice property. If no device is currently connected, this method will always return false.
⦁
ReadAccelerometerData – Read a single sample of accelerometer data from the Arduino. On successful read, the AccelerometerDataReceived event will be run.
⦁
RequestAccelerometerDataUpdates – Request notifications of changes in the Arduino's accelerometer. Accelerometer data will be reported through the AccelerometerDataReceived event.
⦁
StopAccelerometerDataUpdates – Stop receiving updates from the Arduino's accelerometer. Note that there may be pending messages from the device that will still be reported through theAccelerometerDataReceived event.Events
⦁
AccelerometerDataReceived – The AccelerometerDataReceived event is run whenever accelerometer samples are received from the Arduino 101. This is usually a result of performing a read or requestoperation. The X, Y, and Z values are in multiples of 1 Earth gravity (G=-9.8 m/s2).
Parameters:
⚬
⚬
⚬
⚬
Accelerometer_X (number) — The X value of the accelerometer, in G.⚬
Accelerometer_Y (number) — The Y value of the accelerometer, in G.⚬
Accelerometer_Z (number) — The Z value of the accelerometer, in G.
댓글 없음:
댓글 쓰기