From dfe434bb923ffbb0d0069f3803e2c1da8d36c0ef Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 18 Feb 2023 16:05:56 +0100 Subject: [PATCH] Prep MCP23xxx interrupt support --- tasmota/include/tasmota_template.h | 7 +++++++ tasmota/language/af_AF.h | 1 + tasmota/language/bg_BG.h | 1 + tasmota/language/ca_AD.h | 1 + tasmota/language/cs_CZ.h | 1 + tasmota/language/de_DE.h | 1 + tasmota/language/el_GR.h | 1 + tasmota/language/en_GB.h | 1 + tasmota/language/es_ES.h | 1 + tasmota/language/fr_FR.h | 1 + tasmota/language/fy_NL.h | 1 + tasmota/language/he_HE.h | 1 + tasmota/language/hu_HU.h | 1 + tasmota/language/it_IT.h | 1 + tasmota/language/ko_KO.h | 1 + tasmota/language/nl_NL.h | 1 + tasmota/language/pl_PL.h | 1 + tasmota/language/pt_BR.h | 1 + tasmota/language/pt_PT.h | 1 + tasmota/language/ro_RO.h | 1 + tasmota/language/ru_RU.h | 1 + tasmota/language/sk_SK.h | 1 + tasmota/language/sv_SE.h | 1 + tasmota/language/tr_TR.h | 1 + tasmota/language/uk_UA.h | 1 + tasmota/language/vi_VN.h | 1 + tasmota/language/zh_CN.h | 1 + tasmota/language/zh_TW.h | 1 + 28 files changed, 34 insertions(+) diff --git a/tasmota/include/tasmota_template.h b/tasmota/include/tasmota_template.h index 5dc854d01bba..aa1f982bfa76 100644 --- a/tasmota/include/tasmota_template.h +++ b/tasmota/include/tasmota_template.h @@ -206,6 +206,7 @@ enum UserSelectablePins { GPIO_ME007_TRIG, GPIO_ME007_RX, // ME007 Serial/Trigger interface GPIO_TUYAMCUBR_TX, GPIO_TUYAMCUBR_RX, // TuyaMCU Bridge GPIO_BIOPDU_PZEM0XX_TX, GPIO_BIOPDU_PZEM016_RX, GPIO_BIOPDU_BIT, // Biomine BioPDU 625x12 + GPIO_MCP23XXX_INT, // MCP23xxx INT GPIO_SENSOR_END }; // Error as warning to rethink GPIO usage with max 2045 @@ -459,6 +460,7 @@ const char kSensorNames[] PROGMEM = D_SENSOR_ME007_TRIG "|" D_SENSOR_ME007_RX "|" D_SENSOR_TUYAMCUBR_TX "|" D_SENSOR_TUYAMCUBR_RX "|" D_SENSOR_BIOPDU_PZEM0XX_TX "|" D_SENSOR_BIOPDU_PZEM016_RX "|" D_SENSOR_BIOPDU_BIT "|" + D_SENSOR_MCP23XXX_INT "|" ; const char kSensorNamesFixed[] PROGMEM = @@ -466,6 +468,7 @@ const char kSensorNamesFixed[] PROGMEM = // Max number of GPIOs #define MAX_MAX31865S 6 +#define MAX_MCP23XXX 4 #define MAX_FLOWRATEMETER 2 #define MAX_A4988_MSS 3 #define MAX_WEBCAM_DATA 8 @@ -676,6 +679,10 @@ const uint16_t kGpioNiceList[] PROGMEM = { AGPIO(GPIO_SSPI_MAX31865_CS1) + MAX_MAX31865S, #endif +#ifdef USE_MCP23XXX_DRV + AGPIO(GPIO_MCP23XXX_INT) + MAX_MCP23XXX, +#endif + AGPIO(GPIO_TXD), // Serial interface AGPIO(GPIO_RXD), // Serial interface diff --git a/tasmota/language/af_AF.h b/tasmota/language/af_AF.h index 91898f7a75e6..775225aa9d9a 100644 --- a/tasmota/language/af_AF.h +++ b/tasmota/language/af_AF.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/bg_BG.h b/tasmota/language/bg_BG.h index db2b69eac67d..0773fdca823d 100644 --- a/tasmota/language/bg_BG.h +++ b/tasmota/language/bg_BG.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/ca_AD.h b/tasmota/language/ca_AD.h index 754f4dee31b0..9c40595270b6 100644 --- a/tasmota/language/ca_AD.h +++ b/tasmota/language/ca_AD.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/cs_CZ.h b/tasmota/language/cs_CZ.h index 8fe0507c7494..2fbd249e71b6 100644 --- a/tasmota/language/cs_CZ.h +++ b/tasmota/language/cs_CZ.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/de_DE.h b/tasmota/language/de_DE.h index 83b6857423c4..c8e12703cc1c 100644 --- a/tasmota/language/de_DE.h +++ b/tasmota/language/de_DE.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Puls" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/el_GR.h b/tasmota/language/el_GR.h index 3c5ed60c6be8..20f08390f95c 100644 --- a/tasmota/language/el_GR.h +++ b/tasmota/language/el_GR.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/en_GB.h b/tasmota/language/en_GB.h index 8071fe613f81..21ec9c0b08ac 100644 --- a/tasmota/language/en_GB.h +++ b/tasmota/language/en_GB.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/es_ES.h b/tasmota/language/es_ES.h index 9f6f5b351a18..d584a7d54210 100644 --- a/tasmota/language/es_ES.h +++ b/tasmota/language/es_ES.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "Cruce por cero" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/fr_FR.h b/tasmota/language/fr_FR.h index 1657e5fdb67a..5e52bdc6b17b 100644 --- a/tasmota/language/fr_FR.h +++ b/tasmota/language/fr_FR.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/fy_NL.h b/tasmota/language/fy_NL.h index a3d15372c702..9166433c5628 100644 --- a/tasmota/language/fy_NL.h +++ b/tasmota/language/fy_NL.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/he_HE.h b/tasmota/language/he_HE.h index 670c7d0df65e..5d03130d0a23 100644 --- a/tasmota/language/he_HE.h +++ b/tasmota/language/he_HE.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/hu_HU.h b/tasmota/language/hu_HU.h index f2c6d03fef0d..dd3568f2f582 100644 --- a/tasmota/language/hu_HU.h +++ b/tasmota/language/hu_HU.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/it_IT.h b/tasmota/language/it_IT.h index cd084b993eb7..c714877c63ab 100644 --- a/tasmota/language/it_IT.h +++ b/tasmota/language/it_IT.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "Impulsi ZC" #define D_SENSOR_HALLEFFECT "Effetto hall" #define D_SENSOR_EPD_DATA "EPD - Dati" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX - INT" #define D_SENSOR_MCP2515_CS "MCP2515 - CS" #define D_SENSOR_HRG15_RX "HRG15 - RX" #define D_SENSOR_HRG15_TX "HRG15 - TX" diff --git a/tasmota/language/ko_KO.h b/tasmota/language/ko_KO.h index 9047b95c5e10..3ba8161728bf 100644 --- a/tasmota/language/ko_KO.h +++ b/tasmota/language/ko_KO.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/nl_NL.h b/tasmota/language/nl_NL.h index 69bead33e38f..4f98daabd430 100644 --- a/tasmota/language/nl_NL.h +++ b/tasmota/language/nl_NL.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/pl_PL.h b/tasmota/language/pl_PL.h index c8f2cd71c2c5..1870701c3d11 100644 --- a/tasmota/language/pl_PL.h +++ b/tasmota/language/pl_PL.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "Efekt Halla" #define D_SENSOR_EPD_DATA "EPD Dane" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/pt_BR.h b/tasmota/language/pt_BR.h index 7152da31d63a..893bd6d81c5f 100644 --- a/tasmota/language/pt_BR.h +++ b/tasmota/language/pt_BR.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "Efeito Hall" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/pt_PT.h b/tasmota/language/pt_PT.h index df69b7c1c373..987d4c7acb0c 100644 --- a/tasmota/language/pt_PT.h +++ b/tasmota/language/pt_PT.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "Efeito Hall" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/ro_RO.h b/tasmota/language/ro_RO.h index b7427a821b2c..d2f3424a6a38 100644 --- a/tasmota/language/ro_RO.h +++ b/tasmota/language/ro_RO.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/ru_RU.h b/tasmota/language/ru_RU.h index 02e0851dcb8e..2213c198f855 100644 --- a/tasmota/language/ru_RU.h +++ b/tasmota/language/ru_RU.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/sk_SK.h b/tasmota/language/sk_SK.h index 79212a44aca3..544a735ce792 100644 --- a/tasmota/language/sk_SK.h +++ b/tasmota/language/sk_SK.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/sv_SE.h b/tasmota/language/sv_SE.h index 2bc09f43478a..cbf988d31467 100644 --- a/tasmota/language/sv_SE.h +++ b/tasmota/language/sv_SE.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/tr_TR.h b/tasmota/language/tr_TR.h index 2b4b962f5af4..456ae8497d5b 100644 --- a/tasmota/language/tr_TR.h +++ b/tasmota/language/tr_TR.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/uk_UA.h b/tasmota/language/uk_UA.h index a45664b64fdf..8cbbeedff337 100644 --- a/tasmota/language/uk_UA.h +++ b/tasmota/language/uk_UA.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/vi_VN.h b/tasmota/language/vi_VN.h index 2c85c22e142e..5061c63b463a 100644 --- a/tasmota/language/vi_VN.h +++ b/tasmota/language/vi_VN.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/zh_CN.h b/tasmota/language/zh_CN.h index 7baa2711da67..dbc694d6c881 100644 --- a/tasmota/language/zh_CN.h +++ b/tasmota/language/zh_CN.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx" diff --git a/tasmota/language/zh_TW.h b/tasmota/language/zh_TW.h index 77de2a6f067c..76ec48fa6389 100644 --- a/tasmota/language/zh_TW.h +++ b/tasmota/language/zh_TW.h @@ -895,6 +895,7 @@ #define D_SENSOR_ZEROCROSS "ZC Pulse" #define D_SENSOR_HALLEFFECT "HallEffect" #define D_SENSOR_EPD_DATA "EPD Data" +#define D_SENSOR_MCP23XXX_INT "MCP23XXX INT" #define D_SENSOR_MCP2515_CS "MCP2515 CS" #define D_SENSOR_HRG15_RX "HRG15 Rx" #define D_SENSOR_HRG15_TX "HRG15 Tx"