You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This driver depends on many other libraries! Please install it by downloading
26
-
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
29
+
For Circuit Playground Express, simply install CircuitPython to use this library - the library itself and
30
+
all of its dependencies are built into CircuitPython for Circuit Playground Express.
31
+
32
+
For Circuit Playground Bluefruit, you must install this library and all of its dependencies. Please download
33
+
`the latest Adafruit CircuitPython library bundle <https://circuitpython.org/libraries>`_. Open the resulting
34
+
zip file, open the lib folder within, and copy the following folders and files to the lib folder on your
35
+
CIRCUITPY drive:
36
+
37
+
* adafruit_bus_device/
38
+
* adafruit_circuitplayground/
39
+
* adafruit_lis3dh.mpy
40
+
* adafruit_thermistor.mpy
41
+
* neopixel.mpy
42
+
27
43
28
44
Usage Example
29
45
=============
30
-
Using it is super simple. Simply import the `cpx` variable from the module
31
-
and then use it.
46
+
Using this library is super simple. Simply import the ``cp`` variable from the module and then use it.
32
47
33
48
.. code-block :: python
34
49
35
-
from adafruit_circuitplayground.express import cpx
50
+
from adafruit_circuitplayground import cp
36
51
37
52
while True:
38
-
if cpx.button_a:
39
-
print("Temperature:", cpx.temperature)
40
-
cpx.red_led = cpx.button_b
53
+
if cp.button_a:
54
+
print("Temperature:", cp.temperature)
55
+
cp.red_led = cp.button_b
56
+
57
+
To learn more about all the features of this library, check out the
58
+
`CircuitPython Made Easy on Circuit Playground Express and Bluefruit guide <https://learn.adafruit.com/circuitpython-made-easy-on-circuit-playground-express>`_
0 commit comments