Page 1 of 1

Please update the WIKI for the WiringPI Section

Posted: Sun Apr 30, 2017 6:01 am
by pezi
WIKI: http://wiki.friendlyarm.com/wiki/index. ... for_NanoPi

Please update your fork repo - or provide the original repo
https://github.com/wertyzp/WiringNP

The original repo fixed some important errors - there were some pin mapping errors. It costs me nearly some hours to find the pin mapping error. The matrix code works fine, but the the WiringPI code fails. At the end I found the error - errors inside the pin mapping table. But I also realized that these errors are fixed in the original repo!

Background - I started a NanoPi port of http://pi4j.com/ - Details: https://github.com/Pi4J/pi4j/issues/279

with best regards
Peter

Re: Please update the WIKI for the WiringPI Section

Posted: Sun Apr 30, 2017 9:53 am
by thomaspfeiffer
Please also update the wiki with the great news mentioned here:
viewtopic.php?f=47&t=437#p1789

Re: Please update the WIKI for the WiringPI Section

Posted: Thu May 18, 2017 8:28 am
by lawrence
pezi wrote:
WIKI: http://wiki.friendlyarm.com/wiki/index. ... for_NanoPi

Please update your fork repo - or provide the original repo
https://github.com/wertyzp/WiringNP

The original repo fixed some important errors - there were some pin mapping errors. It costs me nearly some hours to find the pin mapping error. The matrix code works fine, but the the WiringPI code fails. At the end I found the error - errors inside the pin mapping table. But I also realized that these errors are fixed in the original repo!

Background - I started a NanoPi port of http://pi4j.com/ - Details: https://github.com/Pi4J/pi4j/issues/279

with best regards
Peter


Hi, we have updated WiringNP to support wPi and BCM Pin Number, for NanoPi NEO/NEO2, you can install it by running the following commands:

git clone https://github.com/friendlyarm/WiringNP
cd WiringNP/
chmod 755 build
./build

as the following example shows:
//using wiringPi Pin Number
int pin = 18;
wiringPiSetup ();

//using Physical Pin Number
int pin = 38;
wiringPiSetupPhys();

//using BCM Pin Number
int pin = 5;
wiringPiSetupGpio();