mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-29 16:25:47 +03:00
585b7f963d
merge ofw commit
15 lines
368 B
C
15 lines
368 B
C
#include <furi_hal_vibro.h>
|
|
#include <furi_hal_gpio.h>
|
|
|
|
#define TAG "FuriHalVibro"
|
|
|
|
void furi_hal_vibro_init(void) {
|
|
furi_hal_gpio_init(&gpio_vibro, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
furi_hal_gpio_write(&gpio_vibro, false);
|
|
FURI_LOG_I(TAG, "Init OK");
|
|
}
|
|
|
|
void furi_hal_vibro_on(bool value) {
|
|
furi_hal_gpio_write(&gpio_vibro, value);
|
|
}
|