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