Skip to content

Commit ea7bd9a

Browse files
authored
Merge pull request #14 from jposada202020/correcting_docs
improving_docs
2 parents 066b5fb + a7d7bf8 commit ea7bd9a

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ To install in a virtual environment in your current project:
6262
Usage Example
6363
=============
6464

65+
Examples of using this module are in examples folder.
66+
6567
Contributing
6668
============
6769

adafruit_lc709203f.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,20 @@
1616
1717
**Hardware:**
1818
19-
* Adafruit LC709023 Breakout: https://www.adafruit.com/product/4712
19+
* `Adafruit LC709203F LiPoly / LiIon Fuel Gauge and Battery Monitor
20+
<https://www.adafruit.com/product/4712>`_ (Product ID: 4712)
2021
2122
**Software and Dependencies:**
2223
2324
* Adafruit CircuitPython firmware for the supported boards:
24-
https://github.com/adafruit/circuitpython/releases
25+
https://circuitpython.org/downloads
26+
27+
* Adafruit's Bus Device library:
28+
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
29+
30+
* Adafruit's Register library:
31+
https://github.com/adafruit/Adafruit_CircuitPython_Register
2532
26-
# * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
27-
# * Adafruit's Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
2833
"""
2934

3035
from micropython import const
@@ -100,7 +105,12 @@ class PackSize(CV):
100105

101106

102107
class LC709203F:
103-
"""Interface library for LC709203F battery monitoring and fuel gauge sensors"""
108+
"""Interface library for LC709203F battery monitoring and fuel gauge sensors
109+
110+
:param ~busio.I2C i2c_bus: The I2C bus the device is connected to
111+
:param int address: The I2C device address. Defaults to :const:`0x0B`
112+
113+
"""
104114

105115
def __init__(self, i2c_bus, address=LC709203F_I2CADDR_DEFAULT):
106116
self.i2c_device = i2c_device.I2CDevice(i2c_bus, address)

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
77
.. automodule:: adafruit_lc709203f
88
:members:
9+
:exclude-members: CV

docs/examples.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ Ensure your device works with this simple test.
66
.. literalinclude:: ../examples/lc709203f_simpletest.py
77
:caption: examples/lc709203f_simpletest.py
88
:linenos:
9+
10+
Thermistor test
11+
---------------
12+
13+
Example showing the use of thermistors over I2C
14+
15+
.. literalinclude:: ../examples/lc709203f_thermistortest.py
16+
:caption: examples/lc709203f_thermistortest.py
17+
:linenos:

docs/index.rst

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

26+
Adafruit LC709023 Breakout Learning Guide <https://learn.adafruit.com/adafruit-lc709203f-lipo-lipoly-battery-monitor/overview>
27+
2628
.. toctree::
2729
:caption: Related Products
2830

0 commit comments

Comments
 (0)