[FL-936] CLI commands for vibro, led and display backlight support (#367)
* api-hal: add api-hal-vibro * cli: add vibro cli command * cli: add cli commands for led and disp backlight
This commit is contained in:
19
firmware/targets/api-hal-include/api-hal-vibro.h
Normal file
19
firmware/targets/api-hal-include/api-hal-vibro.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <api-hal-resources.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Initialize vibro */
|
||||
void api_hal_vibro_init();
|
||||
|
||||
/* Turn on/off vibro */
|
||||
void api_hal_vibro_on(bool value);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user