mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 10:58:54 +00:00
107 lines
3.7 KiB
C
107 lines
3.7 KiB
C
// SPDX-License-Identifier: MIT
|
|
// Copyright 2020 NXP
|
|
|
|
/*
|
|
* custom.h
|
|
*
|
|
* Created on: July 29, 2020
|
|
* Author: nxf53801
|
|
*/
|
|
|
|
#ifndef __CUSTOM_H_
|
|
#define __CUSTOM_H_
|
|
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "lvgl.h"
|
|
|
|
#include "rtthread.h"
|
|
#include <aic_core.h>
|
|
#include <aic_hal.h>
|
|
#include "rtconfig.h"
|
|
// #ifndef ULOG_USING_SYSLOG
|
|
// #include <ulog.h>
|
|
// #else
|
|
// #include <syslog.h>
|
|
// #endif /* ULOG_USING_SYSLOG */
|
|
|
|
// #include "zigbee_fun.h"
|
|
#include "nvs_eepom.h"
|
|
#include "fontenum.h"
|
|
#include "gui_guider.h"
|
|
|
|
void custom_init(lv_ui *ui);
|
|
|
|
|
|
extern lv_timer_t * animationtimer;
|
|
extern rt_mq_t custom_rx_evt_queue;
|
|
extern rt_thread_t custom_thread;
|
|
|
|
//extern void custom_task_handler(void);
|
|
|
|
|
|
|
|
//tableview页面滑动
|
|
void custom_tableview_event(lv_event_code_t code);
|
|
//main_navi导航按键
|
|
void custom_main_navi_status(char key,lv_event_code_t code);
|
|
//setting界面
|
|
//主机信息页
|
|
void custom_mianinfo_key_status(char key,lv_event_code_t code);
|
|
//显示页
|
|
void custom_display_key_status(char key,lv_event_code_t code);
|
|
//语言
|
|
void custom_language_key_status(char key,lv_event_code_t code);
|
|
//时间设置
|
|
void custom_datetime_key_status(char key,lv_event_code_t code);
|
|
//网络页
|
|
void custom_network_key_status(char key,lv_event_code_t code);
|
|
//首屏
|
|
void custom_firstscreen_key_status(char key,lv_event_code_t code);
|
|
//继电器路数选择界面
|
|
void custom_relayselect_key_status(char key,lv_event_code_t code);
|
|
//scene界面
|
|
void custom_scene_btn_event(char key,lv_event_code_t code);
|
|
//onoffs界面:时钟/开关模式的开关按键
|
|
void custom_onoff1_key_status(char key,lv_event_code_t code);
|
|
void custom_onoff2_key_status(char key,lv_event_code_t code);
|
|
void custom_onoff3_key_status(char key,lv_event_code_t code);
|
|
void custom_onoff4_key_status(char key,lv_event_code_t code);
|
|
void custom_onofftime1_key_status(char key,lv_event_code_t code);
|
|
void custom_onofftime2_key_status(char key,lv_event_code_t code);
|
|
void custom_onofftime3_key_status(char key,lv_event_code_t code);
|
|
void custom_onofftime4_key_status(char key,lv_event_code_t code);
|
|
//dimmer界面
|
|
void custom_dimmer_btn_event(char key,lv_event_code_t code);
|
|
void custom_dimmer_group1_event(char key,lv_event_code_t code);
|
|
void custom_dimmer_group2_event(char key,lv_event_code_t code);
|
|
void custom_dimmer_group3_event(char key,lv_event_code_t code);
|
|
void custom_dimmer_group4_event(char key,lv_event_code_t code);
|
|
//dimmer界面
|
|
void custom_dimmerinfo_status(char key,lv_event_code_t code);
|
|
//curtain情详界面
|
|
void custom_curtain_btn_event(char key,lv_event_code_t code);
|
|
void custom_curtain_group1_event(char key,lv_event_code_t code);
|
|
void custom_curtain_group2_event(char key,lv_event_code_t code);
|
|
void custom_curtain_group3_event(char key,lv_event_code_t code);
|
|
void custom_curtain_group4_event(char key,lv_event_code_t code);
|
|
//curtain情详界面
|
|
void custom_curtaininfo_status(char key,lv_event_code_t code);
|
|
void custom_rollersinfo_status(char key,lv_event_code_t code);
|
|
//设备页
|
|
//场景开关
|
|
void custom_addsubdevicepage_status(char key,lv_event_code_t code);
|
|
void custom_gang1onoff_key_status(char key,lv_event_code_t code);
|
|
void custom_gang2onoff_key_status(char key,lv_event_code_t code);
|
|
void custom_gang3onoff_key_status(char key,lv_event_code_t code);
|
|
void custom_gang4onoff_key_status(char key,lv_event_code_t code);
|
|
void custom_gang6onoff_key_status(char key,lv_event_code_t code);
|
|
//空调
|
|
void custom_Airconditioner_key_status(char key,lv_event_code_t code);
|
|
void custom_Projector_key_status(char key,lv_event_code_t code);
|
|
|
|
#endif /* EVENT_CB_H_ */
|