mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-26 20:53:07 +00:00
0d8518d31d
* FuriHal: fix gpio naming and add explicit pulls for vibro, speaker and ir_tx * Github: workflow event debug print * Github: proper PR head commit SHA extraction in get_env.py
14 lines
364 B
C
14 lines
364 B
C
#include <furi_hal_vibro.h>
|
|
#include <furi_hal_gpio.h>
|
|
|
|
#define TAG "FuriHalVibro"
|
|
|
|
void furi_hal_vibro_init() {
|
|
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);
|
|
}
|