GpioIrq
Example of using sysfs for edge detection interrupts on the Omega's GPIOs
Install / Use
/learn @OnionIoT/GpioIrqREADME
gpioIrq
Example of using sysfs for edge detection interrupts on the Omega's GPIOs.
Compilation
In order to run this program on the Omega2, it must first be compiled for the MIPS architecture.
The available options:
- Since this program does not use any external libraries, it can be compiled directly on the Omega. See the Onion Documentation for Compiling C programs on the Omega
- It can also be cross-compiled using the LEDE build system, see the Onion Documentation for Cross-Compilation for the Omega for more details
Both methods will work, it is up to the user.
Usage
The executable is meant to be run with an argument that identifies the GPIO pin which is to be monitored for a change in the voltage level (an edge):
./gpioIrq <GPIO-Number>
To test this program, run it and try using a jumper wire to connect the selected GPIO to GND and then 3.3V. Monitor the output of the program and observe what happens.
Related Skills
node-connect
341.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
