Update RMT.md

This commit is contained in:
HomeSpan 2024-02-08 21:00:49 -06:00 committed by GitHub
parent e2d954684f
commit b25a38fa3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,6 @@
# Remote Control Radio Frequency / Infrared Signal Generation # Remote Control 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 by placing the following near the top of your sketch: The ESP32 has an on-chip Remote Control (RMT) signal-generator designed to drive an RF or IR transmitter. HomeSpan includes a dedicated, easy-to-use class, **RFControl**, that interfaces with the ESP32 RMT 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.
`#include "extras/RFControl.h"`
## *RFControl(int pin, boolean refClock=true)* ## *RFControl(int pin, boolean refClock=true)*
@ -93,7 +91,6 @@ Below is a complete sketch that produces two different pulse trains with the sig
/* HomeSpan Remote Control 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
void setup() { void setup() {