Добавляем расширитель портов MCP23017

This commit is contained in:
2022-02-21 20:00:18 +03:00
parent 9fe7adb151
commit 5a96d39012
9 changed files with 119 additions and 18 deletions

View File

@@ -14,6 +14,7 @@ void* getAPI_GY21(String subtype, String params);
void* getAPI_Lcd2004(String subtype, String params);
void* getAPI_SysExt(String subtype, String params);
void* getAPI_Ads1115(String subtype, String params);
void* getAPI_Mcp23017(String subtype, String params);
//============================================================================================
void* getAPI(String subtype, String params) {
@@ -32,6 +33,7 @@ void* getAPI(String subtype, String params) {
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_SysExt(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Ads1115(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Mcp23017(subtype, params)) != nullptr) return tmpAPI;
//================================================================================================================
return nullptr;