flipperzero-firmware/firmware/targets/f6/furi-hal/furi-hal-vibro.c

14 lines
333 B
C
Raw Normal View History

2021-08-08 18:03:25 +00:00
#include <furi-hal-vibro.h>
#include <furi-hal-gpio.h>
2021-08-08 18:03:25 +00:00
void furi_hal_vibro_init() {
hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
hal_gpio_write(&vibro_gpio, false);
FURI_LOG_I("FuriHalVibro", "Init OK");
}
2021-08-08 18:03:25 +00:00
void furi_hal_vibro_on(bool value) {
hal_gpio_write(&vibro_gpio, value);
}