mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-01 13:08:48 +00:00
Changing behaviour of battery driver (#697)
To provide Zero configuration for End User : - 2 new pins BAT_ADC and BAT_Relay - Autostart of driver if pins associated - change vdivider default value to 2.29 Seems like default for 2AA battery sensor
This commit is contained in:
@ -408,7 +408,7 @@ const char* htmlPinRoleNames[] = {
|
||||
"SM2135CLK",
|
||||
"BP5758D_DAT",
|
||||
"BP5758D_CLK",
|
||||
"BP1658CJ_DAT",
|
||||
"BP1658CJ_DAT",
|
||||
"BP1658CJ_CLK",
|
||||
"PWM_n",
|
||||
"IRRecv",
|
||||
@ -437,18 +437,18 @@ const char* htmlPinRoleNames[] = {
|
||||
"SoftSCL",
|
||||
"SM2235DAT",
|
||||
"SM2235CLK",
|
||||
"BridgeFWD",
|
||||
"BridgeREV",
|
||||
"Btn_SmartLED",
|
||||
"BridgeFWD",
|
||||
"BridgeREV",
|
||||
"Btn_SmartLED",
|
||||
"Btn_SmartLED_n",
|
||||
"DoorSnsrWSleep",
|
||||
"DoorSnsrWSleep_nPup",
|
||||
"error",
|
||||
"error",
|
||||
"BAT_ADC",
|
||||
"BAT_Relay",
|
||||
"error",
|
||||
};
|
||||
|
||||
const char *PIN_RoleToString(int role) {
|
||||
const char* PIN_RoleToString(int role) {
|
||||
return htmlPinRoleNames[role];
|
||||
}
|
||||
int PIN_ParsePinRoleName(const char* name) {
|
||||
|
||||
Reference in New Issue
Block a user