User Manual

47
Attach the output pin (e.g. pin 3) of the 555 timer to GPIO0 of the Raspberry Pi, configure
GPIO0 as the mode of the rising edge interrupt by programming, and then detect the
square wave pulses generated by the 555 timer with interrupt. The work of Interrupt Service
Routine (ISR) is to add 1 to a variable.