<?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=Dot_Matrix_X_74HC595</id>
	<title>Dot Matrix X 74HC595 - 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=Dot_Matrix_X_74HC595"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Dot_Matrix_X_74HC595&amp;action=history"/>
	<updated>2026-06-04T21:35:15Z</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=Dot_Matrix_X_74HC595&amp;diff=32451&amp;oldid=prev</id>
		<title>Chao: Created page with &quot; == Dot Matrix drive by two 74HC595 == &lt;syntaxhighlight lang=&quot;Arduino&quot;&gt; int latchpin = 8; // connect to pin 12 on the '595 int clockpin = 13; // connect to pin 11 on the '595...&quot;</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Dot_Matrix_X_74HC595&amp;diff=32451&amp;oldid=prev"/>
		<updated>2021-12-17T07:25:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Dot Matrix drive by two 74HC595 == &amp;lt;syntaxhighlight lang=&amp;quot;Arduino&amp;quot;&amp;gt; int latchpin = 8; // connect to pin 12 on the &amp;#039;595 int clockpin = 13; // connect to pin 11 on the &amp;#039;595...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Dot Matrix drive by two 74HC595 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Arduino&amp;quot;&amp;gt;&lt;br /&gt;
int latchpin = 8; // connect to pin 12 on the '595&lt;br /&gt;
int clockpin = 13; // connect to pin 11 on the '595&lt;br /&gt;
int datapin = 11; // connect to pin 14 on the '595&lt;br /&gt;
int matrixrow[8] = {1,2,4,8,16,32,64,128};&lt;br /&gt;
int matrixcolumn[8] = {1,2,4,8,16,32,64,128};&lt;br /&gt;
&lt;br /&gt;
void pixeldisplay(int row, int column, int holdtime) // turns on and off a pixel at row, column - with delay 'holdtime'&lt;br /&gt;
{&lt;br /&gt;
 digitalWrite(latchpin, LOW);&lt;br /&gt;
 shiftOut(datapin, clockpin, MSBFIRST, matrixcolumn[column-1]); // sets the digit to address&lt;br /&gt;
 shiftOut(datapin, clockpin, MSBFIRST, matrixrow[row-1]); // clears the digit&lt;br /&gt;
 digitalWrite(latchpin, HIGH);&lt;br /&gt;
 delay(holdtime);&lt;br /&gt;
}&lt;br /&gt;
void rowdisplay(int row, int holdtime)// turns on and off a row of LEDs with delay 'holdtime'&lt;br /&gt;
{&lt;br /&gt;
 digitalWrite(latchpin, LOW);&lt;br /&gt;
 shiftOut(datapin, clockpin, MSBFIRST, 255); // we want all the cathodes on, which is 11111111 in binary, 255 decimal&lt;br /&gt;
 shiftOut(datapin, clockpin, MSBFIRST, matrixrow[row-1]); // clears the digit&lt;br /&gt;
 digitalWrite(latchpin, HIGH);&lt;br /&gt;
 delay(holdtime);&lt;br /&gt;
} &lt;br /&gt;
void columndisplay(int column, int holdtime)&lt;br /&gt;
// turns on and off a column of LEDs with delay 'holdtime'&lt;br /&gt;
{&lt;br /&gt;
 digitalWrite(latchpin, LOW);&lt;br /&gt;
 shiftOut(datapin, clockpin, MSBFIRST, matrixcolumn[column-1]); &lt;br /&gt;
 shiftOut(datapin, clockpin, MSBFIRST, 255); // we want all the anodes on, which is 11111111 in binary, 255 decimal&lt;br /&gt;
 digitalWrite(latchpin, HIGH);&lt;br /&gt;
 delay(holdtime);&lt;br /&gt;
} &lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
 pinMode(latchpin, OUTPUT);&lt;br /&gt;
 pinMode(clockpin, OUTPUT);&lt;br /&gt;
 pinMode(datapin, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
 for (int a=1; a&amp;lt;9; a++)&lt;br /&gt;
 {&lt;br /&gt;
 for (int b=1; b&amp;lt;9; b++)&lt;br /&gt;
 {&lt;br /&gt;
 pixeldisplay(a,b,50);&lt;br /&gt;
 }&lt;br /&gt;
 }&lt;br /&gt;
 for (int a=1; a&amp;lt;9; a++)&lt;br /&gt;
 {&lt;br /&gt;
 for (int b=1; b&amp;lt;9; b++)&lt;br /&gt;
 {&lt;br /&gt;
 pixeldisplay(b,a,50);&lt;br /&gt;
 }&lt;br /&gt;
  }&lt;br /&gt;
 for (int zz=1; zz&amp;lt;11; zz++)&lt;br /&gt;
 {&lt;br /&gt;
 for (int a=1; a&amp;lt;9; a++)&lt;br /&gt;
 {&lt;br /&gt;
 rowdisplay(a, 50);&lt;br /&gt;
 }&lt;br /&gt;
 for (int a=1; a&amp;lt;9; a++)&lt;br /&gt;
 {&lt;br /&gt;
 columndisplay(a, 50);&lt;br /&gt;
 }&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[category: Dot Matrix]]&lt;br /&gt;
&lt;br /&gt;
[[category: 74HC595]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>