mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
558fa5670b
* RPC: Update protobuf sources * RPC: Add Virtual Display * Unify log tags * RPC: Virtual Display placeholder * Rpc: clear frame buffer callback before confirm. * Firmware: full assert for hal, move fatfs initialization to furi hal. * FuriHal: VCP optimizations, thread safe console. Rpc: adjust buffer sizes. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
15 lines
350 B
C
15 lines
350 B
C
#include <furi-hal-vibro.h>
|
|
#include <furi-hal-gpio.h>
|
|
|
|
#define TAG "FuriHalVibro"
|
|
|
|
void furi_hal_vibro_init() {
|
|
hal_gpio_init(&vibro_gpio, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow);
|
|
hal_gpio_write(&vibro_gpio, false);
|
|
FURI_LOG_I(TAG, "Init OK");
|
|
|
|
}
|
|
|
|
void furi_hal_vibro_on(bool value) {
|
|
hal_gpio_write(&vibro_gpio, value);
|
|
}
|