From 8f2fdc8a1547b91ceac056a330409fead8941086 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Thu, 26 Nov 2020 22:47:21 -0600 Subject: [PATCH] Update Extras.md --- docs/Extras.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/Extras.md b/docs/Extras.md index 968f93f..46a09b0 100644 --- a/docs/Extras.md +++ b/docs/Extras.md @@ -40,6 +40,24 @@ See tutorial sketch [#10 (RGB_LED)](../examples/10-RGB_LED) for an example of us ## 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) + + + + + + + ---