http://arduino.cc/en/Reference/DigitalRead digitalReadhttp://arduino.cc/en/Reference/AttachInterrupt external interruptshttp://arduino.cc/en/Reference/PulseIn pulseInhttp://arduino.cc/en/Tutorial/Button Using digitalReadhttp://arduino.cc/en/Tutorial/ButtonStateChange edge detectionThey should explain interrupts, digitalRead, pulseIn, and reading pins with digitalRead. After you've mastered that, you can try learning port manipulation for faster digitalReads.Onions.
The page "Reference/DigitalReadDigitalRead" doesn't exist. The page "Reference/AttachInterruptExternalInterrupts" doesn't exist.
Have you worked through the most basic programming examples, included in the Arduino IDE?The flank detection example is the "StateChangeDetection" example. Simply open it under menu option "File-Examples"
But the given links do.
rising and falling edge of a push button