A high-level library representing all the features of the Adafruit CLUE
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit-circuitpython-clue-3.0.11.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-clue-3.0.11.tar.gz
- Upload date:
- Size: 17.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a83396daedf1a90264c125676aeefca7a64433d12fa3a16ed7236fb3862a79 |
|
MD5 | 922ca1478dcd5dbd1fb1def0ad48a2ef |
|
BLAKE2b-256 | 1e0e9b9594c41444c4ca20684f1bb37d3bac43a0a1b4917f0c8b1922abe6e8ee |
File details
Details for the file adafruit_circuitpython_clue-3.0.11-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_clue-3.0.11-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb63cb25e10d037af5dc9279c3bbb304f6fea87f8c928ed437c3935353496671 |
|
MD5 | 366144700421dc8dae8bb11fd46094ba |
|
BLAKE2b-256 | a34b16f28a12bee20cb290677b4f4694069de8d229b42f32e6e59bccee6e555b |