File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,30 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
43
43
This is easily achieved by downloading
44
44
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
45
45
46
+ Installing from PyPI
47
+ =====================
48
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
49
+ PyPI <https://pypi.org/project/adafruit-circuitpython-ds1307/> `_. To install for current user:
50
+
51
+ .. code-block :: shell
52
+
53
+ pip3 install adafruit-circuitpython-ds1307
54
+
55
+ To install system-wide (this may be required in some cases):
56
+
57
+ .. code-block :: shell
58
+
59
+ sudo pip3 install adafruit-circuitpython-ds1307
60
+
61
+ To install in a virtual environment in your current project:
62
+
63
+ .. code-block :: shell
64
+
65
+ mkdir project-name && cd project-name
66
+ python3 -m venv .env
67
+ source .env/bin/activate
68
+ pip3 install adafruit-circuitpython-ds1307
69
+
46
70
Usage Notes
47
71
===========
48
72
@@ -147,4 +171,4 @@ Now, once you have the virtual environment activated:
147
171
148
172
This will output the documentation to ``docs/_build/html ``. Open the index.html in your browser to
149
173
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
150
- locally verify it will pass.
174
+ locally verify it will pass.
Original file line number Diff line number Diff line change 61
61
from adafruit_register import i2c_bit
62
62
from adafruit_register import i2c_bcd_datetime
63
63
64
+ __version__ = "0.0.0-auto.0"
65
+ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DS1307.git"
66
+
67
+
64
68
class DS1307 :
65
69
"""Interface to the DS1307 RTC."""
66
70
You can’t perform that action at this time.
0 commit comments