<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Category%3AIO_Expander</id>
	<title>Category:IO Expander - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Category%3AIO_Expander"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Category:IO_Expander&amp;action=history"/>
	<updated>2026-07-24T11:53:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=Category:IO_Expander&amp;diff=25064&amp;oldid=prev</id>
		<title>Chao at 12:37, 5 February 2020</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Category:IO_Expander&amp;diff=25064&amp;oldid=prev"/>
		<updated>2020-02-05T12:37:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* [[:FIle:PCF8574.pdf|PCF8574]] / PCF8575 - I2C - common used for [[1602]]&lt;br /&gt;
* MCP23008 - I2C - 8-Bit I/O Expander with Serial Interface, - [[:File:Mcp23008_library.zip|arduino library]]&lt;br /&gt;
* MCP23017 - I2C - 16-Bit I/O Expander with Serial Interface,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PCF8575 Demo Code ==&lt;br /&gt;
Use Wire.write(B00000000); to write value to the pins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Arduino&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
byte address = 0x20;   // address of PCF8575 with A0-A2 connected to GND &amp;quot;B01000000&amp;quot;&lt;br /&gt;
byte input; // variable to receive the two bytes&lt;br /&gt;
byte c; // first of the two bytes to read&lt;br /&gt;
byte d; // second of the two bytes to read&lt;br /&gt;
int led = 13;&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
   Wire.begin();       // join i2c bus &lt;br /&gt;
   Serial.begin(9600); // used to Debug , Thanks PaulS&lt;br /&gt;
   pinMode(led, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
    input = Wire.requestFrom(0x20,2);&lt;br /&gt;
       &lt;br /&gt;
      c = Wire.read();&lt;br /&gt;
      d = Wire.read();&lt;br /&gt;
      Wire.endTransmission();&lt;br /&gt;
      &lt;br /&gt;
      if(bitRead(d,6) == 0) {&lt;br /&gt;
     digitalWrite(led, LOW); &lt;br /&gt;
     delay(1000);&lt;br /&gt;
       }&lt;br /&gt;
       else {&lt;br /&gt;
         digitalWrite(13, HIGH);&lt;br /&gt;
       }&lt;br /&gt;
    Serial.println(c, BIN);  &lt;br /&gt;
    delay(100);&lt;br /&gt;
    Serial.println(d,BIN); &lt;br /&gt;
    &lt;br /&gt;
    }      // send the data&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
== Demo code ==&lt;br /&gt;
* PCF8574 C51, avr, stm8 demo code - [[File:PCF8574-IO-Expansion-Board-code.zip]]&lt;br /&gt;
 [[category:Bridge Interface]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>