O'Reilly logo
  • Bill Levien thinks this is interesting:

unsigned long pulseIn(pin, value)Measures the duration of a pulse coming in on one of the digital inputs. This is useful, for example, to read some infrared sensors or accelerometers that output their value as pulses of changing duration.


Cover of Getting Started with Arduino, 2nd Edition


Perfect for reading the pulses from an R/C Receiver, meant to go to Servos or ESCs!