Skip to content

Commit 42d6d8b

Browse files
committed
update readme
1 parent 5844312 commit 42d6d8b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# PulseInput
2-
This is a simple library for an interrupt based, non-blocking alternative to Arduino's [pulseIn](https://reference.arduino.cc/reference/cs/language/functions/advanced-io/pulsein/) function.
3-
4-
It's well suited to read the channels of a RC receiver or the output of an ultrasonic distance sensor. Given that it uses interrupts to measure the signals, one can read multiple signals without delays in the main loop.
2+
This is a simple library for an interrupt based, non-blocking alternative to Arduino's [pulseIn](https://reference.arduino.cc/reference/cs/language/functions/advanced-io/pulsein/) function. Since it uses interrupts to measure signals, one can read multiple signals without fear of delays in the main loop.
53

64
# How it works
75
A pin change interrupt is used to detect when a signal is rising or falling, and the _on-time_ of the signal is measured in microseconds. As such, this library is only suited to decode PWM-like signals, where the time of the pulse-width (on-time) determines the value of the signal.

0 commit comments

Comments
 (0)