Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12
Return to list New
Author: jacer

WiringOP a GPIO library for Oangepi PC/ Plus is released for testing.

[Copy link]

18

Threads

303

Posts

7735

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7735
 Author| Post time 2015-12-2 17:06:32 | Show all posts
zenoize replied at 2015-11-30 00:24
Hello, I am using Loboris Debian XFCE img that works stable on my Orange PI Plus.
Sorry for my Engli ...

You can ask zhaolei or sauberpauli for help. His email address is  zhaolei@i1602.com.

3

Threads

44

Posts

963

Credits

Senior member

Rank: 4

Credits
963
Post time 2015-12-23 02:59:56 | Show all posts
None of the blink examples seem to work.

And trying to turn on a pin from the command line does not work.

gpio mode 0 out
gpio write 0 1

*should* turn on physical pin 11; it does not

1

Threads

11

Posts

104

Credits

Registered member

Rank: 2

Credits
104
Post time 2016-1-18 01:51:12 | Show all posts
zenoize replied at 2015-11-30 00:24
Hello, I am using Loboris Debian XFCE img that works stable on my Orange PI Plus.
Sorry for my Engli ...

Hear was something about this ..... http://orangepi.pp.ua/index.php/board,27.0.html

2

Threads

19

Posts

110

Credits

Registered member

Rank: 2

Credits
110
Post time 2016-1-22 17:12:09 | Show all posts
In the software posted the following is part of wiringPi.c but with orangePi the gpio module will create a path  "sys/class/gpio_sw" in sysfs. Is this just a simple fix in the path or will this be more complicated?

if (sysFds [bcmGpioPin] == -1)
  {
    sprintf (fName, "/sys/class/gpio/gpio%d/value", bcmGpioPin) ;
    if ((sysFds [bcmGpioPin] = open (fName, O_RDWR)) < 0)
      return wiringPiFailure (WPI_FATAL, "wiringPiISR: unable to open %s: %s\n", fName, strerror (errno)) ;
  }

0

Threads

1

Posts

10

Credits

Novice

Rank: 1

Credits
10
Post time 2016-9-16 22:21:06 | Show all posts
vlad_ru replied at 2016-1-18 01:51
Hear was something about this ..... http://orangepi.pp.ua/index.php/board,27.0.html

Thanks vlad for the link.
git clone https://github.com/WereCatf/WiringOP.git -b h3
works for my PC+ armbian 3.4.112-sun8i, especially  wiringPiISR


12
Return to list New
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-18 03:59 GMT+8 , Processed in 0.030181 second(s), 19 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list