-
Notifications
You must be signed in to change notification settings - Fork 14
Improve Ref Docs #4
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
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
aa91969
renamed example
sommersoft 38e4b64
setup docs folder
sommersoft 684b3d3
updated .travis & .readthedocs yml
sommersoft 1ba00d6
updated README
sommersoft dc935ca
sphinx fixes
sommersoft 072c8de
pylint/sphinx fixes
sommersoft ae370fb
updated docstrings; removed 'get/set'
sommersoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
""" | ||
`Adafruit_DRV2605` | ||
`adafruit_drv2605` | ||
==================================================== | ||
|
||
CircuitPython module for the DRV2605 haptic feedback motor driver. See | ||
|
@@ -148,7 +148,9 @@ def stop(self): | |
|
||
@property | ||
def mode(self): | ||
"""Get and set the mode of the chip. Should be a value of: | ||
""" | ||
Get and set the mode of the chip. Should be a value of: | ||
|
||
- MODE_INTTRIG: Internal triggering, vibrates as soon as you call | ||
play(). Default mode. | ||
- MODE_EXTTRIGEDGE: External triggering, edge mode. | ||
|
@@ -158,6 +160,7 @@ def mode(self): | |
- MODE_REALTIME: Real-time playback mode. | ||
- MODE_DIAGNOS: Diagnostics mode. | ||
- MODE_AUTOCAL: Auto-calibration mode. | ||
|
||
See the datasheet for the meaning of modes beyond MODE_INTTRIG. | ||
""" | ||
return self._read_u8(_DRV2605_REG_MODE) | ||
|
@@ -169,15 +172,18 @@ def mode(self, val): | |
|
||
@property | ||
def library(self): | ||
"""Get and set the library selected for waveform playback. Should be | ||
""" | ||
Get and set the library selected for waveform playback. Should be | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above: |
||
a value of: | ||
|
||
- LIBRARY_EMPTY: Empty | ||
- LIBRARY_TS2200A: TS2200 library A (the default) | ||
- LIBRARY_TS2200B: TS2200 library B | ||
- LIBRARY_TS2200C: TS2200 library C | ||
- LIBRARY_TS2200D: TS2200 library D | ||
- LIBRARY_TS2200E: TS2200 library E | ||
- LIBRARY_LRA: LRA library | ||
|
||
See the datasheet for the meaning and description of effects in each | ||
library. | ||
""" | ||
|
Binary file not shown.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Simple test | ||
------------ | ||
|
||
Ensure your device works with this simple test. | ||
|
||
.. literalinclude:: ../examples/drv2605_simpletest.py | ||
:caption: examples/drv2605_simpletest.py | ||
:linenos: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.. include:: ../README.rst | ||
|
||
Table of Contents | ||
================= | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
:hidden: | ||
|
||
self | ||
|
||
.. toctree:: | ||
:caption: Examples | ||
|
||
examples | ||
|
||
.. toctree:: | ||
:caption: API Reference | ||
:maxdepth: 3 | ||
|
||
api | ||
|
||
.. toctree:: | ||
:caption: Tutorials | ||
|
||
.. toctree:: | ||
:caption: Related Products | ||
|
||
Adafruit DRV2605L Haptic Motor Controller <https://www.adafruit.com/product/2305> | ||
|
||
.. toctree:: | ||
:caption: Other Links | ||
|
||
Download <https://github.com/adafruit/Adafruit_CircuitPython_DRV2605/releases/latest> | ||
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io> | ||
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60> | ||
Discord Chat <https://adafru.it/discord> | ||
Adafruit Learning System <https://learn.adafruit.com> | ||
Adafruit Blog <https://blog.adafruit.com> | ||
Adafruit Store <https://www.adafruit.com> | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should read
The mode of the chip. Should be a value of:
. Avoid use of "get" and "set" in documentation.