2021-05-18 09:23:14 +00:00
|
|
|
#include <api-hal-vibro.h>
|
|
|
|
#include <api-hal-gpio.h>
|
|
|
|
|
|
|
|
void api_hal_vibro_init() {
|
|
|
|
hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
|
|
hal_gpio_write(&vibro_gpio, false);
|
2021-07-28 08:45:42 +00:00
|
|
|
FURI_LOG_I("FuriHalVibro", "Init OK");
|
|
|
|
|
2021-05-18 09:23:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void api_hal_vibro_on(bool value) {
|
|
|
|
hal_gpio_write(&vibro_gpio, value);
|
|
|
|
}
|