2021-08-08 18:03:25 +00:00
|
|
|
#include <furi-hal-vibro.h>
|
|
|
|
#include <furi-hal-gpio.h>
|
2021-05-18 09:23:14 +00:00
|
|
|
|
2021-11-12 13:04:35 +00:00
|
|
|
#define TAG "FuriHalVibro"
|
|
|
|
|
2021-08-08 18:03:25 +00:00
|
|
|
void furi_hal_vibro_init() {
|
2021-05-18 09:23:14 +00:00
|
|
|
hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
|
|
hal_gpio_write(&vibro_gpio, false);
|
2021-11-12 13:04:35 +00:00
|
|
|
FURI_LOG_I(TAG, "Init OK");
|
2021-07-28 08:45:42 +00:00
|
|
|
|
2021-05-18 09:23:14 +00:00
|
|
|
}
|
|
|
|
|
2021-08-08 18:03:25 +00:00
|
|
|
void furi_hal_vibro_on(bool value) {
|
2021-05-18 09:23:14 +00:00
|
|
|
hal_gpio_write(&vibro_gpio, value);
|
|
|
|
}
|