more commands, channel clamp option for commands

This commit is contained in:
openshwprojects
2022-04-23 18:07:00 +02:00
parent e54ccf4a19
commit 737ead3205
6 changed files with 163 additions and 45 deletions

View File

@ -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);