MetaWear C++ API
0.20.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 - Pulls down the HCD pin The MetaWear has a driver for motor or buzzers that are 3C compatible (check the datasheet) This is not a full PWM driver. More... | |
METAWEAR_API void | mbl_mw_haptic_start_buzzer (const MblMwMetaWearBoard *board, uint16_t pulse_width_ms) |
Drives a buzzer - Pulls down the HCD pin The MetaWear has a driver for motor or buzzers that are 3C compatible (check the datasheet) 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 - Pulls down the HCD pin The MetaWear has a driver for motor or buzzers that are 3C compatible (check the datasheet)
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 - Pulls down the HCD pin The MetaWear has a driver for motor or buzzers that are 3C compatible (check the datasheet) This is not a full PWM driver.
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 |