BSB Developer Docs
Loading...
Searching...
No Matches
light_sensor_test.h
1#pragma once
2
3#include <furi.h>
4#include <gui/gui.h>
6#include <gui/modules/label.h>
7
10
11typedef enum {
12 LightSensorTestAppEventExit,
13 LightSensorTestAppEventLightLevelUpdate,
14} LightSensorTestAppEventType;
15
16typedef struct {
17 LightSensorTestAppEventType type;
18 union {
19 LightSensorState lighth_sensor_state;
20 };
22
23typedef struct {
24 FuriEventLoop* event_loop;
25 FuriMessageQueue* event_queue;
26 FuriEventLoopTimer* timer;
27 Gui* gui;
28
29 LightSensor* light_sensor;
30 FuriStateSub* light_sensor_events;
31 LightSensorState light_sensor_state;
32
33 FlexLayout* flex;
34 Label* label_light_raw_600nm;
35 Label* label_light_raw_840nm;
36 Label* label_lux_instant;
37 Label* label_lux_mean;
38 Label* label_light_level;
39
40 uint16_t raw_600nm;
41 uint16_t raw_840nm;
A widget that arranges its elements in flexible rows or columns.
struct FlexLayout FlexLayout
FlexLayout opaque structure.
Definition flex_layout.h:16
GUI system APIs.
A simple text label widget.
Light service API.
Common Light Sensor types and defines.
Definition gui_i.h:48
Definition label.c:9
Definition light_sensor.c:16
Structure containing the light sensor state.
Definition light_sensor_common.h:44
Definition light_sensor_test.h:16
Definition light_sensor_test.h:23