Samraksh eMote .NOW
Accelerometer Constructor
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C# Language Filter: C++/CLI
Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++/CLI

Samraksh.eMote.SensorBoard Namespace > Accelerometer Class : Accelerometer Constructor

Sample rate
Callback method. Can be null.
Initialize the i2c and the Kiwi Accelerometer sensor
Syntax

- Visual Basic
- C#
- C++/CLI

    'Declaration

    Public Function New( _
       ByVal RefreshRate As Integer, _
       ByVal callbackfunction As Accelerometer.AxlCallbackType _
    )

    'Usage

    Dim RefreshRate As Integer
    Dim callbackfunction As Accelerometer.AxlCallbackType

    Dim instance As New Accelerometer(RefreshRate, callbackfunction)

    public Accelerometer(
       int RefreshRate,
       Accelerometer.AxlCallbackType callbackfunction
    )

    public:
    Accelerometer(
       int RefreshRate,
       Accelerometer.AxlCallbackType^ callbackfunction
    )

#### Parameters

RefreshRate
  Sample rate
callbackfunction
  Callback method. Can be null.

Remarks
If the callback method is null, the user is not notified of sensor events. User should poll instead.
Requirements

Target Platforms: eMote .NOW

See Also

#### Reference

Accelerometer Class
Accelerometer Members

Send Feedback