mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 08:43:10 +00:00
13 lines
329 B
C
13 lines
329 B
C
#include <api-hal-vibro.h>
|
|
#include <api-hal-gpio.h>
|
|
|
|
void api_hal_vibro_init() {
|
|
hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
hal_gpio_write(&vibro_gpio, false);
|
|
FURI_LOG_I("FuriHalVibro", "Init OK");
|
|
|
|
}
|
|
|
|
void api_hal_vibro_on(bool value) {
|
|
hal_gpio_write(&vibro_gpio, value);
|
|
}
|