@@ -111,14 +111,19 @@ Complete list of configurable options:
111
111
+------------------------------+-----------------------------------------------------------+----------+
112
112
| custom_reset_sequence | Custom reset sequence for resetting into the bootloader | |
113
113
+------------------------------+-----------------------------------------------------------+----------+
114
+ | custom_hard_reset_sequence | Custom reset sequence for hard resetting the chip | |
115
+ +------------------------------+-----------------------------------------------------------+----------+
114
116
115
- Custom Reset Sequence
116
- ---------------------
117
+ Custom Reset Sequences
118
+ ----------------------
117
119
118
120
The ``custom_reset_sequence `` configuration option allows you to define a reset sequence which will get
119
121
used when an :ref: `automatic reset into the serial bootloader <automatic-bootloader >` is performed.
120
122
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:
122
127
123
128
- Consists of individual commands divided by ``| `` (e.g. ``R0|D1|W0.5 ``).
124
129
- 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
148
153
_setRTS(False ) # EN=HIGH, chip out of reset
149
154
time.sleep(0.05 )
150
155
_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