From 4395a19fe6527dd802b395549f86efbcd666781b Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 21 Apr 2021 10:05:10 +0200 Subject: [PATCH] Add ``Input`` GPIO type with no default action, to be read via Berry --- CHANGELOG.md | 3 +- lib/libesp32/Berry/default/be_gpio_lib.c | 8 +- lib/libesp32/Berry/generate/be_const_strtab.h | 1 + .../Berry/generate/be_const_strtab_def.h | 5 +- lib/libesp32/Berry/generate/be_fixed_gpio.h | 507 +++++++++--------- tasmota/language/af_AF.h | 1 + tasmota/language/bg_BG.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 + tasmota/tasmota_template.h | 5 + 32 files changed, 297 insertions(+), 258 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 625d3fb63..9fe09c94b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ All notable changes to this project will be documented in this file. ## [9.3.1.4] ### Added - Command ``TuyaTempSetRes 0..3`` to control Tuya Temperature Set Resolution (#11781) -- ESP32 support for LVGL 7.11 with Berry binding by Stefan Hadinger (#11789) +- ESP32 support for LVGL 7.11 with Berry binding by Stephan Hadinger (#11789) +- Add ``Input`` GPIO type with no default action, to be read via Berry ## [9.3.1.3] 20210419 ### Added diff --git a/lib/libesp32/Berry/default/be_gpio_lib.c b/lib/libesp32/Berry/default/be_gpio_lib.c index 2ac789b81..1aa4cc771 100644 --- a/lib/libesp32/Berry/default/be_gpio_lib.c +++ b/lib/libesp32/Berry/default/be_gpio_lib.c @@ -274,7 +274,9 @@ be_native_module_attr_table(gpio) { be_native_module_int("TFMINIPLUS_RX", 235), be_native_module_int("ZEROCROSS", 236), be_native_module_int("HALLEFFECT", 237), - be_native_module_int("SENSOR_END", 238), + be_native_module_int("EPD_DATA", 238), + be_native_module_int("INPUT", 239), + be_native_module_int("SENSOR_END", 240), be_native_module_function("pin_mode", gp_pin_mode), be_native_module_function("digital_write", gp_digital_write), @@ -543,7 +545,9 @@ module gpio (scope: global, depend: BE_USE_TASMOTA) { TFMINIPLUS_RX, int(235) ZEROCROSS, int(236) HALLEFFECT, int(237) - SENSOR_END, int(238) + EPD_DATA, int(238) + INPUT, int(239) + SENSOR_END, int(240) pin_mode, func(gp_pin_mode) digital_write, func(gp_digital_write) diff --git a/lib/libesp32/Berry/generate/be_const_strtab.h b/lib/libesp32/Berry/generate/be_const_strtab.h index 3a252aad0..5b083c19e 100644 --- a/lib/libesp32/Berry/generate/be_const_strtab.h +++ b/lib/libesp32/Berry/generate/be_const_strtab.h @@ -1087,6 +1087,7 @@ extern const bcstring be_const_str_NEOPOOL_TX; extern const bcstring be_const_str_FS_RES_HW_ERR; extern const bcstring be_const_str_get_style_value_opa; extern const bcstring be_const_str_get_one_check; +extern const bcstring be_const_str_EPD_DATA; extern const bcstring be_const_str_I2C; extern const bcstring be_const_str_get_cursor_point; extern const bcstring be_const_str_FS_MODE_WR; diff --git a/lib/libesp32/Berry/generate/be_const_strtab_def.h b/lib/libesp32/Berry/generate/be_const_strtab_def.h index 4dc8d64db..aea00d40e 100644 --- a/lib/libesp32/Berry/generate/be_const_strtab_def.h +++ b/lib/libesp32/Berry/generate/be_const_strtab_def.h @@ -1087,6 +1087,7 @@ be_define_const_str(NEOPOOL_TX, "NEOPOOL_TX", 2924925804u, 0, 10, NULL); be_define_const_str(FS_RES_HW_ERR, "FS_RES_HW_ERR", 1676324085u, 0, 13, NULL); be_define_const_str(get_style_value_opa, "get_style_value_opa", 1671026074u, 0, 19, NULL); be_define_const_str(get_one_check, "get_one_check", 2649478907u, 0, 13, NULL); +be_define_const_str(EPD_DATA, "EPD_DATA", 3799141097u, 0, 8, &be_const_str_I2C); be_define_const_str(I2C, "I2C", 4096783347u, 0, 3, &be_const_str_get_cursor_point); be_define_const_str(get_cursor_point, "get_cursor_point", 2365780231u, 0, 16, NULL); be_define_const_str(FS_MODE_WR, "FS_MODE_WR", 2839601832u, 0, 10, &be_const_str_STATE_EDITED); @@ -2156,7 +2157,7 @@ static const bstring* const m_string_table[] = { (const bstring *)&be_const_str_get_style_value_opa, (const bstring *)&be_const_str_get_one_check, NULL, - (const bstring *)&be_const_str_I2C, + (const bstring *)&be_const_str_EPD_DATA, (const bstring *)&be_const_str_FS_MODE_WR, (const bstring *)&be_const_str_set_cursor_point, (const bstring *)&be_const_str_del_anim_ready_cb, @@ -2431,6 +2432,6 @@ static const bstring* const m_string_table[] = { static const struct bconststrtab m_const_string_table = { .size = 802, - .count = 1604, + .count = 1605, .table = m_string_table }; diff --git a/lib/libesp32/Berry/generate/be_fixed_gpio.h b/lib/libesp32/Berry/generate/be_fixed_gpio.h index 174f68c5a..480e53d40 100644 --- a/lib/libesp32/Berry/generate/be_fixed_gpio.h +++ b/lib/libesp32/Berry/generate/be_fixed_gpio.h @@ -1,268 +1,269 @@ #include "be_constobj.h" static be_define_const_map_slots(m_libgpio_map) { - { be_const_key(HALLEFFECT, -1), be_const_int(237) }, - { be_const_key(PULLDOWN, -1), be_const_int(8) }, - { be_const_key(RXD, -1), be_const_int(101) }, - { be_const_key(ETH_PHY_POWER, -1), be_const_int(173) }, - { be_const_key(digital_write, -1), be_const_func(gp_digital_write) }, - { be_const_key(A4988_ENA, -1), be_const_int(118) }, - { be_const_key(ST7789_CS, 12), be_const_int(206) }, - { be_const_key(FALLING, -1), be_const_int(2) }, - { be_const_key(WIEGAND_D1, -1), be_const_int(217) }, - { be_const_key(I2C_SCL, -1), be_const_int(19) }, - { be_const_key(PZEM0XX_TX, -1), be_const_int(46) }, - { be_const_key(KEY1_INV_NP, -1), be_const_int(4) }, - { be_const_key(WEBCAM_HREF, -1), be_const_int(161) }, - { be_const_key(ROT1A_NP, -1), be_const_int(211) }, - { be_const_key(SOLAXX1_TX, 10), be_const_int(109) }, - { be_const_key(KEY1_TC, 169), be_const_int(169) }, - { be_const_key(DDSU666_RX, -1), be_const_int(125) }, - { be_const_key(NRG_SEL, -1), be_const_int(81) }, - { be_const_key(DCKI, 71), be_const_int(95) }, - { be_const_key(NRF24_CS, -1), be_const_int(197) }, - { be_const_key(PWM1_INV, -1), be_const_int(14) }, - { be_const_key(TM1637DIO, 199), be_const_int(223) }, - { be_const_key(CC1101_GDO0, -1), be_const_int(142) }, - { be_const_key(MAX7219CLK, 87), be_const_int(231) }, - { be_const_key(ADC_JOY, -1), be_const_int(104) }, - { be_const_key(SSPI_CS, -1), be_const_int(29) }, - { be_const_key(OUTPUT_LO, -1), be_const_int(121) }, - { be_const_key(WEBCAM_VSYNC, 233), be_const_int(160) }, - { be_const_key(ZIGBEE_RX, -1), be_const_int(112) }, - { be_const_key(TASMOTACLIENT_RST, -1), be_const_int(132) }, - { be_const_key(SDM72_RX, -1), be_const_int(221) }, - { be_const_key(SSD1351_DC, -1), be_const_int(226) }, - { be_const_key(MHZ_TXD, -1), be_const_int(44) }, - { be_const_key(TFMINIPLUS_RX, -1), be_const_int(235) }, - { be_const_key(TM1637CLK, 18), be_const_int(222) }, - { be_const_key(PMS5003_RX, 250), be_const_int(53) }, - { be_const_key(ZEROCROSS, 111), be_const_int(236) }, - { be_const_key(TCP_RX, -1), be_const_int(172) }, - { be_const_key(SWT1_NP, -1), be_const_int(6) }, - { be_const_key(ADC_LIGHT, -1), be_const_int(149) }, - { be_const_key(SENSOR_END, -1), be_const_int(238) }, - { be_const_key(TM1638CLK, -1), be_const_int(64) }, - { be_const_key(SDM630_RX, -1), be_const_int(63) }, - { be_const_key(CSE7761_RX, -1), be_const_int(229) }, - { be_const_key(OUTPUT_OPEN_DRAIN, 30), be_const_int(18) }, - { be_const_key(SI7021, -1), be_const_int(39) }, - { be_const_key(LMT01, -1), be_const_int(178) }, - { be_const_key(RFRECV, -1), be_const_int(36) }, - { be_const_key(SSD1351_CS, -1), be_const_int(204) }, - { be_const_key(NRG_SEL_INV, -1), be_const_int(82) }, - { be_const_key(HRXL_RX, 38), be_const_int(144) }, - { be_const_key(KEY1, -1), be_const_int(1) }, - { be_const_key(SR04_TRIG, -1), be_const_int(58) }, - { be_const_key(SBR_TX, 183), be_const_int(56) }, - { be_const_key(PROJECTOR_CTRL_TX, 35), be_const_int(224) }, - { be_const_key(WEBCAM_XCLK, 167), be_const_int(156) }, - { be_const_key(SM2135_CLK, 205), be_const_int(126) }, - { be_const_key(HPMA_RX, 112), be_const_int(134) }, - { be_const_key(IRSEND, -1), be_const_int(33) }, - { be_const_key(NRG_CF1, -1), be_const_int(83) }, - { be_const_key(SPI_CLK, -1), be_const_int(23) }, - { be_const_key(CNTR1_NP, -1), be_const_int(12) }, - { be_const_key(ADE7953_IRQ, -1), be_const_int(108) }, - { be_const_key(MAX7219CS, -1), be_const_int(233) }, - { be_const_key(LEDLNK, 229), be_const_int(17) }, - { be_const_key(SHELLY_DIMMER_BOOT0, -1), be_const_int(189) }, - { be_const_key(WE517_TX, 82), be_const_int(185) }, - { be_const_key(SDM120_RX, -1), be_const_int(61) }, - { be_const_key(WEBCAM_PSRCS, -1), be_const_int(165) }, - { be_const_key(SDS0X1_TX, 81), be_const_int(54) }, - { be_const_key(A4988_MS1, 102), be_const_int(119) }, - { be_const_key(REL1, 89), be_const_int(7) }, - { be_const_key(OLED_RESET, -1), be_const_int(32) }, - { be_const_key(PROJECTOR_CTRL_RX, -1), be_const_int(225) }, - { be_const_key(ARIRFSEL, 59), be_const_int(99) }, - { be_const_key(SDM630_TX, 160), be_const_int(62) }, - { be_const_key(ZIGBEE_TX, -1), be_const_int(111) }, - { be_const_key(ARIRFRCV, 222), be_const_int(98) }, - { be_const_key(CSE7766_TX, 21), be_const_int(96) }, - { be_const_key(LED1_INV, 132), be_const_int(10) }, - { be_const_key(TASMOTACLIENT_RXD, -1), be_const_int(131) }, - { be_const_key(ETH_PHY_MDIO, -1), be_const_int(175) }, - { be_const_key(NEOPOOL_TX, -1), be_const_int(218) }, - { be_const_key(MAX7219DIN, -1), be_const_int(232) }, - { be_const_key(INPUT, -1), be_const_int(1) }, - { be_const_key(IEM3000_TX, 11), be_const_int(179) }, - { be_const_key(pin_used, 127), be_const_func(gp_pin_used) }, - { be_const_key(IBEACON_RX, 7), be_const_int(115) }, - { be_const_key(TCP_TX, 86), be_const_int(171) }, - { be_const_key(WS2812, -1), be_const_int(43) }, - { be_const_key(SM2135_DAT, 246), be_const_int(127) }, - { be_const_key(DDS2382_TX, -1), be_const_int(122) }, - { be_const_key(SDM120_TX, 52), be_const_int(60) }, - { be_const_key(WEBCAM_DATA, -1), be_const_int(159) }, - { be_const_key(PN532_RXD, -1), be_const_int(90) }, - { be_const_key(HX711_SCK, -1), be_const_int(68) }, - { be_const_key(pin, 68), be_const_func(gp_pin) }, - { be_const_key(HM10_RX, 245), be_const_int(138) }, - { be_const_key(DHT11_OUT, -1), be_const_int(40) }, - { be_const_key(IBEACON_TX, 103), be_const_int(114) }, - { be_const_key(GPS_TX, 239), be_const_int(137) }, - { be_const_key(WINDMETER_SPEED, 215), be_const_int(168) }, - { be_const_key(WIEGAND_D0, 231), be_const_int(216) }, - { be_const_key(REL1_INV, -1), be_const_int(8) }, - { be_const_key(RISING, -1), be_const_int(1) }, - { be_const_key(GPS_RX, -1), be_const_int(136) }, - { be_const_key(INPUT_PULLUP, -1), be_const_int(5) }, - { be_const_key(BOILER_OT_TX, -1), be_const_int(167) }, - { be_const_key(PN532_TXD, -1), be_const_int(89) }, - { be_const_key(AS608_TX, -1), be_const_int(187) }, - { be_const_key(VL53L0X_XSHUT1, -1), be_const_int(230) }, - { be_const_key(PULLUP, -1), be_const_int(4) }, - { be_const_key(BS814_CLK, 77), be_const_int(214) }, - { be_const_key(HJL_CF, -1), be_const_int(85) }, - { be_const_key(KEY1_INV, -1), be_const_int(3) }, - { be_const_key(OPTION_A, -1), be_const_int(194) }, - { be_const_key(OPEN_DRAIN, 210), be_const_int(16) }, - { be_const_key(SPI_DC, -1), be_const_int(25) }, - { be_const_key(TM1638DIO, 185), be_const_int(65) }, - { be_const_key(TASMOTACLIENT_RST_INV, 134), be_const_int(133) }, - { be_const_key(BUZZER_INV, -1), be_const_int(16) }, - { be_const_key(RC522_RST, -1), be_const_int(191) }, - { be_const_key(DYP_RX, -1), be_const_int(182) }, - { be_const_key(MCP39F5_TX, 57), be_const_int(86) }, - { be_const_key(IEM3000_RX, -1), be_const_int(180) }, - { be_const_key(SSD1331_CS, -1), be_const_int(208) }, - { be_const_key(HRE_DATA, 36), be_const_int(107) }, - { be_const_key(MIEL_HVAC_RX, -1), be_const_int(184) }, - { be_const_key(RA8876_CS, 176), be_const_int(205) }, - { be_const_key(OUTPUT_HI, 70), be_const_int(120) }, - { be_const_key(SPI_MISO, 27), be_const_int(21) }, - { be_const_key(WEBCAM_PCLK, 33), be_const_int(162) }, - { be_const_key(INPUT_PULLDOWN, 105), be_const_int(9) }, - { be_const_key(SPI_CS, 124), be_const_int(24) }, - { be_const_key(BS814_DAT, 218), be_const_int(215) }, - { be_const_key(ADC_BUTTON, -1), be_const_int(150) }, - { be_const_key(MAX31855CS, 110), be_const_int(78) }, - { be_const_key(BUZZER, -1), be_const_int(15) }, - { be_const_key(ZIGBEE_RST, -1), be_const_int(181) }, - { be_const_key(MGC3130_RESET, 63), be_const_int(74) }, - { be_const_key(ILI9341_DC, 53), be_const_int(200) }, - { be_const_key(ELECTRIQ_MOODL_TX, -1), be_const_int(145) }, { be_const_key(MAX31855CLK, -1), be_const_int(79) }, - { be_const_key(AZ_TXD, 203), be_const_int(76) }, - { be_const_key(DEEPSLEEP, -1), be_const_int(128) }, - { be_const_key(SDS0X1_RX, 83), be_const_int(55) }, - { be_const_key(SSPI_MISO, -1), be_const_int(26) }, - { be_const_key(ST7789_DC, 48), be_const_int(207) }, - { be_const_key(ILI9488_CS, -1), be_const_int(201) }, - { be_const_key(HX711_DAT, -1), be_const_int(69) }, - { be_const_key(SM16716_SEL, -1), be_const_int(93) }, - { be_const_key(CNTR1, 224), be_const_int(11) }, - { be_const_key(ADC_BUTTON_INV, -1), be_const_int(151) }, - { be_const_key(NONE, 206), be_const_int(0) }, - { be_const_key(SDM72_TX, -1), be_const_int(220) }, - { be_const_key(BOILER_OT_RX, -1), be_const_int(166) }, - { be_const_key(BL0940_RX, 116), be_const_int(170) }, - { be_const_key(ROT1B, 148), be_const_int(103) }, - { be_const_key(AS608_RX, 104), be_const_int(188) }, - { be_const_key(LE01MR_TX, -1), be_const_int(141) }, - { be_const_key(FTC532, -1), be_const_int(195) }, - { be_const_key(WEBCAM_SIOD, 220), be_const_int(157) }, - { be_const_key(CSE7761_TX, 164), be_const_int(228) }, - { be_const_key(SSPI_SCLK, -1), be_const_int(28) }, - { be_const_key(DDSU666_TX, -1), be_const_int(124) }, - { be_const_key(ADC_RANGE, -1), be_const_int(152) }, - { be_const_key(SDCARD_CS, -1), be_const_int(210) }, - { be_const_key(CC1101_GDO2, 234), be_const_int(143) }, - { be_const_key(A4988_DIR, -1), be_const_int(116) }, - { be_const_key(DDS2382_RX, -1), be_const_int(123) }, - { be_const_key(PMS5003_TX, -1), be_const_int(52) }, - { be_const_key(SM16716_CLK, -1), be_const_int(91) }, - { be_const_key(ILI9341_CS, -1), be_const_int(199) }, - { be_const_key(KEY1_NP, 122), be_const_int(2) }, - { be_const_key(NRF24_DC, -1), be_const_int(198) }, - { be_const_key(SR04_ECHO, -1), be_const_int(59) }, - { be_const_key(A4988_STP, -1), be_const_int(117) }, - { be_const_key(ADC_TEMP, -1), be_const_int(148) }, - { be_const_key(PZEM016_RX, 247), be_const_int(48) }, - { be_const_key(NEOPOOL_RX, 5), be_const_int(219) }, - { be_const_key(MP3_DFR562, -1), be_const_int(67) }, - { be_const_key(HRE_CLOCK, -1), be_const_int(106) }, - { be_const_key(pin_mode, 152), be_const_func(gp_pin_mode) }, - { be_const_key(EXS_ENABLE, -1), be_const_int(129) }, - { be_const_key(TELEINFO_RX, 29), be_const_int(176) }, - { be_const_key(I2C_SDA, 253), be_const_int(20) }, - { be_const_key(DI, -1), be_const_int(94) }, - { be_const_key(LED1, -1), be_const_int(9) }, - { be_const_key(SBR_RX, -1), be_const_int(57) }, - { be_const_key(DHT11, 118), be_const_int(37) }, - { be_const_key(TASMOTACLIENT_TXD, -1), be_const_int(130) }, - { be_const_key(AS3935, 49), be_const_int(146) }, - { be_const_key(PWM1, 212), be_const_int(13) }, - { be_const_key(SWT1, -1), be_const_int(5) }, - { be_const_key(RF_SENSOR, -1), be_const_int(75) }, - { be_const_key(EPAPER29_CS, 154), be_const_int(202) }, - { be_const_key(WEBCAM_RESET, 153), be_const_int(155) }, - { be_const_key(TELEINFO_ENABLE, 3), be_const_int(177) }, - { be_const_key(HPMA_TX, 73), be_const_int(135) }, - { be_const_key(DHT22, -1), be_const_int(38) }, - { be_const_key(TUYA_RX, 72), be_const_int(72) }, - { be_const_key(PZEM017_RX, -1), be_const_int(49) }, - { be_const_key(LEDLNK_INV, -1), be_const_int(18) }, - { be_const_key(MCP39F5_RX, -1), be_const_int(87) }, - { be_const_key(SPI_MOSI, -1), be_const_int(22) }, - { be_const_key(digital_read, 61), be_const_func(gp_digital_read) }, - { be_const_key(HIGH, -1), be_const_int(1) }, - { be_const_key(LE01MR_RX, 230), be_const_int(140) }, - { be_const_key(XPT2046_CS, -1), be_const_int(227) }, - { be_const_key(SSPI_MOSI, -1), be_const_int(27) }, - { be_const_key(SSD1331_DC, -1), be_const_int(209) }, - { be_const_key(MAX31855DO, -1), be_const_int(80) }, - { be_const_key(WE517_RX, -1), be_const_int(186) }, - { be_const_key(MIEL_HVAC_TX, -1), be_const_int(183) }, - { be_const_key(LOW, 37), be_const_int(0) }, - { be_const_key(RFSEND, -1), be_const_int(35) }, - { be_const_key(SM16716_DAT, -1), be_const_int(92) }, - { be_const_key(RDM6300_RX, -1), be_const_int(113) }, - { be_const_key(ADC_CT_POWER, 209), be_const_int(153) }, - { be_const_key(AZ_RXD, 135), be_const_int(77) }, - { be_const_key(PZEM004_RX, -1), be_const_int(47) }, - { be_const_key(DSB_OUT, -1), be_const_int(42) }, - { be_const_key(ADC_INPUT, -1), be_const_int(147) }, - { be_const_key(SOLAXX1_RX, 67), be_const_int(110) }, - { be_const_key(P9813_CLK, -1), be_const_int(192) }, - { be_const_key(HLW_CF, 162), be_const_int(84) }, - { be_const_key(BACKLIGHT, 42), be_const_int(31) }, - { be_const_key(CHANGE, -1), be_const_int(4) }, - { be_const_key(TXD, -1), be_const_int(100) }, - { be_const_key(EPAPER42_CS, -1), be_const_int(203) }, - { be_const_key(TFMINIPLUS_TX, 244), be_const_int(234) }, - { be_const_key(OUTPUT, -1), be_const_int(2) }, - { be_const_key(MCP39F5_RST, 168), be_const_int(88) }, - { be_const_key(TM1638STB, -1), be_const_int(66) }, - { be_const_key(WEBCAM_HSD, -1), be_const_int(164) }, - { be_const_key(SAIR_TX, 56), be_const_int(50) }, - { be_const_key(ROT1A, -1), be_const_int(102) }, + { be_const_key(DHT11_OUT, 197), be_const_int(40) }, + { be_const_key(PZEM004_RX, 113), be_const_int(47) }, + { be_const_key(BS814_DAT, 115), be_const_int(215) }, { be_const_key(ROT1B_NP, -1), be_const_int(212) }, - { be_const_key(RC522_CS, -1), be_const_int(196) }, - { be_const_key(IRRECV, -1), be_const_int(34) }, - { be_const_key(CSE7766_RX, 41), be_const_int(97) }, - { be_const_key(HM10_TX, 8), be_const_int(139) }, + { be_const_key(WEBCAM_HREF, -1), be_const_int(161) }, + { be_const_key(SPI_CLK, 233), be_const_int(23) }, + { be_const_key(TCP_TX, -1), be_const_int(171) }, + { be_const_key(SM16716_DAT, 72), be_const_int(92) }, + { be_const_key(AZ_RXD, 136), be_const_int(77) }, + { be_const_key(PWM1, -1), be_const_int(13) }, + { be_const_key(EXS_ENABLE, -1), be_const_int(129) }, + { be_const_key(ETH_PHY_POWER, -1), be_const_int(173) }, + { be_const_key(HIGH, -1), be_const_int(1) }, + { be_const_key(ETH_PHY_MDIO, -1), be_const_int(175) }, + { be_const_key(MP3_DFR562, 11), be_const_int(67) }, + { be_const_key(HM10_RX, -1), be_const_int(138) }, + { be_const_key(SSPI_MOSI, -1), be_const_int(27) }, + { be_const_key(KEY1_INV_NP, -1), be_const_int(4) }, + { be_const_key(NONE, -1), be_const_int(0) }, + { be_const_key(DDS2382_RX, 18), be_const_int(123) }, + { be_const_key(DSB_OUT, -1), be_const_int(42) }, + { be_const_key(FTC532, -1), be_const_int(195) }, + { be_const_key(ARIRFSEL, 222), be_const_int(99) }, + { be_const_key(pin, -1), be_const_func(gp_pin) }, + { be_const_key(RFRECV, -1), be_const_int(36) }, + { be_const_key(HRXL_RX, -1), be_const_int(144) }, + { be_const_key(HRE_CLOCK, -1), be_const_int(106) }, + { be_const_key(AS608_RX, -1), be_const_int(188) }, + { be_const_key(SDS0X1_TX, -1), be_const_int(54) }, + { be_const_key(TM1637DIO, 112), be_const_int(223) }, + { be_const_key(ILI9488_CS, 138), be_const_int(201) }, + { be_const_key(WEBCAM_VSYNC, 184), be_const_int(160) }, + { be_const_key(TASMOTACLIENT_RST, 224), be_const_int(132) }, + { be_const_key(INPUT, 57), be_const_int(239) }, + { be_const_key(SBR_TX, -1), be_const_int(56) }, + { be_const_key(HPMA_TX, -1), be_const_int(135) }, + { be_const_key(MCP39F5_RX, 41), be_const_int(87) }, + { be_const_key(OUTPUT, 69), be_const_int(2) }, + { be_const_key(AZ_TXD, -1), be_const_int(76) }, + { be_const_key(ADC_BUTTON, -1), be_const_int(150) }, { be_const_key(ETH_PHY_MDC, -1), be_const_int(174) }, - { be_const_key(ADC_PH, -1), be_const_int(213) }, - { be_const_key(WEBCAM_SIOC, 242), be_const_int(158) }, + { be_const_key(ZEROCROSS, -1), be_const_int(236) }, + { be_const_key(AS3935, 147), be_const_int(146) }, { be_const_key(SSPI_MAX31865_CS1, -1), be_const_int(105) }, - { be_const_key(WEBCAM_PSCLK, -1), be_const_int(163) }, - { be_const_key(P9813_DAT, -1), be_const_int(193) }, - { be_const_key(TUYA_TX, -1), be_const_int(71) }, - { be_const_key(WEBCAM_PWDN, -1), be_const_int(154) }, - { be_const_key(SAIR_RX, -1), be_const_int(51) }, - { be_const_key(SSPI_DC, -1), be_const_int(30) }, - { be_const_key(MHZ_RXD, 138), be_const_int(45) }, - { be_const_key(TX2X_TXD_BLACK, -1), be_const_int(70) }, - { be_const_key(MGC3130_XFER, 144), be_const_int(73) }, - { be_const_key(DSB, 94), be_const_int(41) }, + { be_const_key(LEDLNK_INV, 56), be_const_int(18) }, + { be_const_key(RDM6300_RX, -1), be_const_int(113) }, + { be_const_key(TM1638STB, -1), be_const_int(66) }, + { be_const_key(SR04_TRIG, 166), be_const_int(58) }, + { be_const_key(CSE7761_RX, -1), be_const_int(229) }, + { be_const_key(HM10_TX, -1), be_const_int(139) }, + { be_const_key(SM16716_CLK, 111), be_const_int(91) }, + { be_const_key(ADC_TEMP, 120), be_const_int(148) }, + { be_const_key(NRG_SEL_INV, -1), be_const_int(82) }, + { be_const_key(OPEN_DRAIN, -1), be_const_int(16) }, + { be_const_key(ST7789_DC, 196), be_const_int(207) }, + { be_const_key(INPUT_PULLDOWN, 122), be_const_int(9) }, + { be_const_key(SM2135_CLK, 219), be_const_int(126) }, + { be_const_key(WEBCAM_PSCLK, 32), be_const_int(163) }, + { be_const_key(ADC_CT_POWER, 82), be_const_int(153) }, + { be_const_key(OUTPUT_OPEN_DRAIN, -1), be_const_int(18) }, + { be_const_key(CC1101_GDO2, -1), be_const_int(143) }, + { be_const_key(SM2135_DAT, 28), be_const_int(127) }, + { be_const_key(digital_write, -1), be_const_func(gp_digital_write) }, + { be_const_key(GPS_TX, 68), be_const_int(137) }, + { be_const_key(TFMINIPLUS_RX, -1), be_const_int(235) }, + { be_const_key(RC522_CS, -1), be_const_int(196) }, + { be_const_key(PMS5003_TX, -1), be_const_int(52) }, + { be_const_key(DDS2382_TX, -1), be_const_int(122) }, + { be_const_key(IEM3000_RX, 133), be_const_int(180) }, + { be_const_key(ZIGBEE_RX, -1), be_const_int(112) }, + { be_const_key(ZIGBEE_RST, -1), be_const_int(181) }, + { be_const_key(HPMA_RX, -1), be_const_int(134) }, + { be_const_key(SDS0X1_RX, -1), be_const_int(55) }, + { be_const_key(WEBCAM_RESET, -1), be_const_int(155) }, + { be_const_key(CNTR1, 249), be_const_int(11) }, + { be_const_key(ADC_LIGHT, 231), be_const_int(149) }, + { be_const_key(HRE_DATA, 34), be_const_int(107) }, + { be_const_key(OUTPUT_HI, -1), be_const_int(120) }, + { be_const_key(LED1_INV, 176), be_const_int(10) }, + { be_const_key(LMT01, -1), be_const_int(178) }, + { be_const_key(DSB, -1), be_const_int(41) }, + { be_const_key(CSE7766_RX, -1), be_const_int(97) }, + { be_const_key(SBR_RX, -1), be_const_int(57) }, + { be_const_key(PROJECTOR_CTRL_TX, 148), be_const_int(224) }, + { be_const_key(DI, 211), be_const_int(94) }, + { be_const_key(PZEM0XX_TX, -1), be_const_int(46) }, + { be_const_key(SENSOR_END, -1), be_const_int(240) }, + { be_const_key(A4988_ENA, 97), be_const_int(118) }, + { be_const_key(WEBCAM_PSRCS, 46), be_const_int(165) }, + { be_const_key(ELECTRIQ_MOODL_TX, -1), be_const_int(145) }, + { be_const_key(WEBCAM_XCLK, -1), be_const_int(156) }, + { be_const_key(PN532_RXD, -1), be_const_int(90) }, + { be_const_key(BL0940_RX, 195), be_const_int(170) }, + { be_const_key(PMS5003_RX, -1), be_const_int(53) }, + { be_const_key(HALLEFFECT, -1), be_const_int(237) }, + { be_const_key(PWM1_INV, 172), be_const_int(14) }, + { be_const_key(TASMOTACLIENT_RXD, -1), be_const_int(131) }, + { be_const_key(WEBCAM_SIOD, 110), be_const_int(157) }, + { be_const_key(TM1637CLK, 33), be_const_int(222) }, + { be_const_key(IRRECV, -1), be_const_int(34) }, + { be_const_key(SPI_MOSI, -1), be_const_int(22) }, + { be_const_key(TELEINFO_RX, 182), be_const_int(176) }, + { be_const_key(TASMOTACLIENT_RST_INV, -1), be_const_int(133) }, + { be_const_key(PROJECTOR_CTRL_RX, -1), be_const_int(225) }, + { be_const_key(WIEGAND_D0, -1), be_const_int(216) }, + { be_const_key(ADE7953_IRQ, -1), be_const_int(108) }, + { be_const_key(SPI_DC, -1), be_const_int(25) }, + { be_const_key(IRSEND, -1), be_const_int(33) }, + { be_const_key(TFMINIPLUS_TX, 87), be_const_int(234) }, + { be_const_key(I2C_SCL, -1), be_const_int(19) }, + { be_const_key(MAX7219DIN, -1), be_const_int(232) }, + { be_const_key(ROT1A_NP, -1), be_const_int(211) }, + { be_const_key(PZEM017_RX, 156), be_const_int(49) }, + { be_const_key(WINDMETER_SPEED, -1), be_const_int(168) }, + { be_const_key(RC522_RST, -1), be_const_int(191) }, + { be_const_key(SR04_ECHO, 89), be_const_int(59) }, + { be_const_key(BOILER_OT_TX, -1), be_const_int(167) }, + { be_const_key(ZIGBEE_TX, 104), be_const_int(111) }, + { be_const_key(REL1_INV, -1), be_const_int(8) }, + { be_const_key(WS2812, -1), be_const_int(43) }, + { be_const_key(BUZZER, 0), be_const_int(15) }, + { be_const_key(CC1101_GDO0, -1), be_const_int(142) }, + { be_const_key(SWT1_NP, -1), be_const_int(6) }, + { be_const_key(SSPI_DC, 49), be_const_int(30) }, + { be_const_key(ADC_RANGE, 128), be_const_int(152) }, + { be_const_key(OPTION_A, 174), be_const_int(194) }, { be_const_key(SHELLY_DIMMER_RST_INV, -1), be_const_int(190) }, + { be_const_key(MGC3130_XFER, -1), be_const_int(73) }, + { be_const_key(VL53L0X_XSHUT1, 140), be_const_int(230) }, + { be_const_key(SSD1351_CS, -1), be_const_int(204) }, + { be_const_key(LEDLNK, 63), be_const_int(17) }, + { be_const_key(P9813_DAT, 67), be_const_int(193) }, + { be_const_key(pin_mode, 218), be_const_func(gp_pin_mode) }, + { be_const_key(RF_SENSOR, -1), be_const_int(75) }, + { be_const_key(TELEINFO_ENABLE, -1), be_const_int(177) }, + { be_const_key(RISING, -1), be_const_int(1) }, + { be_const_key(DHT11, -1), be_const_int(37) }, + { be_const_key(SDCARD_CS, -1), be_const_int(210) }, + { be_const_key(ROT1B, 169), be_const_int(103) }, + { be_const_key(TUYA_RX, -1), be_const_int(72) }, + { be_const_key(SSPI_CS, -1), be_const_int(29) }, + { be_const_key(DCKI, -1), be_const_int(95) }, + { be_const_key(XPT2046_CS, -1), be_const_int(227) }, + { be_const_key(DDSU666_RX, -1), be_const_int(125) }, + { be_const_key(A4988_STP, -1), be_const_int(117) }, + { be_const_key(SOLAXX1_RX, -1), be_const_int(110) }, + { be_const_key(NRG_SEL, -1), be_const_int(81) }, + { be_const_key(HX711_DAT, -1), be_const_int(69) }, + { be_const_key(SSPI_MISO, -1), be_const_int(26) }, + { be_const_key(WEBCAM_HSD, -1), be_const_int(164) }, + { be_const_key(GPS_RX, -1), be_const_int(136) }, + { be_const_key(NEOPOOL_RX, -1), be_const_int(219) }, + { be_const_key(PZEM016_RX, -1), be_const_int(48) }, + { be_const_key(CSE7761_TX, -1), be_const_int(228) }, + { be_const_key(OLED_RESET, -1), be_const_int(32) }, + { be_const_key(ADC_INPUT, 101), be_const_int(147) }, + { be_const_key(LE01MR_TX, 80), be_const_int(141) }, + { be_const_key(EPAPER29_CS, 238), be_const_int(202) }, + { be_const_key(DHT22, -1), be_const_int(38) }, + { be_const_key(BACKLIGHT, -1), be_const_int(31) }, + { be_const_key(NRG_CF1, -1), be_const_int(83) }, + { be_const_key(MCP39F5_RST, 1), be_const_int(88) }, + { be_const_key(SDM120_TX, -1), be_const_int(60) }, + { be_const_key(HLW_CF, -1), be_const_int(84) }, + { be_const_key(BOILER_OT_RX, -1), be_const_int(166) }, + { be_const_key(TUYA_TX, -1), be_const_int(71) }, + { be_const_key(NRF24_DC, -1), be_const_int(198) }, + { be_const_key(TM1638DIO, -1), be_const_int(65) }, + { be_const_key(IBEACON_RX, 179), be_const_int(115) }, + { be_const_key(DEEPSLEEP, -1), be_const_int(128) }, + { be_const_key(HJL_CF, -1), be_const_int(85) }, + { be_const_key(DDSU666_TX, 154), be_const_int(124) }, + { be_const_key(MHZ_TXD, -1), be_const_int(44) }, + { be_const_key(MIEL_HVAC_TX, 22), be_const_int(183) }, + { be_const_key(BS814_CLK, 209), be_const_int(214) }, + { be_const_key(SM16716_SEL, -1), be_const_int(93) }, + { be_const_key(KEY1_TC, 48), be_const_int(169) }, + { be_const_key(SWT1, 5), be_const_int(5) }, + { be_const_key(WEBCAM_DATA, 217), be_const_int(159) }, + { be_const_key(PULLDOWN, -1), be_const_int(8) }, + { be_const_key(A4988_MS1, -1), be_const_int(119) }, + { be_const_key(pin_used, -1), be_const_func(gp_pin_used) }, + { be_const_key(IBEACON_TX, 220), be_const_int(114) }, + { be_const_key(NRF24_CS, -1), be_const_int(197) }, + { be_const_key(RXD, -1), be_const_int(101) }, + { be_const_key(NEOPOOL_TX, -1), be_const_int(218) }, + { be_const_key(WEBCAM_SIOC, -1), be_const_int(158) }, + { be_const_key(TASMOTACLIENT_TXD, -1), be_const_int(130) }, + { be_const_key(MAX31855CS, -1), be_const_int(78) }, + { be_const_key(TM1638CLK, -1), be_const_int(64) }, + { be_const_key(ILI9341_CS, -1), be_const_int(199) }, + { be_const_key(PN532_TXD, -1), be_const_int(89) }, + { be_const_key(LOW, -1), be_const_int(0) }, + { be_const_key(SOLAXX1_TX, -1), be_const_int(109) }, + { be_const_key(SDM72_RX, -1), be_const_int(221) }, + { be_const_key(PULLUP, -1), be_const_int(4) }, + { be_const_key(MIEL_HVAC_RX, -1), be_const_int(184) }, + { be_const_key(MAX31855DO, 216), be_const_int(80) }, + { be_const_key(REL1, -1), be_const_int(7) }, + { be_const_key(HX711_SCK, -1), be_const_int(68) }, + { be_const_key(WEBCAM_PCLK, -1), be_const_int(162) }, + { be_const_key(ARIRFRCV, 175), be_const_int(98) }, + { be_const_key(SAIR_TX, -1), be_const_int(50) }, + { be_const_key(digital_read, -1), be_const_func(gp_digital_read) }, + { be_const_key(LE01MR_RX, 125), be_const_int(140) }, + { be_const_key(TX2X_TXD_BLACK, -1), be_const_int(70) }, + { be_const_key(KEY1_INV, -1), be_const_int(3) }, + { be_const_key(ADC_JOY, -1), be_const_int(104) }, + { be_const_key(ST7789_CS, -1), be_const_int(206) }, + { be_const_key(SSD1331_CS, -1), be_const_int(208) }, + { be_const_key(FALLING, -1), be_const_int(2) }, + { be_const_key(SPI_CS, -1), be_const_int(24) }, + { be_const_key(BUZZER_INV, -1), be_const_int(16) }, + { be_const_key(RFSEND, -1), be_const_int(35) }, + { be_const_key(WE517_RX, -1), be_const_int(186) }, + { be_const_key(INPUT_PULLUP, -1), be_const_int(5) }, + { be_const_key(A4988_DIR, 223), be_const_int(116) }, + { be_const_key(SSPI_SCLK, -1), be_const_int(28) }, + { be_const_key(EPAPER42_CS, 252), be_const_int(203) }, + { be_const_key(SDM120_RX, -1), be_const_int(61) }, + { be_const_key(DYP_RX, -1), be_const_int(182) }, + { be_const_key(EPD_DATA, -1), be_const_int(238) }, + { be_const_key(TXD, -1), be_const_int(100) }, + { be_const_key(P9813_CLK, -1), be_const_int(192) }, + { be_const_key(MHZ_RXD, -1), be_const_int(45) }, + { be_const_key(WIEGAND_D1, -1), be_const_int(217) }, + { be_const_key(SSD1331_DC, 90), be_const_int(209) }, + { be_const_key(ADC_PH, -1), be_const_int(213) }, + { be_const_key(CSE7766_TX, -1), be_const_int(96) }, + { be_const_key(ADC_BUTTON_INV, 81), be_const_int(151) }, + { be_const_key(CNTR1_NP, -1), be_const_int(12) }, + { be_const_key(OUTPUT_LO, 85), be_const_int(121) }, + { be_const_key(SHELLY_DIMMER_BOOT0, -1), be_const_int(189) }, + { be_const_key(WEBCAM_PWDN, -1), be_const_int(154) }, + { be_const_key(KEY1, 246), be_const_int(1) }, + { be_const_key(RA8876_CS, 204), be_const_int(205) }, + { be_const_key(SDM630_RX, 171), be_const_int(63) }, + { be_const_key(ILI9341_DC, -1), be_const_int(200) }, + { be_const_key(LED1, 257), be_const_int(9) }, + { be_const_key(SPI_MISO, -1), be_const_int(21) }, + { be_const_key(SSD1351_DC, 30), be_const_int(226) }, + { be_const_key(MAX7219CLK, -1), be_const_int(231) }, + { be_const_key(MCP39F5_TX, -1), be_const_int(86) }, + { be_const_key(ROT1A, -1), be_const_int(102) }, + { be_const_key(TCP_RX, 42), be_const_int(172) }, + { be_const_key(WE517_TX, -1), be_const_int(185) }, + { be_const_key(SAIR_RX, 214), be_const_int(51) }, + { be_const_key(IEM3000_TX, 143), be_const_int(179) }, + { be_const_key(SDM630_TX, -1), be_const_int(62) }, + { be_const_key(KEY1_NP, 251), be_const_int(2) }, + { be_const_key(I2C_SDA, -1), be_const_int(20) }, + { be_const_key(MGC3130_RESET, -1), be_const_int(74) }, + { be_const_key(SI7021, -1), be_const_int(39) }, + { be_const_key(MAX7219CS, 151), be_const_int(233) }, + { be_const_key(SDM72_TX, -1), be_const_int(220) }, + { be_const_key(AS608_TX, 6), be_const_int(187) }, + { be_const_key(CHANGE, -1), be_const_int(4) }, }; static be_define_const_map( m_libgpio_map, - 257 + 258 ); static be_define_const_module( diff --git a/tasmota/language/af_AF.h b/tasmota/language/af_AF.h index 6c6c9ba54..60ef67c1b 100644 --- a/tasmota/language/af_AF.h +++ b/tasmota/language/af_AF.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Teller" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRontvanger" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/bg_BG.h b/tasmota/language/bg_BG.h index 0a8e606ee..26b2178ce 100644 --- a/tasmota/language/bg_BG.h +++ b/tasmota/language/bg_BG.h @@ -619,6 +619,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Брояч" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/cs_CZ.h b/tasmota/language/cs_CZ.h index 84f022a50..ac2146bff 100644 --- a/tasmota/language/cs_CZ.h +++ b/tasmota/language/cs_CZ.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1", #define D_SENSOR_COUNTER "Počítadlo" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/de_DE.h b/tasmota/language/de_DE.h index 9870ca0a3..90928ae8a 100644 --- a/tasmota/language/de_DE.h +++ b/tasmota/language/de_DE.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/el_GR.h b/tasmota/language/el_GR.h index 55e3a99de..3fe1381e0 100644 --- a/tasmota/language/el_GR.h +++ b/tasmota/language/el_GR.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/en_GB.h b/tasmota/language/en_GB.h index 5ea16fdf3..5cdbb9a1e 100644 --- a/tasmota/language/en_GB.h +++ b/tasmota/language/en_GB.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/es_ES.h b/tasmota/language/es_ES.h index b79b4b456..b9a54f91d 100644 --- a/tasmota/language/es_ES.h +++ b/tasmota/language/es_ES.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Contador" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IR Rx" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/fr_FR.h b/tasmota/language/fr_FR.h index dd590b905..c62163d5d 100644 --- a/tasmota/language/fr_FR.h +++ b/tasmota/language/fr_FR.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Compteur" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IR RX" #define D_SENSOR_MHZ_RX "MHZ RX" #define D_SENSOR_MHZ_TX "MHZ TX" diff --git a/tasmota/language/fy_NL.h b/tasmota/language/fy_NL.h index 2e87da726..357cf6430 100644 --- a/tasmota/language/fy_NL.h +++ b/tasmota/language/fy_NL.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Teller" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/he_HE.h b/tasmota/language/he_HE.h index c58d58571..b6d0022da 100644 --- a/tasmota/language/he_HE.h +++ b/tasmota/language/he_HE.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "מונה" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/hu_HU.h b/tasmota/language/hu_HU.h index fd143a725..e3352d6d1 100644 --- a/tasmota/language/hu_HU.h +++ b/tasmota/language/hu_HU.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Számláló" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IR vevő" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/it_IT.h b/tasmota/language/it_IT.h index ab529c2e4..33d4e5d7c 100644 --- a/tasmota/language/it_IT.h +++ b/tasmota/language/it_IT.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "Led - Lampeggio" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Contatore" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IR - RX" #define D_SENSOR_MHZ_RX "MHZ - RX" #define D_SENSOR_MHZ_TX "MHZ - TX" diff --git a/tasmota/language/ko_KO.h b/tasmota/language/ko_KO.h index 963c784cc..a6c03e1be 100644 --- a/tasmota/language/ko_KO.h +++ b/tasmota/language/ko_KO.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/nl_NL.h b/tasmota/language/nl_NL.h index 6d1b78244..646b49be2 100644 --- a/tasmota/language/nl_NL.h +++ b/tasmota/language/nl_NL.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Teller" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/pl_PL.h b/tasmota/language/pl_PL.h index 2fbd2516b..0b9f6f636 100644 --- a/tasmota/language/pl_PL.h +++ b/tasmota/language/pl_PL.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "Led link" // Suffix "i" #define D_SENSOR_PWM "Obroty" // Suffix "1" #define D_SENSOR_COUNTER "Licznik" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/pt_BR.h b/tasmota/language/pt_BR.h index 242fdb38b..4f6f14ce2 100644 --- a/tasmota/language/pt_BR.h +++ b/tasmota/language/pt_BR.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Contador" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/pt_PT.h b/tasmota/language/pt_PT.h index 958adaed0..9d84c37da 100644 --- a/tasmota/language/pt_PT.h +++ b/tasmota/language/pt_PT.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Contador" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/ro_RO.h b/tasmota/language/ro_RO.h index 3b39b5162..ed64302af 100644 --- a/tasmota/language/ro_RO.h +++ b/tasmota/language/ro_RO.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Contor" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/ru_RU.h b/tasmota/language/ru_RU.h index b8c86c53d..4b2bbafb0 100644 --- a/tasmota/language/ru_RU.h +++ b/tasmota/language/ru_RU.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Счетчик" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/sk_SK.h b/tasmota/language/sk_SK.h index 774c41113..dc3780cd4 100644 --- a/tasmota/language/sk_SK.h +++ b/tasmota/language/sk_SK.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1", #define D_SENSOR_COUNTER "Počítadlo" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/sv_SE.h b/tasmota/language/sv_SE.h index d5994fa4a..05dd62a44 100644 --- a/tasmota/language/sv_SE.h +++ b/tasmota/language/sv_SE.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Räknare" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/tr_TR.h b/tasmota/language/tr_TR.h index 722fd5bf3..d6847012c 100644 --- a/tasmota/language/tr_TR.h +++ b/tasmota/language/tr_TR.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/uk_UA.h b/tasmota/language/uk_UA.h index d71faaa7e..ddc6cda9d 100644 --- a/tasmota/language/uk_UA.h +++ b/tasmota/language/uk_UA.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "ШІМ" // Suffix "1" #define D_SENSOR_COUNTER "Лічильник" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/vi_VN.h b/tasmota/language/vi_VN.h index c35ef7f3d..e7e3f60cf 100644 --- a/tasmota/language/vi_VN.h +++ b/tasmota/language/vi_VN.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/zh_CN.h b/tasmota/language/zh_CN.h index fe73764c5..fdf3c0729 100644 --- a/tasmota/language/zh_CN.h +++ b/tasmota/language/zh_CN.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/language/zh_TW.h b/tasmota/language/zh_TW.h index edb11e329..e5da67c37 100644 --- a/tasmota/language/zh_TW.h +++ b/tasmota/language/zh_TW.h @@ -620,6 +620,7 @@ #define D_SENSOR_LED_LINK "LedLink" // Suffix "i" #define D_SENSOR_PWM "PWM" // Suffix "1" #define D_SENSOR_COUNTER "Counter" // Suffix "1" +#define D_SENSOR_INPUT "Input" #define D_SENSOR_IRRECV "IRrecv" #define D_SENSOR_MHZ_RX "MHZ Rx" #define D_SENSOR_MHZ_TX "MHZ Tx" diff --git a/tasmota/tasmota_template.h b/tasmota/tasmota_template.h index 5b600eee4..876ea4f06 100644 --- a/tasmota/tasmota_template.h +++ b/tasmota/tasmota_template.h @@ -162,6 +162,7 @@ enum UserSelectablePins { GPIO_HALLEFFECT, GPIO_EPD_DATA, // Base connection EPD driver #endif + GPIO_INPUT, GPIO_SENSOR_END }; enum ProgramSelectablePins { @@ -344,6 +345,7 @@ const char kSensorNames[] PROGMEM = D_SENSOR_HALLEFFECT "|" D_SENSOR_EPD_DATA "|" #endif + D_SENSOR_INPUT "|" ; const char kSensorNamesFixed[] PROGMEM = @@ -387,6 +389,9 @@ const uint16_t kGpioNiceList[] PROGMEM = { #endif AGPIO(GPIO_LEDLNK), // Link led AGPIO(GPIO_LEDLNK_INV), // Inverted link led +#ifdef USE_BERRY + AGPIO(GPIO_INPUT) + MAX_SWITCHES, // Pure digital input to be read via Berry +#endif AGPIO(GPIO_OUTPUT_HI), // Fixed output high AGPIO(GPIO_OUTPUT_LO), // Fixed output low #ifdef USE_FTC532