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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: linga51

GPIO library - WiringPi

[Copy link]

1

Threads

15

Posts

103

Credits

Registered member

Rank: 2

Credits
103
Post time 2016-3-14 17:07:22 | Show all posts
Edited by StaLeWaR29 at 2016-3-14 13:15

@WereCatf

Thanks for the quick response!
I updated the library just as you advised. He stopped to consider at all.


P.S > I'm sorry, I now have a problem with the connection

1

Threads

15

Posts

103

Credits

Registered member

Rank: 2

Credits
103
Post time 2016-3-14 17:36:10 | Show all posts
I double-checked everything, does not work.
Do not believe all

2

Threads

144

Posts

874

Credits

Senior member

Rank: 4

Credits
874
Post time 2016-3-14 17:48:58 | Show all posts
StaLeWaR29 replied at 2016-3-14 17:36
I double-checked everything, does not work.
Do not believe all

I reverted the commit, there must be something else that's wrong with your setup -- it should work as-is. Are you sure you don't have e.g. some other app trying to access the same pin or something similar?

1

Threads

15

Posts

103

Credits

Registered member

Rank: 2

Credits
103
Post time 2016-3-14 18:02:56 | Show all posts
Edited by StaLeWaR29 at 2016-3-14 14:04

yes, I am sure
I commented out your latest code changes.
And it came back. Considers again.

May be used execl not the best solution?
exeсl in a process executes an executable file, and then terminates the process.
My experience is small, maybe I confuse

1

Threads

12

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2016-3-16 00:59:19 | Show all posts
Edited by volkancc at 2016-3-16 01:05
WereCatf replied at 2016-2-17 09:26
I got fed up and took a look at this stuff. I fixed WiringOP to support interrupts and at least in m ...

i try to install armbian latest source and clone package and compile all is ok

but i want to test your code ISR mean
give error

gpio: Unable to open GPIO direction interface for pin 15: No such file or directory
wiringPiISR: unable to open /sys/class/gpio/gpio15/value: No such file or directory        

lsmod result is :

Module                  Size  Used by
8189es                896688  0         



I use Armbian latest

2

Threads

19

Posts

110

Credits

Registered member

Rank: 2

Credits
110
Post time 2016-3-16 01:54:51 | Show all posts
Edited by apocalyps at 2016-3-16 01:56
volkancc replied at 2016-3-16 00:59
i try to install armbian latest source and clone package and compile all is ok

but i want to test ...

Make sure you have gpio sysfs compiled in your kernel so see if the directory excists. Also try gpio readall and be sure you have the right pin.

  1. root@orangepipc:/sys/class/gpio/gpio199# find
  2. .
  3. ./edge
  4. ./power
  5. ./power/control
  6. ./power/async
  7. ./power/runtime_enabled
  8. ./power/runtime_active_kids
  9. ./power/runtime_active_time
  10. ./power/autosuspend_delay_ms
  11. ./power/runtime_status
  12. ./power/runtime_usage
  13. ./power/runtime_suspended_time
  14. ./value
  15. ./active_low
  16. ./device
  17. ./subsystem
  18. ./uevent
  19. ./direction
Copy the Code





1

Threads

12

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2016-3-16 02:37:41 | Show all posts
i think my kernel is not rigth but i use armbian how can i recompile my kernel

my ls result is :
root@orangepione:~# ls /sys/class/gpio/
export  gpiochip0  unexport         

2

Threads

144

Posts

874

Credits

Senior member

Rank: 4

Credits
874
Post time 2016-3-16 03:10:23 | Show all posts
volkancc replied at 2016-3-16 00:59
i try to install armbian latest source and clone package and compile all is ok

but i want to test ...

I do not know what you're doing wrong, but it shouldn't be trying to export gpio15. WiringOP-pin 15 is gpio198, not gpio15. You have messed something up.

1

Threads

12

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2016-3-16 04:02:12 | Show all posts
my board is orange pi one

1

Threads

12

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2016-3-16 04:05:01 | Show all posts
WereCatf replied at 2016-3-16 03:10
I do not know what you're doing wrong, but it shouldn't be trying to export gpio15. WiringOP-pin 1 ...

can you share os image with us ? i wanna test with ur kernel
You have to log in before you can reply Login | Register

Points Rules

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

2020-1-20 20:20 GMT+8 , Processed in 0.034828 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list