mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-10 18:55:26 +00:00
more commands, channel clamp option for commands
This commit is contained in:
@ -238,6 +238,16 @@ const char *htmlPinRoleNames[] = {
|
||||
"e",
|
||||
};
|
||||
|
||||
int PIN_ParsePinRoleName(const char *name) {
|
||||
int i;
|
||||
|
||||
for(i = 0; i < IOR_Total_Options; i++) {
|
||||
if(!stricmp(name,htmlPinRoleNames[i]))
|
||||
return i;
|
||||
}
|
||||
return IOR_Total_Options;
|
||||
}
|
||||
|
||||
void setupAllWB2SPinsAsButtons() {
|
||||
PIN_SetPinRoleForPinIndex(6,IOR_Button);
|
||||
PIN_SetPinChannelForPinIndex(6,1);
|
||||
|
||||
Reference in New Issue
Block a user