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 -
Radar motion sensor
My Project • 11 days ago • suresh sharma 11 days ago -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
A low cost energy meter
My Project • 25 Jan 2024, 01:03 • OldSurferDude 12 Aug 2024, 06:03 -
Interface-board-for-remote-control
My Project • 9 days ago • OldSurferDude 9 days ago -
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