Power & Source of Big Ideas

Please update the WIKI for the WiringPI Section

Moderators: chensy, FATechsupport

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
Please also update the wiki with the great news mentioned here:
viewtopic.php?f=47&t=437#p1789
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();

Who is online

In total there are 27 users online :: 0 registered, 0 hidden and 27 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 27 guests