Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Which WiringPi for NanoPi NEO

Featured Replies

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?

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

 

  • Author

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.

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

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.