Jump to content

Which WiringPi for NanoPi NEO


aliceander

Recommended Posts

I'm having trouble porting some WiringPi programs to my NanoPi Neo.  I have an original neo v1.0 running the latest armbian stretch (as of Oct 04 2018).  Have tried several, including mstroh76/WiringNP, and can compile, but programs hang when executed.  I'm okay if this is the deep-end of the pool but I wanted to verify that I an indeed in deep waters or if I'm doing something dumb and really in the shallow waters and all I have to do is stand up to get my head out of the water.

 

Which WiringPi library should I be using for C language programs on a NanoPi NEO v1.0 running a recent Armbina Stretch release?

Link to comment
Share on other sites

Try this

 

https://github.com/wertyzp/WiringNP

 

It's my environment

 

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


$ cat /etc/armbian-release
# PLEASE DO NOT EDIT THIS FILE
BOARD=nanopineo
BOARD_NAME="NanoPi Neo"
BOARDFAMILY=sun8i
VERSION=5.60
LINUXFAMILY=sunxi
BRANCH=next
ARCH=arm
IMAGE_TYPE=stable
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage

 

Link to comment
Share on other sites

WiringNP looks like it should work; compiles and installs, gpio readall run ok, and I can compile apps including the library.  The problem may be with the app.

 

I'm running https://github.com/bigjosh/NeoUart with one neopixel with connections [GND pin 6,VDD pin 1, DIN pin 8 (GPIO 14, TX UART), DOUT unconnected].  Runs ok on a raspi model b+, but when I run on a neopi neo it spins a processor at %100 and hangs.  I remember that orange pi's had their pin orientation rotated oddly (180), so I verified the pinout, but the neo seems to follow expected orientation.

 

My armbian-release and os-release are the same as @nopnop2002.  I'll review @Tido's suggestion this morning.

Link to comment
Share on other sites

22 hours ago, aliceander said:

I'm running https://github.com/bigjosh/NeoUart with one neopixel with connections [GND pin 6,VDD pin 1, DIN pin 8 (GPIO 14, TX UART), DOUT unconnected]. 

 

 

Without using WiringPi, address operation of gpio is being performed directly, so NeoUart doesn't work with Opi.

 

I have not tried, but you can probably use this.

https://github.com/vanvught/rpidmx512/tree/master/lib-ws28xx

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines