MetaWear C++ API
0.18.0
C++ implementation of the MetaWear protocol
|
Communicates with the haptic driver. More...
#include "peripheral_common.h"
Go to the source code of this file.
Functions | |
METAWEAR_API void | mbl_mw_haptic_start_motor (const MblMwMetaWearBoard *board, float duty_cycle_per, uint16_t pulse_width_ms) |
Drives a motor. More... | |
METAWEAR_API void | mbl_mw_haptic_start_buzzer (const MblMwMetaWearBoard *board, uint16_t pulse_width_ms) |
Drives a buzzer. More... | |
Communicates with the haptic driver.
METAWEAR_API void mbl_mw_haptic_start_buzzer | ( | const MblMwMetaWearBoard * | board, |
uint16_t | pulse_width_ms | ||
) |
Drives a buzzer.
board | Pointer to the board to send the command to |
pulse_width_ms | How long to run the buzzer, in milliseconds |
METAWEAR_API void mbl_mw_haptic_start_motor | ( | const MblMwMetaWearBoard * | board, |
float | duty_cycle_per, | ||
uint16_t | pulse_width_ms | ||
) |
Drives a motor.
board | Pointer to the board to send the command to |
duty_cycle_per | Strength of the motor, between [0, 100] percent |
pulse_width_ms | How long to run the motor, in milliseconds |