Skip to content

improving_docs #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions adafruit_dash_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,37 +52,37 @@ def __init__(

@property
def key(self):
""" Getter for feed key """
""" Getter for feed key. Will give the value of the feed key"""
return self._key

@key.setter
def key(self, value):
""" Setter for feed key """
""" Setter for feed key. Sets a new value for the feed key property _key"""
self._key = value

@property
def text(self):
""" Getter for text ready to be formatted """
""" Getter for text ready to be formatted. Will give the feed text"""
return self._text

@text.setter
def text(self, value):
""" Setter for text ready to be formatted """
""" Setter for text ready to be formatted. Allows to change the feed text"""
self._text = value

@property
def callback(self):
""" Getter for callback function """
""" Getter for callback function. Returns the feed callback"""
return self._callback

@callback.setter
def callback(self, value):
""" Setter for callback function """
""" Setter for callback function. Changes the feed callback """
self._callback = value

@property
def color(self):
""" Getter for text color callback function """
""" Getter for text color callback function. Will return the color for the feed"""
return self._color

@color.setter
Expand Down
3 changes: 2 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
.. use this format as the module name: "adafruit_foo.foo"

.. automodule:: adafruit_dash_display
:members:
:members:
:member-order: bysource
5 changes: 5 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Ensure your device works with this simple test.
:caption: examples/dash_display_simpletest.py
:linenos:

Advanced example
----------------

This illustrates more features of the library

.. literalinclude:: ../examples/dash_display_advancedtest.py
:caption: examples/dash_display_advancedtest.py
:linenos:
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Table of Contents
.. toctree::
:caption: Tutorials

Adafruit IO IOT Hub with the Adafruit FunHouse <https://learn.adafruit.com/adafruit-io-hub-with-the-adafruit-funhouse>

.. toctree::
:caption: Related Products

Expand Down