Update Extras.md

This commit is contained in:
HomeSpan 2020-11-27 22:41:44 -06:00 committed by GitHub
parent 1dd01fcacc
commit c5b6dd39f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -74,10 +74,10 @@ Since most RF/IR signals repeat the same train of pulses more than once, the dur
* *tickTime* - the duration, in **microseconds**, of a *tick*. This is an optional argument with a default of 1𝛍s if not specified. Valid range is 1-255𝛍s, or set to 0 for 256𝛍s * *tickTime* - the duration, in **microseconds**, of a *tick*. This is an optional argument with a default of 1𝛍s if not specified. Valid range is 1-255𝛍s, or set to 0 for 256𝛍s
Below is a complete example that produces two different pulse trains with the signal output linked to the ESP32 device's built-in LED. For illustrative purposes the tick duration has been set to a very long 100𝛍s, and pulse times range from of 1000-10,000 ticks, so that the individual pulses are easily discernable on the LED. Below is a complete sketch that produces two different pulse trains with the signal output linked to the ESP32 device's built-in LED (rather than an RF or IR transmitter). For illustrative purposes the tick duration has been set to a very long 100𝛍s, and pulse times range from of 1000-10,000 ticks, so that the individual pulses are easily discernable on the LED. Note this example sketch is also available in the Arudino IDE under *File → Examples → HomeSpan → Other Examples → RemoteControl*
```C++ ```C++
/* HomeSpan RF Transmitter Example */ /* HomeSpan Remote Control Example */
#include "HomeSpan.h" // include the HomeSpan library #include "HomeSpan.h" // include the HomeSpan library
#include "extras/RFControl.h" // include RF Control Library #include "extras/RFControl.h" // include RF Control Library