<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/index.php?action=history&amp;feed=atom&amp;title=Rock4%2Fhardware%2Fgpio</id>
		<title>Rock4/hardware/gpio - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/index.php?action=history&amp;feed=atom&amp;title=Rock4%2Fhardware%2Fgpio"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;action=history"/>
		<updated>2026-07-21T13:53:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=9350&amp;oldid=prev</id>
		<title>RadxaYuntian at 08:37, 22 February 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=9350&amp;oldid=prev"/>
				<updated>2023-02-22T08:37:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:37, 22 February 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [https://wiringx.org/platforms/radxa/rock4.html wiringX GPIO mapping]&amp;#160; ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [https://wiringx.org/platforms/radxa/rock4.html wiringX GPIO mapping]&amp;#160; ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(V1.2 or newer)&lt;/del&gt;&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For ROCK 4C+, the following pin-out is applicable for version 1.2 and later.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! GPIO number || Function2 || Function1 ||&amp;#160; GPIO ||&amp;#160; Pin# || || Pin# || GPIO || Function1 || Function2 || GPIO number&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! GPIO number || Function2 || Function1 ||&amp;#160; GPIO ||&amp;#160; Pin# || || Pin# || GPIO || Function1 || Function2 || GPIO number&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;rockpi4c+gpio&amp;quot;&amp;gt;'''ROCK &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pi &lt;/del&gt;4C &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Plus V1&lt;/del&gt;.0/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;V1&lt;/del&gt;.1''' general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;rockpi4c+gpio&amp;quot;&amp;gt;'''ROCK 4C&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;+ v1&lt;/ins&gt;.0/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/ins&gt;.1''' general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ROCK 4C+ v1.0/1.1 are pre-production version. Mass production began from v1.2. '''The following pinout is only for early adapters.'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ROCK Pi 4C Plus has a 40-pin expansion header. Each pin is distinguished by color.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! GPIO number || Function2 || Function1 ||&amp;#160; GPIO ||&amp;#160; Pin# || || Pin# || GPIO || Function1 || Function2 || GPIO number&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! GPIO number || Function2 || Function1 ||&amp;#160; GPIO ||&amp;#160; Pin# || || Pin# || GPIO || Function1 || Function2 || GPIO number&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>RadxaYuntian</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=9349&amp;oldid=prev</id>
		<title>Stephen at 08:28, 22 February 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=9349&amp;oldid=prev"/>
				<updated>2023-02-22T08:28:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:28, 22 February 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [https://wiringx.org/platforms/radxa/rock4.html wiringX GPIO mapping]&amp;#160; ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [https://wiringx.org/platforms/radxa/rock4.html wiringX GPIO mapping]&amp;#160; ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(V1.2 or newer)&lt;/ins&gt;&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Stephen</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=9036&amp;oldid=prev</id>
		<title>Nascs at 11:57, 26 November 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=9036&amp;oldid=prev"/>
				<updated>2022-11-26T11:57:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:57, 26 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;GPIO&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;GPIO&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== [https://wiringx.org/platforms/radxa/rock4.html wiringX GPIO mapping]&amp;#160; ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 162:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 163:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== GPIO Libraries/API ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== GPIO Libraries/API ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Install [[Rockpi4/dev/libmraa | Libmraa]] ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Install [[Rockpi4/dev/libmraa | Libmraa]] ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nascs</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=8492&amp;oldid=prev</id>
		<title>Hipboi: Created page with &quot;{{rock4_header}} {{Languages|rock4/hardware/gpio}}  __NOTOC__       ROCK 4 &gt;  Hardware &gt;  GPIO  &lt;div class=&quot;col-md-12 &quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock4/hardware/gpio&amp;diff=8492&amp;oldid=prev"/>
				<updated>2022-08-26T13:16:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{rock4_header}} {{Languages|rock4/hardware/gpio}}  __NOTOC__      &lt;a href=&quot;/Rock4&quot; title=&quot;Rock4&quot;&gt; ROCK 4&lt;/a&gt; &amp;gt; &lt;a href=&quot;/Rock4/hardware&quot; title=&quot;Rock4/hardware&quot;&gt; Hardware&lt;/a&gt; &amp;gt; &lt;a href=&quot;/Rock4/hardware/gpio&quot; title=&quot;Rock4/hardware/gpio&quot;&gt; GPIO&lt;/a&gt;  &amp;lt;div class=&amp;quot;col-md-12 &amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{rock4_header}}&lt;br /&gt;
{{Languages|rock4/hardware/gpio}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
    [[rock4 | ROCK 4]] &amp;gt; [[rock4/hardware | Hardware]] &amp;gt; [[rock4/hardware/gpio | GPIO]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12 &amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;panel panel-midnight-white&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;panel-heading&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;GPIO&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;panel-body&amp;quot;&amp;gt;&lt;br /&gt;
=== &amp;lt;span id=&amp;quot;gpio&amp;quot;&amp;gt; general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;br /&gt;
ROCK 4 series has a 40-pin expansion header. Each pin is distinguished by color.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Function2 || Function1 ||  GPIO ||  Pin# || || Pin# || GPIO || Function1 || Function2 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || +3.3V ||  || style=&amp;quot;background:yellow&amp;quot;| 1 ||  ||style=&amp;quot;background:red&amp;quot;| 2 ||  || +5.0V ||  ||&lt;br /&gt;
|-&lt;br /&gt;
| 71 || || I2C7_SDA || GPIO2_A7 || style=&amp;quot;background:green; color:white&amp;quot;| 3 || ||  style=&amp;quot;background:red&amp;quot;| 4 || || +5.0V ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 72 || || I2C7_SCL || GPIO2_B0 || style=&amp;quot;background:green; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 ||  || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 75 || || SPI2_CLK || GPIO2_B3 || style=&amp;quot;background:green; color:white&amp;quot;| 7 || || style=&amp;quot;background:green; color:white&amp;quot;| 8 || GPIO4_C4 || style=&amp;quot;background:orange&amp;quot;|UART2_TXD ||   || 148&lt;br /&gt;
|-&lt;br /&gt;
| || ||  GND ||  || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:green; color:white&amp;quot;|10 || GPIO4_C3 || style=&amp;quot;background:orange&amp;quot;|UART2_RXD ||   || 147&lt;br /&gt;
|-&lt;br /&gt;
|146  || ||  PWM0 || GPIO4_C2 || style=&amp;quot;background:green; color:white&amp;quot;|11 || || style=&amp;quot;background:green; color:white&amp;quot;|12 || GPIO4_A3 || I2S1_SCLK ||   || 131&lt;br /&gt;
|-&lt;br /&gt;
| 150 || || PWM1 || GPIO4_C6 || style=&amp;quot;background:green; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 149 || || SPDIF_TX ||  GPIO4_C5 || style=&amp;quot;background:green; color:white&amp;quot;|15 || || style=&amp;quot;background:green; color:white&amp;quot;|16 || GPIO4_D2 || ||   || 154&lt;br /&gt;
|-&lt;br /&gt;
| || ||  +3.3V || || style=&amp;quot;background:yellow&amp;quot;|17 || || style=&amp;quot;background:green; color:white&amp;quot;|18 || GPIO4_D4 || ||   || 156&lt;br /&gt;
|-&lt;br /&gt;
|40 || UART4_TXD ||  style=&amp;quot;background:orange&amp;quot;|SPI1_TXD || GPIO1_B0 || style=&amp;quot;background:green; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || || GND ||   || &lt;br /&gt;
|-&lt;br /&gt;
|39 || UART4_RXD || style=&amp;quot;background:orange&amp;quot;|SPI1_RXD || GPIO1_A7  || style=&amp;quot;background:green; color:white&amp;quot;|21  ||   || style=&amp;quot;background:green; color:white&amp;quot;|22  || GPIO4_D5  ||   || || 157&lt;br /&gt;
|-&lt;br /&gt;
|41 || ||  style=&amp;quot;background:orange&amp;quot;|SPI1_CLK || GPIO1_B1 || style=&amp;quot;background:green; color:white&amp;quot;|23 ||  || style=&amp;quot;background:green; color:white&amp;quot;|24 || GPIO1_B2  || style=&amp;quot;background:orange&amp;quot;|SPI1_CSn  ||  || 42&lt;br /&gt;
|-&lt;br /&gt;
| || ||  GND  ||  || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:green; color:white&amp;quot;|26 ||  || ADC_IN0 ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 64 || ||  I2C2_SDA  || GPIO2_A0 || style=&amp;quot;background:blue; color:white&amp;quot;|27  ||  || style=&amp;quot;background:blue; color:white&amp;quot;|28 || GPIO2_A1 || I2C2_CLK ||  || 65&lt;br /&gt;
|-&lt;br /&gt;
| 74 || I2C6_SCL ||  SPI2_TXD  || GPIO2_B2 || style=&amp;quot;background:green; color:white&amp;quot;|29  ||  || style=&amp;quot;background:black; color:white&amp;quot;|30 ||  || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 73 || I2C6_SDA ||  SPI2_RXD  || GPIO2_B1 || style=&amp;quot;background:green; color:white&amp;quot;|31  ||  || style=&amp;quot;background:green; color:white&amp;quot;|32 || GPIO3_C0 || SPDIF_TX || UART3_CTSn || 112 &lt;br /&gt;
|-&lt;br /&gt;
| 76 || ||   SPI2_CSn || GPIO2_B4 || style=&amp;quot;background:green; color:white&amp;quot;|33  ||  || style=&amp;quot;background:black; color:white&amp;quot;|34 ||  || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 133 || ||   I2S1_LRCK_TX || GPIO4_A5 || style=&amp;quot;background:green; color:white&amp;quot;|35  ||  || style=&amp;quot;background:green; color:white&amp;quot;|36 || GPIO4_A4 || I2S1_LRCK_RX ||   || 132&lt;br /&gt;
|-&lt;br /&gt;
| 158 || ||   || GPIO4_D6 || style=&amp;quot;background:green; color:white&amp;quot;|37  ||  || style=&amp;quot;background:green; color:white&amp;quot;|38 || GPIO4_A6 || I2S1_SDI ||   || 134&lt;br /&gt;
|-&lt;br /&gt;
| || ||   GND ||  || style=&amp;quot;background:black; color:white&amp;quot;|39  ||  ||style=&amp;quot;background:green; color:white&amp;quot;|40  || GPIO4_A7 || I2S1_SDO ||   || 135&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span id=&amp;quot;rockpi4c+gpio&amp;quot;&amp;gt;'''ROCK Pi 4C Plus V1.0/V1.1''' general purpose input-output (GPIO) connector&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
ROCK Pi 4C Plus has a 40-pin expansion header. Each pin is distinguished by color.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! GPIO number || Function2 || Function1 ||  GPIO ||  Pin# || || Pin# || GPIO || Function1 || Function2 || GPIO number&lt;br /&gt;
|- &lt;br /&gt;
| || || +3.3V ||  || style=&amp;quot;background:yellow&amp;quot;| 1 ||  ||style=&amp;quot;background:red&amp;quot;| 2 ||  || +5.0V ||  ||&lt;br /&gt;
|-&lt;br /&gt;
| 71 || || I2C7_SDA || GPIO2_A7 || style=&amp;quot;background:green; color:white&amp;quot;| 3 || ||  style=&amp;quot;background:red&amp;quot;| 4 || || +5.0V ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 72 || || I2C7_SCL || GPIO2_B0 || style=&amp;quot;background:green; color:white&amp;quot;| 5 || || style=&amp;quot;background:black; color:white&amp;quot;| 6 ||  || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 75 || || SPI2_CLK || GPIO2_B3 || style=&amp;quot;background:green; color:white&amp;quot;| 7 || || style=&amp;quot;background:green; color:white&amp;quot;| 8 || GPIO4_C4 || style=&amp;quot;background:orange&amp;quot;|UART2_TXD ||   || 148&lt;br /&gt;
|-&lt;br /&gt;
| || ||  GND ||  || style=&amp;quot;background:black; color:white&amp;quot;| 9 || || style=&amp;quot;background:green; color:white&amp;quot;|10 || GPIO4_C3 || style=&amp;quot;background:orange&amp;quot;|UART2_RXD ||   || 147&lt;br /&gt;
|-&lt;br /&gt;
|146  || ||  PWM0 || GPIO4_C2 || style=&amp;quot;background:green; color:white&amp;quot;|11 || || style=&amp;quot;background:green; color:white&amp;quot;|12 || GPIO2_D3 ||   ||   || 91&lt;br /&gt;
|-&lt;br /&gt;
| 33 || || || GPIO1_A1 || style=&amp;quot;background:green; color:white&amp;quot;|13 ||  || style=&amp;quot;background:black; color:white&amp;quot;|14 || || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 149 || || SPDIF_TX ||  GPIO4_C5 || style=&amp;quot;background:green; color:white&amp;quot;|15 || || style=&amp;quot;background:green; color:white&amp;quot;|16 || GPIO4_D2 || ||   || 154&lt;br /&gt;
|-&lt;br /&gt;
| || ||  +3.3V || || style=&amp;quot;background:yellow&amp;quot;|17 || || style=&amp;quot;background:green; color:white&amp;quot;|18 || GPIO4_D4 || ||   || 156&lt;br /&gt;
|-&lt;br /&gt;
|40 || UART4_TXD ||  style=&amp;quot;background:orange&amp;quot;|SPI1_TXD || GPIO1_B0 || style=&amp;quot;background:green; color:white&amp;quot;|19 ||  ||style=&amp;quot;background:black; color:white&amp;quot;|20 || || GND ||   || &lt;br /&gt;
|-&lt;br /&gt;
|39 || UART4_RXD || style=&amp;quot;background:orange&amp;quot;|SPI1_RXD || GPIO1_A7  || style=&amp;quot;background:green; color:white&amp;quot;|21  ||   || style=&amp;quot;background:green; color:white&amp;quot;|22  || GPIO4_D5  ||   || || 157&lt;br /&gt;
|-&lt;br /&gt;
|41 || ||  style=&amp;quot;background:orange&amp;quot;|SPI1_CLK || GPIO1_B1 || style=&amp;quot;background:green; color:white&amp;quot;|23 ||  || style=&amp;quot;background:green; color:white&amp;quot;|24 || GPIO1_B2  || style=&amp;quot;background:orange&amp;quot;|SPI1_CSn  ||  || 42&lt;br /&gt;
|-&lt;br /&gt;
| || ||  GND  ||  || style=&amp;quot;background:black; color:white&amp;quot;|25  ||   || style=&amp;quot;background:green; color:white&amp;quot;|26 ||  || ADC_IN0 ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 64 || ||  I2C2_SDA  || GPIO2_A0 || style=&amp;quot;background:blue; color:white&amp;quot;|27  ||  || style=&amp;quot;background:blue; color:white&amp;quot;|28 || GPIO2_A1 || I2C2_CLK ||  || 65&lt;br /&gt;
|-&lt;br /&gt;
| 74 || I2C6_SCL ||  SPI2_TXD  || GPIO2_B2 || style=&amp;quot;background:green; color:white&amp;quot;|29  ||  || style=&amp;quot;background:black; color:white&amp;quot;|30 ||  || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 73 || I2C6_SDA ||  SPI2_RXD  || GPIO2_B1 || style=&amp;quot;background:green; color:white&amp;quot;|31  ||  || style=&amp;quot;background:green; color:white&amp;quot;|32 || GPIO3_C0 || SPDIF_TX || UART3_CTSn || 112 &lt;br /&gt;
|-&lt;br /&gt;
| 76 || ||   SPI2_CSn || GPIO2_B4 || style=&amp;quot;background:green; color:white&amp;quot;|33  ||  || style=&amp;quot;background:black; color:white&amp;quot;|34 ||  || GND ||   ||&lt;br /&gt;
|-&lt;br /&gt;
| 133 || ||   I2S1_LRCK_TX || GPIO4_A5 || style=&amp;quot;background:green; color:white&amp;quot;|35  ||  || style=&amp;quot;background:green; color:white&amp;quot;|36 || GPIO2_D4 ||   ||   || 92&lt;br /&gt;
|-&lt;br /&gt;
| 158 || ||   || GPIO4_D6 || style=&amp;quot;background:green; color:white&amp;quot;|37  ||  || style=&amp;quot;background:green; color:white&amp;quot;|38 || GPIO1_A4 ||   ||   || 36&lt;br /&gt;
|-&lt;br /&gt;
| || ||   GND ||  || style=&amp;quot;background:black; color:white&amp;quot;|39  ||  ||style=&amp;quot;background:green; color:white&amp;quot;|40  || GPIO1_C4 ||   ||   || 52&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Notes about 40-pin Header ====&lt;br /&gt;
* Function marked with color orange is the default function of this pin. &lt;br /&gt;
* Except Pins for power supply, all pins are routed directly to SoC RK3399.&lt;br /&gt;
* For pin 3, 5, 27, 28, 29 and 31, each pin is connected to the 3.0V supply through a 4.7K pull-up resistor.&lt;br /&gt;
* Pin 7 is routed directly to the pin of MIPI CSI on board.&lt;br /&gt;
* SPI&lt;br /&gt;
** Pin 19, 21, 23, 24 also route to the pins of SPI flash on board. If the ROCK 4 model has [[Rockpi4/hardware/spi_flash | SPI flash soldered on board]], the SPI function is not available on GPIO header.&lt;br /&gt;
* UART&lt;br /&gt;
** UART2 is enabled as U-boot and Linux serial console by default. Check [[Rockpi4/dev/serial-console]] to use. Check [[Rockpi4/hardware/devtree_overlays]] to disable serial console on UART2.&lt;br /&gt;
** UART2 &amp;amp; UART4 support a wide range of baud rate. It includes but not is not limited to the following baud rates. For instance, 115200bps. 500000bps, 1500000bps and so on.&lt;br /&gt;
** For v1.4 and later hardware, on board SPI flash is soldered, UART4 PINs are used as SPI function.&lt;br /&gt;
* For I2C-2 and I2C-7&lt;br /&gt;
** We have do the test using the i2c device e2prom. We  need to open the i2c device file, and then do the read or write operation.&lt;br /&gt;
&lt;br /&gt;
=== IO Voltage ===&lt;br /&gt;
RK3399 have three IO voltages, 1.8V/3.0V/3.3V. For ROCK Pi 4, below is the default voltage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| GPIO       | Voltage Level | Tolerance |&lt;br /&gt;
| ---------- | ------------- | --------- |&lt;br /&gt;
| GPIO3_C0   | 3.3V          | 3.465V    |&lt;br /&gt;
| ADC_IN0    | 1.8V          | 1.98V     |&lt;br /&gt;
| Other GPIO | 3.0V          | 3.14V     |&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GPIO number ===&lt;br /&gt;
Rockchip RK3399 GPIO has 5 banks, GPIO0 to GPIO4, each bank has 32pins, naming as below:&lt;br /&gt;
&lt;br /&gt;
    GPIO0_A0 ~ A7 &lt;br /&gt;
    GPIO0_B0 ~ B7&lt;br /&gt;
    GPIO0_C0 ~ C7&lt;br /&gt;
    GPIO0_D0 ~ D7&lt;br /&gt;
    &lt;br /&gt;
    GPIO1_A0 ~ A7&lt;br /&gt;
    ....&lt;br /&gt;
    GPIO1_D0 ~ D7&lt;br /&gt;
&lt;br /&gt;
For Rockchip 4.4 kernel, the GPIO number can be calculated as below, take GPIO4_D5 (PIN22 on 40PIN GPIO) as an example:&lt;br /&gt;
&lt;br /&gt;
    GPIO4_D5 = 4*32 + 3*8 + 5 = 157&lt;br /&gt;
    (A=0, B=1, C=2, D=3)&lt;br /&gt;
&lt;br /&gt;
[[File:Gpio_number.png]]&lt;br /&gt;
&lt;br /&gt;
To set GPIO4_D5 output&lt;br /&gt;
&lt;br /&gt;
    cd /sys/class/gpio&lt;br /&gt;
    echo 157 &amp;gt; export&lt;br /&gt;
    cd gpio157&lt;br /&gt;
    echo out &amp;gt; direction&lt;br /&gt;
    echo 1 &amp;gt; value     # output high&lt;br /&gt;
    echo 0 &amp;gt; value     # output low&lt;br /&gt;
&lt;br /&gt;
=== GPIO Libraries/API ===&lt;br /&gt;
====Install [[Rockpi4/dev/libmraa | Libmraa]] ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hipboi</name></author>	</entry>

	</feed>