login|Register
Forum > Beginners
Post|
看12336|回6|Favorite
isan 看全部
2016-9-20 18:07:29
I install Jessie server / armbian on orange pi one and install wiring op on it from this link https://github.com/zhaolei/WiringOP
and for test interrupt I use this example form https://github.com/n.../examples/isr.c
as he said in comment for test write

code:

  1. gpio mode 0 up
  2. gpio mode 0 down
in other terminal , I did this and it just print waiting...
my question is , Is wiringPiISR  working on orange pi one?
If the answer is yes, what should happen in this example?
Is it need any thing to connect to the pin Externally?
or can give me an other example for interrupt?


nopnop2002 看全部
2016-9-20 19:10:09
wiringPiISR  isn't working on orange pi.

There are no functions of the interrupt in GPIO of OPI.
isan 看全部
2016-9-21 13:05:53
So, what should I do?
nopnop2002 看全部
2016-9-21 19:30:03
Edited by nopnop2002 at 2016-9-21 19:40

quote:

isan replied at 2016-9-21 13:05
So, what should I do?

waitForInterrupt doesn't also work in OPI.
Please use RPI
isan 看全部
2016-9-27 16:50:14
Edited by isan at 2016-9-27 16:54

I get wiring op from this link
https://github.com/WereCatf/WiringOP
and install it and interrupt works.
12NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC