Skip to content

Commit a28dee9

Browse files
authored
Merge pull request #1 from jposada202020/improving_docs
improving_docs
2 parents 0e0f5a9 + fe4cd58 commit a28dee9

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

adafruit_dash_display.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,37 +52,37 @@ def __init__(
5252

5353
@property
5454
def key(self):
55-
""" Getter for feed key """
55+
""" Getter for feed key. Will give the value of the feed key"""
5656
return self._key
5757

5858
@key.setter
5959
def key(self, value):
60-
""" Setter for feed key """
60+
""" Setter for feed key. Sets a new value for the feed key property _key"""
6161
self._key = value
6262

6363
@property
6464
def text(self):
65-
""" Getter for text ready to be formatted """
65+
""" Getter for text ready to be formatted. Will give the feed text"""
6666
return self._text
6767

6868
@text.setter
6969
def text(self, value):
70-
""" Setter for text ready to be formatted """
70+
""" Setter for text ready to be formatted. Allows to change the feed text"""
7171
self._text = value
7272

7373
@property
7474
def callback(self):
75-
""" Getter for callback function """
75+
""" Getter for callback function. Returns the feed callback"""
7676
return self._callback
7777

7878
@callback.setter
7979
def callback(self, value):
80-
""" Setter for callback function """
80+
""" Setter for callback function. Changes the feed callback """
8181
self._callback = value
8282

8383
@property
8484
def color(self):
85-
""" Getter for text color callback function """
85+
""" Getter for text color callback function. Will return the color for the feed"""
8686
return self._color
8787

8888
@color.setter

docs/api.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
.. use this format as the module name: "adafruit_foo.foo"
66
77
.. automodule:: adafruit_dash_display
8-
:members:
8+
:members:
9+
:member-order: bysource

docs/examples.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Ensure your device works with this simple test.
77
:caption: examples/dash_display_simpletest.py
88
:linenos:
99

10+
Advanced example
11+
----------------
12+
13+
This illustrates more features of the library
14+
1015
.. literalinclude:: ../examples/dash_display_advancedtest.py
1116
:caption: examples/dash_display_advancedtest.py
1217
:linenos:

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Table of Contents
2424
.. toctree::
2525
:caption: Tutorials
2626

27+
Adafruit IO IOT Hub with the Adafruit FunHouse <https://learn.adafruit.com/adafruit-io-hub-with-the-adafruit-funhouse>
28+
2729
.. toctree::
2830
:caption: Related Products
2931

0 commit comments

Comments
 (0)