summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-01-11 17:21:14 +1100
committerDamien George <damien@micropython.org>2022-01-14 16:40:01 +1100
commita3bbd5332bff0a67204196d2e365ad10ff773d58 (patch)
treeb244f384ac3160c554ebaede573ac51c1c9b47d7 /docs/library
parente754c2e84f1845313411a68c26821d613e66934e (diff)
esp32/machine_bitstream: Reinstate bitstream bit-bang implementation.
The bit-bang implementation was replaced with the RMT implementation in 599b61c08687ca077e3b0e115d5b76affcc673ca. This commit brings back that bit-bang code, and allows it to be selected via the new static method: esp32.RMT.bitstream_channel(None) The bit-bang implementation may be useful if the RMT needs to be used for something else, or if bit-banging is more stable in certain applications. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/esp32.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/library/esp32.rst b/docs/library/esp32.rst
index e3c25d265..ff1c99a55 100644
--- a/docs/library/esp32.rst
+++ b/docs/library/esp32.rst
@@ -250,6 +250,17 @@ For more details see Espressif's `ESP-IDF RMT documentation.
new sequence of pulses. Looping sequences longer than 126 pulses is not
supported by the hardware.
+.. staticmethod:: RMT.bitstream_channel([value])
+
+ Select which RMT channel is used by the `machine.bitstream` implementation.
+ *value* can be ``None`` or a valid RMT channel number. The default RMT
+ channel is the highest numbered one.
+
+ Passing in ``None`` disables the use of RMT and instead selects a bit-banging
+ implementation for `machine.bitstream`.
+
+ Passing in no argument will not change the channel. This function returns
+ the current channel number.
Ultra-Low-Power co-processor
----------------------------