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

16 lines
350 B
C
Raw Normal View History

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