<?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=PCF8574</id>
	<title>PCF8574 - 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=PCF8574"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=PCF8574&amp;action=history"/>
	<updated>2026-06-04T21:08:45Z</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=PCF8574&amp;diff=25519&amp;oldid=prev</id>
		<title>Chao at 12:08, 7 February 2020</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=PCF8574&amp;diff=25519&amp;oldid=prev"/>
		<updated>2020-02-07T12:08:28Z</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;&lt;br /&gt;
== PCF8574 simple io write code ==&lt;br /&gt;
* Default IIC address 0x20&lt;br /&gt;
&amp;lt;source lang=&amp;quot;arduino&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;quot;PCF8574.h&amp;quot;&lt;br /&gt;
#include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// adjust addresses if needed&lt;br /&gt;
PCF8574 PCF_38(0x20);  // add led to P0 (pin 4) (used as output)&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
//your setup code here&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
    //turn P0 (pin 4) of the I/O expander on and off once a second&lt;br /&gt;
    PCF_38.write(0, 1);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
    PCF_38.write(0, 0);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: IIC-IO]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>