
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
adafruit-circuitpython-clue
Advanced tools
A high-level library representing all the features of the Adafruit CLUE
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-clue/badge/?version=latest :target: https://docs.circuitpython.org/projects/clue/en/latest/ :alt: Documentation Status
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg :target: https://adafru.it/discord :alt: Discord
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/workflows/Build%20CI/badge.svg :target: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/actions :alt: Build Status
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json :target: https://github.com/astral-sh/ruff :alt: Code Style: Ruff
A high level library representing all the features of the Adafruit CLUE
This driver depends on:
Adafruit CircuitPython <https://github.com/adafruit/circuitpython>
_Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>
_Register <https://github.com/adafruit/Adafruit_CircuitPython_Register>
_Adafruit LSM6DS <https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS>
_Adafruit LIS3MDL <https://github.com/adafruit/Adafruit_CircuitPython_LIS3MDL>
_Adafruit APDS9960 <https://github.com/adafruit/Adafruit_CircuitPython_APDS9960>
_Adafruit BMP280 <https://github.com/adafruit/Adafruit_CircuitPython_BMP280>
_Adafruit SHT31D <https://github.com/adafruit/Adafruit_CircuitPython_SHT31D>
_Adafruit NeoPixel <https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel>
_Adafruit Display Text <https://github.com/adafruit/Adafruit_CircuitPython_Display_Text>
_Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
the Adafruit library and driver bundle <https://circuitpython.org/libraries>
_.
Demos may require libraries not listed here.
This example displays sensor and input data on the CLUE display.
.. code-block:: python
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()
API documentation for this library can be found on Read the Docs <https://docs.circuitpython.org/projects/clue/en/latest/>
_.
For information on building library documentation, please check out this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>
_.
Contributions are welcome! Please read our Code of Conduct <https://github.com/adafruit/Adafruit_CircuitPython_CLUE/blob/main/CODE_OF_CONDUCT.md>
_
before contributing to help this project stay welcoming.
FAQs
A high-level library representing all the features of the Adafruit CLUE
We found that adafruit-circuitpython-clue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.