Implement native ESP-IDF radar firmware
This commit is contained in:
17
main/ui.h
Normal file
17
main/ui.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "radar_service.h"
|
||||
|
||||
typedef struct {
|
||||
bool sound_enabled;
|
||||
bool touch_available;
|
||||
uint8_t brightness_percent;
|
||||
void (*sound_changed)(bool enabled);
|
||||
void (*brightness_changed)(uint8_t percent, bool persist);
|
||||
} ui_config_t;
|
||||
|
||||
void ui_init(const ui_config_t *config);
|
||||
void ui_update(const radar_snapshot_t *snapshot);
|
||||
Reference in New Issue
Block a user