MetaWear C# SDK  1.2.0
C# API for MbientLab's sensor platform
Public Member Functions | List of all members
MbientLab.MetaWear.Peripheral.IHaptic Interface Reference

Provides haptic feedback in the form of a vibrational motor or buzzer More...

Inheritance diagram for MbientLab.MetaWear.Peripheral.IHaptic:
MbientLab.MetaWear.IModule

Public Member Functions

void StartMotor (ushort pulseWidth, float dutyCycle=100f)
 Start pulsing a motor More...
 
void StartBuzzer (ushort pulseWidth)
 Start pulsing a buzzer More...
 

Detailed Description

Provides haptic feedback in the form of a vibrational motor or buzzer

Member Function Documentation

◆ StartBuzzer()

void MbientLab.MetaWear.Peripheral.IHaptic.StartBuzzer ( ushort  pulseWidth)

Start pulsing a buzzer

Parameters
pulseWidthHow long to run the buzzer, in milliseconds (ms)

◆ StartMotor()

void MbientLab.MetaWear.Peripheral.IHaptic.StartMotor ( ushort  pulseWidth,
float  dutyCycle = 100f 
)

Start pulsing a motor

Parameters
pulseWidthHow long to run the motor, in milliseconds (ms)
dutyCycleStrength of the motor, defaults to 100%

The documentation for this interface was generated from the following file: