接着上一次,这一次提交完成的有:
数据的断电保存
上电时数据的加载以及刷新
至此,余留的任务有:
方向控制
app
This commit is contained in:
parent
69b9efac27
commit
73d440be4d
13 changed files with 1851 additions and 1791 deletions
|
|
@ -11,3 +11,4 @@ void plan_handle_init(void);
|
|||
|
||||
void plan_handle(void);
|
||||
|
||||
void tft_to_plan_input(uint8_t objn);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
#ifndef TFT_H
|
||||
#define TFT_H
|
||||
|
||||
enum { PLAN_DATA_NUM = 19 };
|
||||
|
||||
typedef struct input_limit_
|
||||
{
|
||||
|
|
@ -38,7 +37,6 @@ input_limit tft_input_limit(char *name);
|
|||
|
||||
//const kv_pair *get_plan_data(uint8_t objn)[][PLAN_DATA_NUM];
|
||||
|
||||
void tft_to_plan_input(uint8_t objn);
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
36
plan_manage_main/src/app/include/tft_plan_internal.h
Normal file
36
plan_manage_main/src/app/include/tft_plan_internal.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* tft_handle_internal.h - tft和plan_handle模块共同使用部分的内部声明
|
||||
*
|
||||
* 这个文件只应包含在tft和plan_handle模块
|
||||
*/
|
||||
|
||||
#include "include/pm_time.h"
|
||||
|
||||
|
||||
typedef struct plan_input_
|
||||
{
|
||||
calendar_info bg_t;
|
||||
calendar_info ed_t;
|
||||
calendar_info pd_t;
|
||||
|
||||
uint8_t x_orient;
|
||||
uint8_t y_orient;
|
||||
uint8_t lg_r : 1;
|
||||
uint8_t lg_b : 1;
|
||||
uint8_t lg_uvb : 1;
|
||||
uint8_t water : 1;
|
||||
uint8_t sw : 1;
|
||||
} plan_input;
|
||||
|
||||
typedef struct kv_pair_
|
||||
{
|
||||
char *key;
|
||||
int16_t value;
|
||||
int8_t attr;
|
||||
} kv_pair;
|
||||
|
||||
enum { PLAN_DATA_NUM = 19 };
|
||||
|
||||
extern plan_input plan_in[PLAN_DATA_NUM];
|
||||
|
||||
extern kv_pair kvp_obj_set[][PLAN_DATA_NUM];
|
||||
Loading…
Add table
Add a link
Reference in a new issue