FluxDC/components/FluxUI/ui_events.c

85 lines
1.5 KiB
C
Raw Normal View History

// This file was generated by SquareLine Studio
// SquareLine Studio version: SquareLine Studio 1.5.1
// LVGL version: 8.3.6
// Project name: ESP32S3_UI
#include "ui.h"
2025-03-07 16:26:42 +08:00
#include "driver/ledc.h"
#include "esp_err.h"
#include "esp_log.h"
2025-03-08 10:23:13 +08:00
#include "FluxMod.h"
2025-03-07 17:42:37 +08:00
#define LOWERST_LIGHT_LEVEL (7222)
void ReadSdCallFunc(lv_event_t * e)
{
// Your code here
}
void F1callbackFunc(lv_event_t * e)
{
// Your code here
master_operation_func(NULL);
}
void F2callbackFunc(lv_event_t * e)
{
// Your code here
}
void F3callbackFunc(lv_event_t * e)
{
// Your code here
}
void lightSliderCallback(lv_event_t * e)
{
// Your code here
2025-03-07 17:42:37 +08:00
// Your code here
uint32_t value = 8192-lv_slider_get_value(e->target);
2025-03-07 16:26:42 +08:00
//ESP_LOGI("lightSliderCallback", "value = %u", value);
2025-03-07 17:42:37 +08:00
if (value>LOWERST_LIGHT_LEVEL)
{
value = LOWERST_LIGHT_LEVEL;
}
2025-03-07 16:26:42 +08:00
ESP_ERROR_CHECK(ledc_set_duty(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0, value));
// Update duty to apply the new value
ESP_ERROR_CHECK(ledc_update_duty(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0));
}
2025-03-08 14:45:49 +08:00
void DeviceDropDownValueChanged(lv_event_t * e)
{
char buf[32]={};
lv_dropdown_get_selected_str(e->target,buf,32);
lv_label_set_text(ui_Home_HeaderDeviceType, buf);
2025-03-11 18:55:34 +08:00
}
void wifiKeyEnter(lv_event_t * e)
{
// Your code here
}
void wifisearch(lv_event_t * e)
{
// Your code here
}
void getSdcardInfo(lv_event_t * e)
{
// Your code here
}
void wifiNameValueChanged(lv_event_t * e)
{
// Your code here
}
void wificonnect(lv_event_t * e)
{
// Your code here
2025-03-08 14:45:49 +08:00
}