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