#pragma once #include #include #include #include #include #include #include "gui/views/main_view.h" #include #include #include "gui/scenes/config/lightmeter_scene.h" #include #include "lightmeter_config.h" #include #include typedef struct { int iso; int nd; int aperture; int dome; int backlight; int lux_only; int sensor_type; } LightMeterConfig; typedef struct { Gui* gui; SceneManager* scene_manager; ViewDispatcher* view_dispatcher; MainView* main_view; VariableItemList* var_item_list; LightMeterConfig* config; NotificationApp* notifications; Widget* widget; } LightMeterApp; typedef enum { LightMeterAppViewMainView, LightMeterAppViewConfigView, LightMeterAppViewVarItemList, LightMeterAppViewAbout, LightMeterAppViewHelp, } LightMeterAppView; typedef enum { LightMeterAppCustomEventConfig, LightMeterAppCustomEventHelp, LightMeterAppCustomEventAbout, } LightMeterAppCustomEvent; void lightmeter_app_set_config(LightMeterApp* context, LightMeterConfig* config); void lightmeter_app_i2c_init_sensor(LightMeterApp* context); void lightmeter_app_i2c_deinit_sensor(LightMeterApp* context); void lightmeter_app_i2c_callback(LightMeterApp* context);