mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-25 20:23:07 +00:00
14 lines
333 B
C
14 lines
333 B
C
|
#include <furi-hal-vibro.h>
|
||
|
#include <furi-hal-gpio.h>
|
||
|
|
||
|
void furi_hal_vibro_init() {
|
||
|
hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
||
|
hal_gpio_write(&vibro_gpio, false);
|
||
|
FURI_LOG_I("FuriHalVibro", "Init OK");
|
||
|
|
||
|
}
|
||
|
|
||
|
void furi_hal_vibro_on(bool value) {
|
||
|
hal_gpio_write(&vibro_gpio, value);
|
||
|
}
|