Introduction
A high level library representing all the features of the Adafruit CLUE
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Demos may require libraries not listed here.
Usage Example
This example displays sensor and input data on the CLUE display.
from adafruit_clue import clue
clue.sea_level_pressure = 1020
clue_data = clue.simple_text_display(title="CLUE Sensor Data!", title_scale=2, num_lines=15)
while True:
clue_data[0].text = "Acceleration: {:.2f} {:.2f} {:.2f}".format(*clue.acceleration)
clue_data[1].text = "Gyro: {:.2f} {:.2f} {:.2f}".format(*clue.gyro)
clue_data[2].text = "Magnetic: {:.3f} {:.3f} {:.3f}".format(*clue.magnetic)
clue_data[3].text = "Pressure: {:.3f}hPa".format(clue.pressure)
clue_data[4].text = "Altitude: {:.1f}m".format(clue.altitude)
clue_data[5].text = "Temperature: {:.1f}C".format(clue.temperature)
clue_data[6].text = "Humidity: {:.1f}%".format(clue.humidity)
clue_data[7].text = "Proximity: {}".format(clue.proximity)
clue_data[8].text = "Gesture: {}".format(clue.gesture)
clue_data[9].text = "Color: R: {} G: {} B: {} C: {}".format(*clue.color)
clue_data[10].text = "Button A: {}".format(clue.button_a)
clue_data[11].text = "Button B: {}".format(clue.button_b)
clue_data[12].text = "Touch 0: {}".format(clue.touch_0)
clue_data[13].text = "Touch 1: {}".format(clue.touch_1)
clue_data[14].text = "Touch 2: {}".format(clue.touch_2)
clue_data.show()
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Metadata
Release files for adafruit-circuitpython-clue 3.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adafruit_circuitpython_clue-3.2.7.tar.gz | 17.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adafruit_circuitpython_clue-3.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 MB
Release files / adafruit_circuitpython_clue-3.2.7.tar.gz
| Download URL | adafruit_circuitpython_clue-3.2.7.tar.gz |
|---|---|
| Size | 17.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cee9a5803e6203a00837e42df392eac75c2dd84f126a397ae3630a34aca3130f
|
|
BLAKE2b-256 checksum How to use checksums |
9ba885279e08510e2aa286dc249f66aa0e502ff69d68fe410963930e513b26cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / adafruit_circuitpython_clue-3.2.7-py3-none-any.whl
| Download URL | adafruit_circuitpython_clue-3.2.7-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
611f2c423ed8aa8ebd0aa867cdf69204d95575d550f049fe9a192cab3606d740
|
|
BLAKE2b-256 checksum How to use checksums |
941201a6f19ae2b43c3b15780deae1a65d2161971633be2fe532b3874c984edd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|