Update Extras.md

This commit is contained in:
HomeSpan 2020-11-26 22:47:21 -06:00 committed by GitHub
parent 6a87dc4f4e
commit 8f2fdc8a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,24 @@ See tutorial sketch [#10 (RGB_LED)](../examples/10-RGB_LED) for an example of us
## Radio Frequency / Infrared Signal Generation ## Radio Frequency / Infrared Signal Generation
The ESP32 has an on-chip signal-generator peripheral designed to drive an RF or IR transmitter. HomeSpan includes an easy-to-use library that interfaces with this peripheral so that with a few additional electronic components you can create a HomeSpan device that controls an RF or IR appliance directly from the Home App on your iPhone, or via Siri. The library is accessed as follows:
`#include "extras/RFControl.h"`
### *RFControl(int pin)*
Creating an instance of this **class** initializes the RF/IR signal generator and specifies the ESP32 output *pin*. You may create more than once instance of this class if driving more than one RF/IR transmitter (each connected to different *pin*).
The following methods are supported:
(to be continued)
--- ---