Update Stepper.md
This commit is contained in:
parent
2fb1eab51c
commit
8be3b7ab6c
|
|
@ -1,9 +1,16 @@
|
|||
# Remote Control Radio Frequency / Infrared Signal Generation
|
||||
# Stepper Motor Control
|
||||
|
||||
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:
|
||||
|
||||
`#include "extras/RFControl.h"`
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
....
|
||||
|
||||
|
||||
## *RFControl(int pin, boolean refClock=true)*
|
||||
|
||||
Creating an instance of this **class** initializes the RF/IR signal generator and specifies the ESP32 *pin* to output the signal. You may create more than one instance of this class if driving more than one RF/IR transmitter (each connected to different *pin*), subject to the following limitations: ESP32 - 8 instances; ESP32-S2 and ESP32-S3 - 4 instances; ESP32-C3 - 2 instances. The optional parameter *refClock* is more fully described further below under the `start()` method.
|
||||
|
|
|
|||
Loading…
Reference in New Issue