basic MCP23017 support (port exander), it's possible to map channels to MCP ports

This commit is contained in:
openshwprojects
2022-04-10 21:24:38 +02:00
parent 5f10a550cd
commit e51e288f59
8 changed files with 396 additions and 12 deletions

View File

@ -158,7 +158,7 @@ int http_fn_index(http_request_t *request) {
hprintf128(request,"Humidity Channel %i value %f Percent<br>",i, fValue);
} else if(BIT_CHECK(relayFlags,i)) {
} else if(BIT_CHECK(relayFlags,i) || channelType == ChType_Toggle) {
const char *c;
if(CHANNEL_Check(i)) {
c = "r";