This API must be implemented by applications that use Emmet.
◆ emmet_hal_get_button_state()
Get the current button state.
- Returns
- the current button state.
Definition at line 110 of file emmet.c.
◆ emmet_hal_set_led()
| void emmet_hal_set_led |
( |
uint8_t |
led_id, |
|
|
uint8_t |
level |
|
) |
| |
Set LED state.
- Parameters
-
| led_id | The ID of the LED to set. |
| level | Level 0-255, where 0 if off and 255 is full on. |
Definition at line 105 of file emmet.c.
◆ emmet_hal_trigger_button_event()
Trigger a button event to the application as if a user had pushed or released the button.
- Parameters
-
| state | The type of event to trigger (press or release). |
Definition at line 123 of file emmet.c.