@ -193,7 +193,7 @@ numbers specified in ``write_pulses`` are multiplied by the resolution to
define the pulses.
define the pulses.
`` clock_div `` is an 8-bit divider (0-255) and each pulse can be defined by
`` clock_div `` is an 8-bit divider (0-255) and each pulse can be defined by
multiplying the resolution by a 15-bit (0-32,768 ) number. There are eight
multiplying the resolution by a 15-bit (1-`` PULSE_MAX `` ) number. There are eight
channels (0-7) and each can have a different clock divider.
channels (0-7) and each can have a different clock divider.
So, in the example above, the 80MHz clock is divided by 8. Thus the
So, in the example above, the 80MHz clock is divided by 8. Thus the
@ -264,10 +264,10 @@ For more details see Espressif's `ESP-IDF RMT documentation.
**Mode 3:** *duration* and *data* are lists or tuples of equal length,
**Mode 3:** *duration* and *data* are lists or tuples of equal length,
specifying individual durations and the output level for each.
specifying individual durations and the output level for each.
Durations are in integer units of the channel resolution (as described
Durations are in integer units of the channel resolution (as
above), between 1 and 32767 units. Output levels are any value that can
described above), between 1 and `` PULSE_MAX `` units. Output levels
be converted to a boolean, with `` True `` representing high voltage and
are any value that can be converted to a boolean, with `` True ``
`` False `` representing low.
representing high voltage and `` False `` representing low.
If transmission of an earlier sequence is in progress then this method will
If transmission of an earlier sequence is in progress then this method will
block until that transmission is complete before beginning the new sequence.
block until that transmission is complete before beginning the new sequence.
@ -290,6 +290,13 @@ For more details see Espressif's `ESP-IDF RMT documentation.
Passing in no argument will not change the channel. This function returns
Passing in no argument will not change the channel. This function returns
the current channel number.
the current channel number.
Constants
---------
.. data :: RMT.PULSE_MAX
Maximum integer that can be set for a pulse duration.
Ultra-Low-Power co-processor
Ultra-Low-Power co-processor
----------------------------
----------------------------