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() {
|
2023-04-06 09:06:19 +00:00
|
|
|
furi_hal_gpio_init(&gpio_vibro, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
|
|
furi_hal_gpio_write(&gpio_vibro, 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) {
|
2023-04-06 09:06:19 +00:00
|
|
|
furi_hal_gpio_write(&gpio_vibro, value);
|
2021-09-10 02:19:02 +00:00
|
|
|
}
|