ESP8266 gateway with I2C port expander
-
Hello everyone,
I have a gateway with the ESP8266 according the MySensors example. I was bothered that I don't have enough IO pins to connect the standard leds and the inclusion mode button. Therefore I used a PCF8574 I2C bus IO expander, so I have 8 additional pins available to connect leds or buttons. Instead of the MY_DEFAULT_XXX_LED_PIN defines I used the MY_INDICATION_HANDLER option and connected it to the PCF8574 I2C bus IO expander.
Unfortunately this does not work for the pins of the inclusion mode. Therefore I added the option MY_INCLUSION_INDICATION_HANDLER for a custom handler in the MySensorsLibrary. For this I made the pull request #1483.
To demonstrate the usage I provided an Example Project . I added it as an extension to MySensorsArduinoExamples and it is located in the dev_maxwa_InclusionExample branch under the MyWemosGatewayWire example folder.
I would be happy if the example is interesting and useful.
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Water Meter or "How to get Home Assistant to send saved data to an Arduino"
My Project • 18 Oct 2024, 02:19 • OldSurferDude 18 Oct 2024, 02:19 -
Alexa Fauxmo - Mysensor Bridge Gateway / BLE - Mysensors Bridge Gateway
My Project • 10 Aug 2024, 08:29 • fsgraz 10 Aug 2024, 08:29 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21 -
BMP280 SPI Adafruit
My Project • 24 Aug 2016, 01:56 • Matt 23 Jan 2025, 16:25 -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11