File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,29 @@ To install in a virtual environment in your current project:
57
57
source .env/bin/activate
58
58
pip3 install adafruit-circuitpython-dps310
59
59
60
+
61
+ Installing to a connected CircuitPython Device
62
+ ==============================================
63
+ Some devices, eg. the QT-PY, are very limited in memory. The DPS310 library contains
64
+ two variants - basic and advanced - which give different levels of functionality.
65
+
66
+ Installing the DPS310 library could have the following outcomes:
67
+
68
+ * It installs successfully and your code runs successfully. Woo-hoo! Continue with
69
+ your amazing project.
70
+ * It installs successfully and your code fails to run with a memory allocation
71
+ error. Try one of the following:
72
+
73
+ * If your ``code.py `` is large, especially if it has lots of comments, you
74
+ can shrink it into a ``.mpy `` file instead. See the Adafruit
75
+ `Learn Guide <https://learn.adafruit.com/Memory-saving-tips-for-CircuitPython/non-volatile-not-enough-disk-space >`_
76
+ on shrinking your code.
77
+ * Only use the basic DPS310 implementation, and remove the following file:
78
+ ``<CIRCUITPY>/lib/adafruit_dps310/advanced.mpy `` where <CIRCUITPY> is the
79
+ mounted location of your device. Make sure that your code only uses the basic
80
+ implementation.
81
+
82
+
60
83
Usage Example
61
84
=============
62
85
Original file line number Diff line number Diff line change 58
58
# simple. Or you can use find_packages().
59
59
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
60
60
# CHANGE `py_modules=['...']` TO `packages=['...']`
61
- py_modules = ["adafruit_dps310" ],
61
+ packages = ["adafruit_dps310" ],
62
62
)
You can’t perform that action at this time.
0 commit comments