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