logo elektroda
logo elektroda
X
logo elektroda

How to address PCF8574 with ESP8266 in LUA - code examples

piotr411 6357 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15812942
    piotr411
    Level 22  
    The PCF8574 expander, fits perfectly with the ESP and is relatively cheap. I write relatively cheap, because using an AVR e.g. AM8 as a port expander the Atmega may turn out to be cheaper. Simple examples of how to address the above chip in LUA.


    All ports zeroed, i.e. high state:
    Code: Lua
    Log in, to see the code


    Port1 ON

    Code: Lua
    Log in, to see the code


    Scanner:
    Code: Lua
    Log in, to see the code



    Port readout and address scanner I will insert the PCF in a free chili.
  • ADVERTISEMENT
  • #2 15929526
    panbosman
    Level 12  
    When will you have that free moment?
ADVERTISEMENT