Skip to content

Commit 3b50809

Browse files
brentrubrentru
brentru
authored and
brentru
committed
update readme, update library, sphinx builds
1 parent 034026e commit 3b50809

File tree

4 files changed

+17
-24
lines changed

4 files changed

+17
-24
lines changed

README.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Introduction
1313
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Cursor
1414
:alt: Build Status
1515

16-
Simulated mouse cursor for display interaction
17-
16+
Mouse cursor for interaction with CircuitPython UI elements such as
17+
`buttons <https://github.com/adafruit/Adafruit_CircuitPython_Display_Button>`_.
1818

1919
Dependencies
2020
=============
@@ -31,9 +31,6 @@ Installing from PyPI
3131
.. note:: This library is not available on PyPI yet. Install documentation is included
3232
as a standard element. Stay tuned for PyPI availability!
3333

34-
.. todo:: Remove the above note if PyPI version is/will be available at time of release.
35-
If the library is not planned for PyPI, remove the entire 'Installing from PyPI' section.
36-
3734
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
3835
PyPI <https://pypi.org/project/adafruit-circuitpython-cursor/>`_. To install for current user:
3936

@@ -59,7 +56,7 @@ To install in a virtual environment in your current project:
5956
Usage Example
6057
=============
6158

62-
.. todo:: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
59+
See examples in examples/ folder.
6360

6461
Contributing
6562
============

adafruit_cursor.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,38 @@
3030
Implementation Notes
3131
--------------------
3232
33-
**Hardware:**
34-
3533
**Software and Dependencies:**
3634
3735
* Adafruit CircuitPython firmware for the supported boards:
3836
https://github.com/adafruit/circuitpython/releases
3937
"""
38+
import displayio
4039

4140
__version__ = "0.0.0-auto.0"
4241
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Cursor.git"
4342

4443
class Cursor:
4544
"""Mouse cursor interaction for CircuitPython.
4645
47-
:param displayio.Display: CircuitPython display object.
48-
:param displayio.Group: CircuitPython group object to append the cursor to.
46+
:param ~displayio.Display display: CircuitPython display object.
47+
:param ~displayio.Group display_group: CircuitPython group object to append the cursor to.
4948
:param int cursor_speed: Speed of the cursor, in pixels.
50-
;param int scale: Scale amount for the cursor in both directions.
49+
:param int scale: Scale amount for the cursor in both directions.
5150
:param bool is_hidden: Cursor is hidden on init.
5251
53-
Example for creating a cursor layer:
52+
Example for creating a cursor layer
53+
5454
.. code-block:: python
55-
import adafruit_cursor
56-
# Create the display
57-
display = board.DISPLAY
5855
59-
# Create the display context
60-
splash = displayio.Group(max_size=22)
56+
import adafruit_cursor
57+
# Create the display
58+
display = board.DISPLAY
6159
62-
# initialize the mouse cursor object
63-
mouse_cursor = adafruit_cursor.Cursor(display, display_group=splash)
60+
# Create the display context
61+
splash = displayio.Group(max_size=22)
6462
63+
# initialize the mouse cursor object
64+
mouse_cursor = adafruit_cursor.Cursor(display, display_group=splash)
6565
"""
6666
# pylint: disable=too-many-arguments
6767
def __init__(self, display=None, display_group=None, is_hidden=False, cursor_speed=5, scale=1):

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Uncomment the below if you use native CircuitPython modules such as
2121
# digitalio, micropython and busio. List the modules you use. Without it, the
2222
# autodoc module docs will fail to generate with a warning.
23-
# autodoc_mock_imports = ["digitalio", "busio"]
23+
autodoc_mock_imports = ["displayio"]
2424

2525

2626
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}

docs/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ Table of Contents
2323
.. toctree::
2424
:caption: Tutorials
2525

26-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
27-
the toctree above for use later.
2826

2927
.. toctree::
3028
:caption: Related Products
3129

32-
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
33-
the toctree above for use later.
3430

3531
.. toctree::
3632
:caption: Other Links

0 commit comments

Comments
 (0)