Добавляем ButtonOut

This commit is contained in:
2022-02-22 22:47:21 +03:00
parent 14ea31c705
commit 3a9775df5d
3 changed files with 77 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ 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_ButtonOut(String subtype, String params);
//============================================================================================
void* getAPI(String subtype, String params) {
@@ -34,6 +35,7 @@ void* getAPI(String subtype, String params) {
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;
if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
//================================================================================================================
return nullptr;