2022-01-05 16:10:18 +00:00
|
|
|
#include <furi_hal_vibro.h>
|
|
|
|
#include <furi_hal_gpio.h>
|
2021-09-10 02:19:02 +00:00
|
|
|
|
2021-11-12 13:04:35 +00:00
|
|
|
#define TAG "FuriHalVibro"
|
|
|
|
|
2021-09-10 02:19:02 +00:00
|
|
|
void furi_hal_vibro_init() {
|
2022-03-30 15:23:40 +00:00
|
|
|
furi_hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
|
|
furi_hal_gpio_write(&vibro_gpio, false);
|
2021-11-12 13:04:35 +00:00
|
|
|
FURI_LOG_I(TAG, "Init OK");
|
2021-09-10 02:19:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void furi_hal_vibro_on(bool value) {
|
2022-03-30 15:23:40 +00:00
|
|
|
furi_hal_gpio_write(&vibro_gpio, value);
|
2021-09-10 02:19:02 +00:00
|
|
|
}
|