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() {
|
2022-03-30 18:23:40 +03:00
|
|
|
furi_hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
|
|
furi_hal_gpio_write(&vibro_gpio, 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) {
|
2022-03-30 18:23:40 +03:00
|
|
|
furi_hal_gpio_write(&vibro_gpio, value);
|
2021-09-10 05:19:02 +03:00
|
|
|
}
|