Author: linga51

GPIO library - WiringPi

[Copy link]

1

threads

15

posts

103

credits

Registered member

Rank: 2

credits
103
Published in 2016-3-14 17:07:22 | Show all floors
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
Published in 2016-3-14 17:36:10 | Show all floors
I double-checked everything, does not work.
Do not believe all

2

threads

144

posts

1104

credits

Gold member

Rank: 6Rank: 6

credits
1104
Published in 2016-3-14 17:48:58 | Show all floors
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
Published in 2016-3-14 18:02:56 | Show all floors
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
Published in 2016-3-16 00:59:19 | Show all floors
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
Published in 2016-3-16 01:54:51 | Show all floors
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 code





1

threads

12

posts

47

credits

Novice

Rank: 1

credits
47
Published in 2016-3-16 02:37:41 | Show all floors
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

1104

credits

Gold member

Rank: 6Rank: 6

credits
1104
Published in 2016-3-16 03:10:23 | Show all floors
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
Published in 2016-3-16 04:02:12 | Show all floors
my board is orange pi one

1

threads

12

posts

47

credits

Novice

Rank: 1

credits
47
Published in 2016-3-16 04:05:01 | Show all floors
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 need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list