73e5379520
* api-hal: add api-hal-vibro * cli: add vibro cli command * cli: add cli commands for led and disp backlight
12 lines
285 B
C
12 lines
285 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);
|
|
}
|
|
|
|
void api_hal_vibro_on(bool value) {
|
|
hal_gpio_write(&vibro_gpio, value);
|
|
}
|