Skip to content

Instantly share code, notes, and snippets.

View maniac-on-moon's full-sized avatar

maniac-on-moon

View GitHub Profile
@keriszafir
keriszafir / gpio-interrupt.c
Last active November 8, 2023 10:40
gpio-interrupt - C routine for handling interrupts generated on GPIO
/* Demonstration C GPIO interrupt handling routine for Raspberry Pi
This is a modified code found at https://github.com/phil-lavin/raspberry-pi-gpio-interrupt
The program displays a notice whenever you:
-turn on the Raspberry Pi's pin 11 (apply 3.3V),
-turn the pin off.
This routine uses wiringPi library (follow the installation instructions at wiringpi.com),
and should be compiled with a command: