18 lines
394 B
C
18 lines
394 B
C
#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);
|