25 changed files with 10495 additions and 10097 deletions
-
5.vscode/settings.json
-
19100release/V200/hand_acid_mainboard.hex
-
BINrelease/V200/hand_acid_mainboard_ui upadte.HMI
-
BINrelease/V200/hand_acid_mainboard_ui upadte.tft
-
2stm32components
-
11uappbase/appcfg/appcfg.hpp
-
53uappbase/bean/config_index_enum.hpp
-
63uappbase/service/config_index.cpp
-
4uappbase/service/config_index.hpp
-
2uappbase/service/config_service.cpp
-
17uappbase/service/gstate_mgr.cpp
-
6uappbase/service/gstate_mgr.hpp
-
1048ui/ui.h
-
4ui/usrui.h
-
2usrc/service/app_core.cpp
-
24usrc/service/page/Page_login.cpp
-
1usrc/service/page/Page_menu.cpp
-
3usrc/service/page/page.hpp
-
21usrc/service/page/submenu/Page_muAudit.cpp
-
26usrc/service/page/submenu/Page_muAudit.hpp
-
100usrc/service/page/submenu/Page_muGetAcidMgr.cpp
-
25usrc/service/page/submenu/Page_muGetAcidMgr.hpp
-
30usrc/service/page/submenu/Page_muUsrMgr.cpp
-
44usrc/service/pump_ctrl_service.cpp
-
1usrc/service/pump_ctrl_service.hpp
19100
release/V200/hand_acid_mainboard.hex
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +1 @@ |
|||||
Subproject commit d8826b58d64f4f69f5d867d110e5a8705b8bcdef |
|
||||
|
Subproject commit 3b82b7adf76a40c6931d8578725a72c8c7886bd9 |
1048
ui/ui.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,4 +1,4 @@ |
|||||
#pragma once |
#pragma once |
||||
|
|
||||
#define pic_jog_mode 25 |
|
||||
#define pic_continuous_mode 26 |
|
||||
|
#define pic_jog_mode 26 |
||||
|
#define pic_continuous_mode 27 |
@ -0,0 +1,21 @@ |
|||||
|
#include "Page_muAudit.hpp"
|
||||
|
using namespace iflytop; |
||||
|
|
||||
|
#define PAGE pg_muAudit
|
||||
|
#define OBJ(name) ob_muAudit_##name
|
||||
|
#define TAG "Page_muAudit"
|
||||
|
static CfgItermCache cfgcache; |
||||
|
bool Page_muAudit::isBelongThisPage(int page) { return page == PAGE; } |
||||
|
|
||||
|
void Page_muAudit::OnPageLoad(OnPageLoadContext* cxt) { //
|
||||
|
}; |
||||
|
|
||||
|
void Page_muAudit::OnInputFieldContentChange(uint8_t bid, const char* text) { //
|
||||
|
}; |
||||
|
void Page_muAudit::OnButton(uint8_t bid, uint8_t val) { //
|
||||
|
if (bid == OBJ(bak)) { |
||||
|
UIS->chpage(GSM->getMenuPage()); |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
// muAcidType
|
@ -0,0 +1,26 @@ |
|||||
|
#pragma once
|
||||
|
//
|
||||
|
#include "../page_processer.hpp"
|
||||
|
|
||||
|
namespace iflytop { |
||||
|
using namespace std; |
||||
|
// page: keybAcidCh
|
||||
|
class Page_muAudit : public IPageProcesser { |
||||
|
private: |
||||
|
/* data */ |
||||
|
|
||||
|
public: |
||||
|
static Page_muAudit* ins() { |
||||
|
static Page_muAudit instance; |
||||
|
return &instance; |
||||
|
} |
||||
|
|
||||
|
private: |
||||
|
virtual bool isBelongThisPage(int page) override; |
||||
|
|
||||
|
virtual void OnPageLoad(OnPageLoadContext*cxt) override; |
||||
|
virtual void OnInputFieldContentChange(uint8_t bid, const char* text) override; |
||||
|
virtual void OnButton(uint8_t bid, uint8_t val) override; |
||||
|
|
||||
|
}; |
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
#include "Page_muGetAcidMgr.hpp"
|
||||
|
using namespace iflytop; |
||||
|
|
||||
|
#define PAGE pg_muGetAcidMgr
|
||||
|
#define OBJ(name) ob_muGetAcidMgr_##name
|
||||
|
#define TAG "Page_muGetAcidMgr"
|
||||
|
static CfgItermCache cfgcache; |
||||
|
|
||||
|
static uint8_t id; |
||||
|
|
||||
|
bool Page_muGetAcidMgr::isBelongThisPage(int page) { return page == PAGE; } |
||||
|
|
||||
|
void Page_muGetAcidMgr::OnPageLoad(OnPageLoadContext* cxt) { //
|
||||
|
if (id == 1) { |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname2, getCfgStr(kcfg_usr2AcidChooseName0)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname3, getCfgStr(kcfg_usr2AcidChooseName1)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname4, getCfgStr(kcfg_usr2AcidChooseName2)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname5, getCfgStr(kcfg_usr2AcidChooseName3)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval2, getCfgStr(kcfg_usr2AcidCapacityLimite0)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval3, getCfgStr(kcfg_usr2AcidCapacityLimite1)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval4, getCfgStr(kcfg_usr2AcidCapacityLimite2)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval5, getCfgStr(kcfg_usr2AcidCapacityLimite3)); |
||||
|
} |
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_usrName, getCfgStr(kusr_name2));
|
||||
|
// UIS->sendcmd("b[%d].path+=%s", ob_muGetAcidMgr_usrName, buf);
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_usrName, getCfgStr(kusr_name3), buf);
|
||||
|
// UIS->sendcmd("b[%d].path+=%s", ob_muGetAcidMgr_usrName);
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_usrName, getCfgStr(kusr_name4), buf);
|
||||
|
// UIS->sendcmd("b[%d].path+=%s", ob_muGetAcidMgr_usrName);
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_usrName, getCfgStr(kusr_name5), buf);
|
||||
|
// UIS->sendcmd("b[%d].path+=%s", ob_muGetAcidMgr_usrName);
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_usrName, getCfgStr(kusr_name6), buf);
|
||||
|
// UIS->sendcmd("b[%d].path+=%s", ob_muGetAcidMgr_usrName);
|
||||
|
}; |
||||
|
|
||||
|
void Page_muGetAcidMgr::OnInputFieldContentChange(uint8_t bid, const char* text) { //
|
||||
|
if (bid == ob_muGetAcidMgr_usrName) { |
||||
|
if (atoi(text) == 1) { |
||||
|
id = 1; |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname2, getCfgStr(kcfg_usr2AcidChooseName0)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname3, getCfgStr(kcfg_usr2AcidChooseName1)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname4, getCfgStr(kcfg_usr2AcidChooseName2)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname5, getCfgStr(kcfg_usr2AcidChooseName3)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval2, getCfgStr(kcfg_usr2AcidCapacityLimite0)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval3, getCfgStr(kcfg_usr2AcidCapacityLimite1)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval4, getCfgStr(kcfg_usr2AcidCapacityLimite2)); |
||||
|
UIS->setTxt(PAGE, ob_muGetAcidMgr_acideval5, getCfgStr(kcfg_usr2AcidCapacityLimite3)); |
||||
|
// } else if (atoi(text) == 2) {
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname2, getCfgStr(kcfg_usr3AcidChooseName0));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname3, getCfgStr(kcfg_usr3AcidChooseName1));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname4, getCfgStr(kcfg_usr3AcidChooseName2));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname5, getCfgStr(kcfg_usr3AcidChooseName3));
|
||||
|
// } else if (atoi(text) == 3) {
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname2, getCfgStr(kcfg_usr4AcidChooseName0));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname3, getCfgStr(kcfg_usr4AcidChooseName1));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname4, getCfgStr(kcfg_usr4AcidChooseName2));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname5, getCfgStr(kcfg_usr4AcidChooseName3));
|
||||
|
// } else if (atoi(text) == 4) {
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname2, getCfgStr(kcfg_usr5AcidChooseName0));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname3, getCfgStr(kcfg_usr5AcidChooseName1));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname4, getCfgStr(kcfg_usr5AcidChooseName2));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname5, getCfgStr(kcfg_usr5AcidChooseName3));
|
||||
|
// } else if (atoi(text) == 5) {
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname2, getCfgStr(kcfg_usr6AcidChooseName0));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname3, getCfgStr(kcfg_usr6AcidChooseName1));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname4, getCfgStr(kcfg_usr6AcidChooseName2));
|
||||
|
// UIS->setTxt(PAGE, ob_muGetAcidMgr_acidname5, getCfgStr(kcfg_usr6AcidChooseName3));
|
||||
|
// }
|
||||
|
} |
||||
|
} |
||||
|
if (id == 1) { |
||||
|
if (bid == ob_muGetAcidMgr_acidname2) { |
||||
|
UIS->setTxt(PAGE, bid, text); |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidChooseName0, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acidname3) { |
||||
|
UIS->setTxt(PAGE, bid, text); |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidChooseName1, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acidname4) { |
||||
|
UIS->setTxt(PAGE, bid, text); |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidChooseName2, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acidname5) { |
||||
|
UIS->setTxt(PAGE, bid, text); |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidChooseName3, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acideval2) { |
||||
|
UIS->setTxt(PAGE, bid, text); |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidCapacityLimite0, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acideval3) { |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidCapacityLimite1, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acideval4) { |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidCapacityLimite2, text); |
||||
|
} else if (bid == ob_muGetAcidMgr_acideval5) { |
||||
|
CS->setcfgAndFlush(kcfg_usr2AcidCapacityLimite3, text); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
void Page_muGetAcidMgr::OnButton(uint8_t bid, uint8_t val) { //
|
||||
|
// if (bid == OBJ(bak)) {
|
||||
|
// UIS->chpage(GSM->getMenuPage());
|
||||
|
// }
|
||||
|
}; |
@ -0,0 +1,25 @@ |
|||||
|
#pragma once
|
||||
|
//
|
||||
|
#include "../page_processer.hpp"
|
||||
|
|
||||
|
namespace iflytop { |
||||
|
using namespace std; |
||||
|
// page: keybAcidCh
|
||||
|
class Page_muGetAcidMgr : public IPageProcesser { |
||||
|
private: |
||||
|
/* data */ |
||||
|
|
||||
|
public: |
||||
|
static Page_muGetAcidMgr* ins() { |
||||
|
static Page_muGetAcidMgr instance; |
||||
|
return &instance; |
||||
|
} |
||||
|
|
||||
|
private: |
||||
|
virtual bool isBelongThisPage(int page) override; |
||||
|
|
||||
|
virtual void OnPageLoad(OnPageLoadContext* cxt) override; |
||||
|
virtual void OnInputFieldContentChange(uint8_t bid, const char* text) override; |
||||
|
virtual void OnButton(uint8_t bid, uint8_t val) override; |
||||
|
}; |
||||
|
} // namespace iflytop
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue