Skip to content

Commit 3ddabb6

Browse files
committed
update readme
1 parent 1973329 commit 3ddabb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
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.
33

44
# Example uses
5-
This library is well suited to read the signals of a RC receiver or the output of an ultrasonic distance sensor. Since it uses interrupts to measure the signals, one can read multiple signals without long delays in the main loop of a sketch.
5+
This library is 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 long delays in the main loop of a sketch.
66

77
# How it works
8-
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. This time is stored and used as the "data" of the signal. Therefore, this library is only suited to decode PWM-like signals, where the time of the pulse-width determines the value of the signal.
8+
Pin change interrupts are used to detect when a signal is rising or falling, and the _on-time_ of the signal is measured in microseconds. Therefore, 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.
99

1010
![image](diagram.png)
1111

0 commit comments

Comments
 (0)