<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[PINE64 - Pi2, Euler and Exp GPIO Ports]]></title>
		<link>https://forum.pine64.org/</link>
		<description><![CDATA[PINE64 - https://forum.pine64.org]]></description>
		<pubDate>Fri, 15 May 2026 03:27:22 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Clusterboard, U-Boot, PL7 LED]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=13359</link>
			<pubDate>Wed, 10 Mar 2021 01:07:26 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=9087">Pine</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=13359</guid>
			<description><![CDATA[Greetings,<br />
<br />
U-Boot has a board-specific method with signature<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>void show_boot_progress(int val);</code></div></div><br />
Various stages of U-Boot SPL and full U-Boot call this method with a known int to signal the current boot stage.<br />
<br />
I would like to activate PL7 on the SOPINE clusterboard which has an LED attached on certain checkpoints in booting.<br />
<br />
My question is, does anyone have experience with low-level GPIO registers/memory and knows how to achieve this? We can't use syntactic sugar like the following<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>gpio_direction_output(PL7_GPIO, 1);<br />
gpio_set_value(PL7_GPIO, 1);</code></div></div><br />
because the GPIO and DM (driver model) systems are not initialized at power-on yet (and I encounter an infinite loop deep in U-Boot trying to enumerate non-initialized hardware).<br />
<br />
I understand the pin number for PL7 is <span style="font-weight: bold;" class="mycode_b">359 </span>from ([L - A] * 32) + 7.<br />
<br />
A solution using one of<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>writel(...); or<br />
setbits_le32(...)</code></div></div><br />
would be a probable goal. Any ideas?]]></description>
			<content:encoded><![CDATA[Greetings,<br />
<br />
U-Boot has a board-specific method with signature<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>void show_boot_progress(int val);</code></div></div><br />
Various stages of U-Boot SPL and full U-Boot call this method with a known int to signal the current boot stage.<br />
<br />
I would like to activate PL7 on the SOPINE clusterboard which has an LED attached on certain checkpoints in booting.<br />
<br />
My question is, does anyone have experience with low-level GPIO registers/memory and knows how to achieve this? We can't use syntactic sugar like the following<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>gpio_direction_output(PL7_GPIO, 1);<br />
gpio_set_value(PL7_GPIO, 1);</code></div></div><br />
because the GPIO and DM (driver model) systems are not initialized at power-on yet (and I encounter an infinite loop deep in U-Boot trying to enumerate non-initialized hardware).<br />
<br />
I understand the pin number for PL7 is <span style="font-weight: bold;" class="mycode_b">359 </span>from ([L - A] * 32) + 7.<br />
<br />
A solution using one of<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>writel(...); or<br />
setbits_le32(...)</code></div></div><br />
would be a probable goal. Any ideas?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)?]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7589</link>
			<pubDate>Tue, 11 Jun 2019 19:11:08 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6838">dkebler</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7589</guid>
			<description><![CDATA[Using armbian bionic mainline kernel on A64-v1.1 board<br />
<span style="font-style: italic;" class="mycode_i">Linux pine64 4.19.38-sunxi64 #5.83 SMP Fri May 3 21:02:31 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">In RPI bionic could just set values in boot.txt.  Is this possible in armbian bionic mainline?</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">I know that one can use device tree overlays but can't find any examples specific to the A64.</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">Anyone have a dts file or otherwise know how to declare a pin as an interruptible input?  I've come across nothing in any A64 docs.</span>]]></description>
			<content:encoded><![CDATA[Using armbian bionic mainline kernel on A64-v1.1 board<br />
<span style="font-style: italic;" class="mycode_i">Linux pine64 4.19.38-sunxi64 #5.83 SMP Fri May 3 21:02:31 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">In RPI bionic could just set values in boot.txt.  Is this possible in armbian bionic mainline?</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">I know that one can use device tree overlays but can't find any examples specific to the A64.</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">Anyone have a dts file or otherwise know how to declare a pin as an interruptible input?  I've come across nothing in any A64 docs.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Udev rule for gpios for non root access]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7585</link>
			<pubDate>Tue, 11 Jun 2019 15:06:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6838">dkebler</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7585</guid>
			<description><![CDATA[Using armbian bionic mainline kernel on A64-v1.1 board<br />
<span style="font-style: italic;" class="mycode_i">Linux pine64 4.19.38-sunxi64 #5.83 SMP Fri May 3 21:02:31 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux</span><br />
<br />
Need to allow non-root access to gpio pins (i.e. gpio group with access to export and unexport etc) via udev.  I've done this successfully before on an RPI but no matter what I try the gpio group and permissions are not set.   Maybe it's something specific to Pine64 so asking here.  <br />
<br />
here is one version of rules I've tried.   using udevadm I've confirmed the file is read and loaded but the changes are not made<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} &#92;; -exec chmod 770 {} &#92;; || true'"</code></div></div><br />
<br />
Any suggestions?  Anyone have a successful udev rules for this board?  If so please share]]></description>
			<content:encoded><![CDATA[Using armbian bionic mainline kernel on A64-v1.1 board<br />
<span style="font-style: italic;" class="mycode_i">Linux pine64 4.19.38-sunxi64 #5.83 SMP Fri May 3 21:02:31 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux</span><br />
<br />
Need to allow non-root access to gpio pins (i.e. gpio group with access to export and unexport etc) via udev.  I've done this successfully before on an RPI but no matter what I try the gpio group and permissions are not set.   Maybe it's something specific to Pine64 so asking here.  <br />
<br />
here is one version of rules I've tried.   using udevadm I've confirmed the file is read and loaded but the changes are not made<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} &#92;; -exec chmod 770 {} &#92;; || true'"</code></div></div><br />
<br />
Any suggestions?  Anyone have a successful udev rules for this board?  If so please share]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Pine64 as jtag programmer]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7526</link>
			<pubDate>Sat, 25 May 2019 12:13:09 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=772">desai_amogh</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7526</guid>
			<description><![CDATA[Hi,<br />
<br />
Here is a port of Intel's jam-stapl player for raspberry pi<br />
<br />
<a href="https://github.com/softerhardware/jam-stapl" target="_blank" rel="noopener" class="mycode_url">https://github.com/softerhardware/jam-stapl</a><br />
<br />
it programs jam files to altera FPGAs very well.  As pine64 too uses the rpi2 bus, what will I have to do to get this jam-staple player to work with pin64 A+  ??<br />
<hr class="mycode_hr" />
<dvz_me_placeholder id="0" />  any suggestions ?]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
Here is a port of Intel's jam-stapl player for raspberry pi<br />
<br />
<a href="https://github.com/softerhardware/jam-stapl" target="_blank" rel="noopener" class="mycode_url">https://github.com/softerhardware/jam-stapl</a><br />
<br />
it programs jam files to altera FPGAs very well.  As pine64 too uses the rpi2 bus, what will I have to do to get this jam-staple player to work with pin64 A+  ??<br />
<hr class="mycode_hr" />
<dvz_me_placeholder id="0" />  any suggestions ?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[configuring Euler Bus pin generate interrupt]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=7040</link>
			<pubDate>Thu, 10 Jan 2019 08:45:43 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=9572">RANJITT76</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=7040</guid>
			<description><![CDATA[Hi,  I am looking for help to configure Euler Bus pin  in Pine A64+  to generate kernel interrupt. For example. Pin no. 27(PB2) in Euler Bus, have multiplexing function of PB_EINT2.<br />
I would like to register interrupt handler for this pin in the kernel with a help of a simple kernel module.  Need help on how to define this pin characteristic in device tree file so that it can be configured to receive external interrupt. Any help will be highly apricated.<br />
<br />
Regards<br />
RANJIT]]></description>
			<content:encoded><![CDATA[Hi,  I am looking for help to configure Euler Bus pin  in Pine A64+  to generate kernel interrupt. For example. Pin no. 27(PB2) in Euler Bus, have multiplexing function of PB_EINT2.<br />
I would like to register interrupt handler for this pin in the kernel with a help of a simple kernel module.  Need help on how to define this pin characteristic in device tree file so that it can be configured to receive external interrupt. Any help will be highly apricated.<br />
<br />
Regards<br />
RANJIT]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Will EPOLL C or PIGPIO C work on pine64?]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=5716</link>
			<pubDate>Thu, 15 Feb 2018 16:43:38 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6838">dkebler</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=5716</guid>
			<description><![CDATA[I write in <span style="font-weight: bold;" class="mycode_b">nodejs exclusively</span> and on RPI I use this library to control GPIOs<br />
<a href="https://github.com/fivdi/pigpio" target="_blank" rel="noopener" class="mycode_url">https://github.com/fivdi/pigpio</a><br />
This module creates bindings to the excellent PIGPIO C library  here <a href="https://github.com/joan2937/pigpio" target="_blank" rel="noopener" class="mycode_url">https://github.com/joan2937/pigpio</a><br />
and with it and this i2c bus module <a href="https://github.com/fivdi/i2c-bus" target="_blank" rel="noopener" class="mycode_url">https://github.com/fivdi/i2c-bus</a> I can anything on the GPIO bus.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">I am sure I can get the PIGPIO C library to compile but will it be compatible with the "Pi2" bus on the Pine64?</span> <br />
If so tada I can use my nodejs code directly from RPI to Pine64 without alteration (well except maybe for some pin number translations as pointed out in other posts????)<br />
<br />
If PIGPIO C won't work the same dev has a library that uses EPOLL. <br />
<span style="font-weight: bold;" class="mycode_b">So the EPOLL C should compile but will it work with the PINE64 pi2 bus???</span><br />
<a href="https://github.com/fivdi/epoll" target="_blank" rel="noopener" class="mycode_url">https://github.com/fivdi/epoll</a><br />
<br />
I'd much rather use PIGPIO C library as I have discovered it's much more robust than the EPOLL<br />
<br />
<span style="font-weight: bold;" class="mycode_b">What are my options here?  </span><br />
I understand I can just write sysfs calls directly in nodejs but I've discovered that's not very robust.<br />
One thing I definitely do frequently on the Pi is use pins as interrupts and that is easy with PIGPIO or EPOLL.  As far as I understand if only using sysfs then you have to manually poll the pin state in your code continuously (in nodejs that would be <span style="font-style: italic;" class="mycode_i">setInterval</span>)  looking for a state change (which is really not robust at all).]]></description>
			<content:encoded><![CDATA[I write in <span style="font-weight: bold;" class="mycode_b">nodejs exclusively</span> and on RPI I use this library to control GPIOs<br />
<a href="https://github.com/fivdi/pigpio" target="_blank" rel="noopener" class="mycode_url">https://github.com/fivdi/pigpio</a><br />
This module creates bindings to the excellent PIGPIO C library  here <a href="https://github.com/joan2937/pigpio" target="_blank" rel="noopener" class="mycode_url">https://github.com/joan2937/pigpio</a><br />
and with it and this i2c bus module <a href="https://github.com/fivdi/i2c-bus" target="_blank" rel="noopener" class="mycode_url">https://github.com/fivdi/i2c-bus</a> I can anything on the GPIO bus.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">I am sure I can get the PIGPIO C library to compile but will it be compatible with the "Pi2" bus on the Pine64?</span> <br />
If so tada I can use my nodejs code directly from RPI to Pine64 without alteration (well except maybe for some pin number translations as pointed out in other posts????)<br />
<br />
If PIGPIO C won't work the same dev has a library that uses EPOLL. <br />
<span style="font-weight: bold;" class="mycode_b">So the EPOLL C should compile but will it work with the PINE64 pi2 bus???</span><br />
<a href="https://github.com/fivdi/epoll" target="_blank" rel="noopener" class="mycode_url">https://github.com/fivdi/epoll</a><br />
<br />
I'd much rather use PIGPIO C library as I have discovered it's much more robust than the EPOLL<br />
<br />
<span style="font-weight: bold;" class="mycode_b">What are my options here?  </span><br />
I understand I can just write sysfs calls directly in nodejs but I've discovered that's not very robust.<br />
One thing I definitely do frequently on the Pi is use pins as interrupts and that is easy with PIGPIO or EPOLL.  As far as I understand if only using sysfs then you have to manually poll the pin state in your code continuously (in nodejs that would be <span style="font-style: italic;" class="mycode_i">setInterval</span>)  looking for a state change (which is really not robust at all).]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SPI on mainline]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=5682</link>
			<pubDate>Fri, 09 Feb 2018 17:10:16 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=3328">jeroen79</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=5682</guid>
			<description><![CDATA[Hi,<br />
<br />
<br />
How does one get spi to work on mailine kernel?<br />
<br />
i added the following to /boot/armbianEnvt.txt so it would load the overlay but that doesn't seem to help, are the overlays outdated for mainline?<br />
 <br />
<br />
verbosity=1<br />
overlay_prefix=sun50i-a64<br />
overlays=spi-spidev<br />
param_spidev_spi_bus=0<br />
<br />
<br />
Thx,<br />
Jeroen]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
<br />
How does one get spi to work on mailine kernel?<br />
<br />
i added the following to /boot/armbianEnvt.txt so it would load the overlay but that doesn't seem to help, are the overlays outdated for mainline?<br />
 <br />
<br />
verbosity=1<br />
overlay_prefix=sun50i-a64<br />
overlays=spi-spidev<br />
param_spidev_spi_bus=0<br />
<br />
<br />
Thx,<br />
Jeroen]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[xbox 360 chatpad]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=5493</link>
			<pubDate>Sun, 24 Dec 2017 04:05:33 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=7611">drock</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=5493</guid>
			<description><![CDATA[I have been reading up on the xbox 360 chatpad.  It appears to be a very cheap mini keyboard that communicates over a uart.  The raspberry pi community has a driver for it.  I was wondering if any pine users had an interest in doing something similar.  I am not sure where to start writing a driver.  It seems like a fairly simple interface that has been mapped out <a href="http://cliffle.com/project/chatpad/protocol/" target="_blank" rel="noopener" class="mycode_url">here</a>. <br />
<br />
I get the main idea is to open a uart, process the inputs, and decipher the key presses. After that is where I am lost as to make the OS see it as a key press input.<br />
<br />
Any interest or advice would be cool.  Thanks]]></description>
			<content:encoded><![CDATA[I have been reading up on the xbox 360 chatpad.  It appears to be a very cheap mini keyboard that communicates over a uart.  The raspberry pi community has a driver for it.  I was wondering if any pine users had an interest in doing something similar.  I am not sure where to start writing a driver.  It seems like a fairly simple interface that has been mapped out <a href="http://cliffle.com/project/chatpad/protocol/" target="_blank" rel="noopener" class="mycode_url">here</a>. <br />
<br />
I get the main idea is to open a uart, process the inputs, and decipher the key presses. After that is where I am lost as to make the OS see it as a key press input.<br />
<br />
Any interest or advice would be cool.  Thanks]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Controlling a Servo Motor]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=4755</link>
			<pubDate>Thu, 13 Jul 2017 19:14:50 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=4561">casmiguefl</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=4755</guid>
			<description><![CDATA[I'm finding it impossible to work with GPIO and wanted to connect a small servo motor to the Pine64 in order to control it.<br />
<br />
In this particular case I want to set 2 particular degrees depending on a variable.<br />
With an Arduino, this is basic: Servo.attach(#controlpin); Servo.write(#angle);<br />
<br />
Any tutorials around on how to do it here?]]></description>
			<content:encoded><![CDATA[I'm finding it impossible to work with GPIO and wanted to connect a small servo motor to the Pine64 in order to control it.<br />
<br />
In this particular case I want to set 2 particular degrees depending on a variable.<br />
With an Arduino, this is basic: Servo.attach(#controlpin); Servo.write(#angle);<br />
<br />
Any tutorials around on how to do it here?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SystemLED *ON* on boot]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=4581</link>
			<pubDate>Sat, 10 Jun 2017 00:53:35 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6705">ecolezen</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=4581</guid>
			<description><![CDATA[Hi, just want to share a little tip:<br />
How to turn the systemLED ("LED") to *ON* when the board is booting (loading the system).<br />
<br />
<img src="http://www13.plala.or.jp/pskitty/img/pa64sysled/DSC_0045-photo-led.jpg" loading="lazy"  alt="[Image: DSC_0045-photo-led.jpg]" class="mycode_img" /><br />
<br />
My 1GB Pine64 Board sometimes start booting process and sometimes don't... so I have to way and "see" activities on the screen or LAN interface...<br />
<br />
So, I decided to put an LED on the systemLED holes (label "LED"), and switch it to ON when booting...<br />
<br />
<img src="http://www13.plala.or.jp/pskitty/img/pa64sysled/pine64-drawing-v2-p6.jpg" loading="lazy"  alt="[Image: pine64-drawing-v2-p6.jpg]" class="mycode_img" /><br />
<br />
When using without a monitor (remote) this LED is very helpful...<br />
<br />
These 3 lines of script turn the LED to "ON":<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>echo "359" &gt; /sys/class/gpio/export <br />
echo "out" &gt; /sys/class/gpio/gpio359/direction<br />
echo "0"   &gt; /sys/class/gpio/gpio359/value</code></div></div><br />
<br />
Full instructions on the link below:<br />
<a href="http://www13.plala.or.jp/pskitty/pine64-sysled.html" target="_blank" rel="noopener" class="mycode_url">http://www13.plala.or.jp/pskitty/pine64-sysled.html</a><br />
<br />
Drawings, source code, high quality photo, etc, on GitHub:<br />
<a href="https://github.com/valterfukuoka/pine64-sysled" target="_blank" rel="noopener" class="mycode_url">https://github.com/valterfukuoka/pine64-sysled</a><br />
<br />
Regards all,<br />
Valter]]></description>
			<content:encoded><![CDATA[Hi, just want to share a little tip:<br />
How to turn the systemLED ("LED") to *ON* when the board is booting (loading the system).<br />
<br />
<img src="http://www13.plala.or.jp/pskitty/img/pa64sysled/DSC_0045-photo-led.jpg" loading="lazy"  alt="[Image: DSC_0045-photo-led.jpg]" class="mycode_img" /><br />
<br />
My 1GB Pine64 Board sometimes start booting process and sometimes don't... so I have to way and "see" activities on the screen or LAN interface...<br />
<br />
So, I decided to put an LED on the systemLED holes (label "LED"), and switch it to ON when booting...<br />
<br />
<img src="http://www13.plala.or.jp/pskitty/img/pa64sysled/pine64-drawing-v2-p6.jpg" loading="lazy"  alt="[Image: pine64-drawing-v2-p6.jpg]" class="mycode_img" /><br />
<br />
When using without a monitor (remote) this LED is very helpful...<br />
<br />
These 3 lines of script turn the LED to "ON":<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>echo "359" &gt; /sys/class/gpio/export <br />
echo "out" &gt; /sys/class/gpio/gpio359/direction<br />
echo "0"   &gt; /sys/class/gpio/gpio359/value</code></div></div><br />
<br />
Full instructions on the link below:<br />
<a href="http://www13.plala.or.jp/pskitty/pine64-sysled.html" target="_blank" rel="noopener" class="mycode_url">http://www13.plala.or.jp/pskitty/pine64-sysled.html</a><br />
<br />
Drawings, source code, high quality photo, etc, on GitHub:<br />
<a href="https://github.com/valterfukuoka/pine64-sysled" target="_blank" rel="noopener" class="mycode_url">https://github.com/valterfukuoka/pine64-sysled</a><br />
<br />
Regards all,<br />
Valter]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[GPIO, SPI and I2C C++ Lib]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=4471</link>
			<pubDate>Thu, 20 Apr 2017 22:00:21 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6539">databit</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=4471</guid>
			<description><![CDATA[Hi to everyone! I'm a CS teacher and for some time I playing with my Pine64+. Last week, I built a C++ library (in object oriented paradigm) for manage GPIO, I2C and SPI.<br />
<br />
<br />
<a href="https://github.com/databit/Pine64-CPP" target="_blank" rel="noopener" class="mycode_url">https://github.com/databit/Pine64-CPP</a><br />
<br />
<br />
This lib is based on the work of Eric Ptak &lt;trouch@trouch.com&gt;, Stefan Mavrodiev &lt;support@olimex.com&gt; and Kamil Trzcinski &lt;ayufan@ayufan.eu&gt;<br />
<br />
I hope this library can be of help to you!<br />
<br />
Send me yours comments and eventual bugs.]]></description>
			<content:encoded><![CDATA[Hi to everyone! I'm a CS teacher and for some time I playing with my Pine64+. Last week, I built a C++ library (in object oriented paradigm) for manage GPIO, I2C and SPI.<br />
<br />
<br />
<a href="https://github.com/databit/Pine64-CPP" target="_blank" rel="noopener" class="mycode_url">https://github.com/databit/Pine64-CPP</a><br />
<br />
<br />
This lib is based on the work of Eric Ptak &lt;trouch@trouch.com&gt;, Stefan Mavrodiev &lt;support@olimex.com&gt; and Kamil Trzcinski &lt;ayufan@ayufan.eu&gt;<br />
<br />
I hope this library can be of help to you!<br />
<br />
Send me yours comments and eventual bugs.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Is there anyway to get spidev0 under /dev]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=4257</link>
			<pubDate>Thu, 09 Mar 2017 14:14:27 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=6306">serdarot5</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=4257</guid>
			<description><![CDATA[I need to use flashrom utility for flashing my bios rom. And flashrom need spi and spi device should be in spidev0.0 how can i do that in pine64? I searched a lot but i couldnt found. Someone said i should change device tree but i dont know how. Thanks a lot.]]></description>
			<content:encoded><![CDATA[I need to use flashrom utility for flashing my bios rom. And flashrom need spi and spi device should be in spidev0.0 how can i do that in pine64? I searched a lot but i couldnt found. Someone said i should change device tree but i dont know how. Thanks a lot.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Read GPIO problem]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=3682</link>
			<pubDate>Tue, 21 Feb 2017 10:00:13 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=5932">shworker</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=3682</guid>
			<description><![CDATA[I use Pine64 A64-DB-Rev B board and Debian Jessie.<br />
<br />
I need read some GPIO pins (69 and 233 on RPI connector) using sysfs. I use pullup resistors (10k) to 3.3v. Measure voltage on these pins. I get 3 v.<br />
Set direction to 'in'.<br />
But, reading /sys/class/gpio/gpioXX/value i always got 0 !<br />
<br />
If switch direction to out, then back to in, reading get 1 ! <br />
<br />
Simple script to test:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/sh<br />
<br />
SYSFSDIR=/sys/class/gpio<br />
DOOR_PIN=69<br />
UPLVLPIN=233<br />
<br />
setup(){<br />
    if [ ! -d &#36;SYSFSDIR/gpio&#36;1 ] ; then<br />
        echo &#36;1 &gt; &#36;SYSFSDIR/export<br />
    fi<br />
    # If comment out these 2 lines - always read 0 !<br />
    echo 'out' &gt; &#36;SYSFSDIR/gpio&#36;1/direction<br />
    echo 'in' &gt; &#36;SYSFSDIR/gpio&#36;1/direction<br />
}<br />
<br />
gpio_read(){<br />
    cat &#36;SYSFSDIR/gpio&#36;1/value<br />
}<br />
<br />
setup &#36;DOOR_PIN<br />
setup &#36;UPLVLPIN<br />
<br />
case "&#36;1" in<br />
    door)<br />
        gpio_read &#36;DOOR_PIN<br />
        ;;<br />
    uplevel)<br />
        gpio_read &#36;UPLVLPIN<br />
        ;;<br />
    *)<br />
        usage<br />
        ;;<br />
esac</code></div></div><br />
PS: Sorry for my bad english, my native language is Russian <img src="https://forum.pine64.org/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />]]></description>
			<content:encoded><![CDATA[I use Pine64 A64-DB-Rev B board and Debian Jessie.<br />
<br />
I need read some GPIO pins (69 and 233 on RPI connector) using sysfs. I use pullup resistors (10k) to 3.3v. Measure voltage on these pins. I get 3 v.<br />
Set direction to 'in'.<br />
But, reading /sys/class/gpio/gpioXX/value i always got 0 !<br />
<br />
If switch direction to out, then back to in, reading get 1 ! <br />
<br />
Simple script to test:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/sh<br />
<br />
SYSFSDIR=/sys/class/gpio<br />
DOOR_PIN=69<br />
UPLVLPIN=233<br />
<br />
setup(){<br />
    if [ ! -d &#36;SYSFSDIR/gpio&#36;1 ] ; then<br />
        echo &#36;1 &gt; &#36;SYSFSDIR/export<br />
    fi<br />
    # If comment out these 2 lines - always read 0 !<br />
    echo 'out' &gt; &#36;SYSFSDIR/gpio&#36;1/direction<br />
    echo 'in' &gt; &#36;SYSFSDIR/gpio&#36;1/direction<br />
}<br />
<br />
gpio_read(){<br />
    cat &#36;SYSFSDIR/gpio&#36;1/value<br />
}<br />
<br />
setup &#36;DOOR_PIN<br />
setup &#36;UPLVLPIN<br />
<br />
case "&#36;1" in<br />
    door)<br />
        gpio_read &#36;DOOR_PIN<br />
        ;;<br />
    uplevel)<br />
        gpio_read &#36;UPLVLPIN<br />
        ;;<br />
    *)<br />
        usage<br />
        ;;<br />
esac</code></div></div><br />
PS: Sorry for my bad english, my native language is Russian <img src="https://forum.pine64.org/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SPI enable?]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=3145</link>
			<pubDate>Tue, 17 Jan 2017 02:40:16 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=5296">herialtifa</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=3145</guid>
			<description><![CDATA[Anybody to success enable spi port in GPIO?<br />
<br />
what your linux version?]]></description>
			<content:encoded><![CDATA[Anybody to success enable spi port in GPIO?<br />
<br />
what your linux version?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[GPIO fiq capability]]></title>
			<link>https://forum.pine64.org/showthread.php?tid=2700</link>
			<pubDate>Wed, 09 Nov 2016 23:45:57 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.pine64.org/member.php?action=profile&uid=4363">joseph</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.pine64.org/showthread.php?tid=2700</guid>
			<description><![CDATA[Hello all,<br />
<br />
I want to bind the FIQ to a GPIO pin input processing.  Is this functionality available on the Pine64?  <br />
<br />
I see definition of the pending request in drivers/irqchip/irq-sun4i.c, <br />
#define SUN4I_IRQ_FIQ_PENDING_REG(x)    (0x20 + 0x4 * x)<br />
but no reference or apparent support in the module.<br />
<br />
Should I be looking elsewhere?<br />
<br />
Thank you,   Joe]]></description>
			<content:encoded><![CDATA[Hello all,<br />
<br />
I want to bind the FIQ to a GPIO pin input processing.  Is this functionality available on the Pine64?  <br />
<br />
I see definition of the pending request in drivers/irqchip/irq-sun4i.c, <br />
#define SUN4I_IRQ_FIQ_PENDING_REG(x)    (0x20 + 0x4 * x)<br />
but no reference or apparent support in the module.<br />
<br />
Should I be looking elsewhere?<br />
<br />
Thank you,   Joe]]></content:encoded>
		</item>
	</channel>
</rss>