@@ -111,14 +111,19 @@ Complete list of configurable options:
111111+------------------------------+-----------------------------------------------------------+----------+
112112| custom_reset_sequence | Custom reset sequence for resetting into the bootloader | |
113113+------------------------------+-----------------------------------------------------------+----------+
114+ | custom_hard_reset_sequence | Custom reset sequence for hard resetting the chip | |
115+ +------------------------------+-----------------------------------------------------------+----------+
114116
115- Custom Reset Sequence
116- ---------------------
117+ Custom Reset Sequences
118+ ----------------------
117119
118120The ``custom_reset_sequence `` configuration option allows you to define a reset sequence which will get
119121used when an :ref: `automatic reset into the serial bootloader <automatic-bootloader >` is performed.
120122
121- The sequence is defined with a string in the following format:
123+ The ``custom_hard_reset_sequence `` option allows you to define a reset sequence which will get
124+ used when a hard reset (a reset out of the bootloader) is performed.
125+
126+ A sequence is defined with a string in the following format:
122127
123128- Consists of individual commands divided by ``| `` (e.g. ``R0|D1|W0.5 ``).
124129- Commands (e.g. ``R0 ``) are defined by a code (``R ``) and an argument (``0 ``).
@@ -148,3 +153,11 @@ For example: ``D0|R1|W0.1|D1|R0|W0.5|D0`` represents the following classic reset
148153 _setRTS(False ) # EN=HIGH, chip out of reset
149154 time.sleep(0.05 )
150155 _setDTR(False ) # IO0=HIGH, done
156+
157+ Similarly, ``R1|W0.1|R0 `` represents the classic hard reset sequence:
158+
159+ .. code-block :: python
160+
161+ _setRTS(True ) # EN=LOW, chip in reset
162+ time.sleep(0.1 )
163+ _setRTS(False ) # EN=HIGH, chip out of reset
0 commit comments