Skip to content

Commit 273562e

Browse files
committed
move ansi_escape_code to external library
1 parent b9b3fdd commit 273562e

File tree

6 files changed

+77
-363
lines changed

6 files changed

+77
-363
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
version: 2
1010

1111
python:
12-
version: "3.x"
12+
version: "3.8"
1313
install:
1414
- requirements: docs/requirements.txt
1515
- requirements: requirements.txt

README.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Dependencies
2929
This helper library depends on:
3030

3131
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
32+
* `CircuitPython_ansi_escape_code <https://github.com/s-light/CircuitPython_ansi_escape_code>`_
3233

3334
Please ensure all dependencies are available on the CircuitPython filesystem.
3435
This is easily achieved by downloading
@@ -62,9 +63,15 @@ Or the following command to update an existing version:
6263
Usage Example
6364
=============
6465

65-
.. literalinclude:: ./examples/nonblocking_serialinput_simpletest.py
66-
:caption: examples/nonblocking_serialinput_simpletest.py
67-
:linenos:
66+
.. code-block:: python
67+
68+
import nonblocking_serialinput as nb_serialin
69+
my_input = nb_serialin.NonBlockingSerialInput()
70+
while True:
71+
my_input.update()
72+
input_string = my_input.input()
73+
if input_string is not None:
74+
my_input.print(input_string)
6875
6976
7077
Contributing

ansi_escape_code.py

Lines changed: 0 additions & 357 deletions
This file was deleted.

0 commit comments

Comments
 (0)