Skip to content

Commit 3a38172

Browse files
committed
Fixed documentation formatting for RTD
1 parent ca24cad commit 3a38172

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

shared-bindings/rotaryio/IncrementalEncoder.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@
5050
//| :param ~microcontroller.Pin pin_a: First pin to read pulses from.
5151
//| :param ~microcontroller.Pin pin_b: Second pin to read pulses from.
5252
//|
53-
//| For example::
54-
//|
55-
//| import rotaryio
56-
//| import time
57-
//| from board import *
58-
//|
59-
//| enc = rotaryio.IncrementalEncoder(D1, D2)
60-
//| last_position = None
61-
//| while True;
62-
//| position = enc.position
63-
//| if last_position == None or position != last_position:
64-
//| print(position)
65-
//| last_position = position
53+
//| For example::
54+
//|
55+
//| import rotaryio
56+
//| import time
57+
//| from board import *
58+
//|
59+
//| enc = rotaryio.IncrementalEncoder(D1, D2)
60+
//| last_position = None
61+
//| while True:
62+
//| position = enc.position
63+
//| if last_position == None or position != last_position:
64+
//| print(position)
65+
//| last_position = position
6666
//|
6767
STATIC mp_obj_t rotaryio_incrementalencoder_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *pos_args) {
6868
mp_arg_check_num(n_args, n_kw, 2, 2, true);

0 commit comments

Comments
 (0)