mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-21 12:21:49 +03: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
15 lines
364 B
C
15 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);
|
|
}
|