Adafruit circuitpython libraries

Adafruit circuitpython libraries DEFAULT

adafruit / Adafruit_CircuitPython_Bundle Public

Updated libraries: ili9341, neopixel, seesaw, ssd1306, st7789

As always, thank you to all of our contributors: @ladyada, @FoamyGuy, @dherrada, @gamblor21, @tannewt, @jsymons, @careyk007, @helgibbons, @adafruit-adabot, @kattni


The libraries in each release are compiled for all recent major versions of CircuitPython. Please download the one that matches the major version of your CircuitPython. For example, if you are running 6.0.0 you should download the bundle.

To install, simply download the matching zip file, unzip it, and selectively copy the libraries you would like to install into the lib folder on your CIRCUITPY drive. This is especially important for non-express boards with limited flash, such as the Trinket M0, Gemma M0 and Feather M0 Basic.

tannewt, ladyada, and 8 other contributors
Sours: https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases

CircuitPython Libraries

The CircuitPython Library Bundle contains all current libraries available for CircuitPython. They are designed for use with CircuitPython and may or may not work with MicroPython. The bundle options are explained below.

CircuitPython libraries are written in Python. They provide additional functionality and support external devices, beyond what is in CircuitPython itself. Libraries are stored on your CIRCUITPY drive in a folder called lib. For more information on using and managing libraries, see the Welcome To CircuitPython Guide.

Documentation

The libraries documentation page contains a categorized list of all the CircuitPython libraries included in the following bundles, with links to the documentation for every library.

Download and Installation Instructions

You can download all the available libraries in a zip-file bundle for all recent major versions of CircuitPython. These bundles are updated daily, whenever any included library is updated.

The libraries in each release are supplied as .mpy files, which are compiled versions of Python source code. Make sure to download the bundle that matches the major version of your CircuitPython, because the .mpy files can change between versions. For example, if you are running 6.3.0 you should download the 6.x bundle.

The precompiled .mpy files take up less space on your CIRCUITPY drive than the .py files. They also load faster, and for some low-RAM boards, are required because the .py files are too large to compile on the board itself. Unless you need the source version, choose the appropiate .mpy library bundle! If you need to compile .py files to .mpy, you can run the mpy-cross cross-compiler yourself.

To install, download the appropriate bundle for your version of CircuitPython. Unzip the file, open the resulting folder and find the lib folder. Open the lib folder and find the library files you need to load. Create a lib folder on your CIRCUITPY drive. Copy the individual library files you need to the lib folder on your CIRCUITPY drive. More details are available here.

You can always find the latest releases of the libraries bundle on GitHub.

An alternative way to download and update libraries on your board is to use the CircUp tool, which is under development.

Bundles

Bundle for Version 6.x

This bundle is built for use with CircuitPython 6.x.x. If you are using CircuitPython 6, please download this bundle.

Bundle for Version 7.x

This bundle is built for use with CircuitPython 7.x.x. If you are using CircuitPython 7, please download this bundle. The .mpy format has changed for CircuitPython 7; 6.x .mpy files are not compatible.

Python Source Bundle

This bundle is the uncompiled Python source code for every library. It is not intended for general use! It is only recommended if you need to edit a library file. This bundle works with all supported versions of CircuitPython.

Examples Bundle

Every CircuitPython library has examples to go along with it. This bundle contains every library example. This bundle will have examples that require the latest version of CircuitPython, and therefore contains files that may not work with all versions.

The Community Bundle

The libraries in the bundles above are officially supported. Additional libraries written and supported by community members are available in the Community Bundle.

Contributing

If you'd like to contribute to the CircuitPython project, the CircuitPython libraries are a great way to begin. Everyone is welcome to contribute! Regardless of your experience level, we have many resources to get you started. Check out the Contributing page for detailed information!

Find out more about how you can contribute to CircuitPython libraries.

Library Activity for Week of Sun, Oct 17, 2021

Thank you to all of our contributors!

This week there were 11 pull requests merged:

  • Authors: jepler, ladyada, jsymons, kattni, FoamyGuy, process1183, careyk007
  • Reviewers: ladyada, jepler, PaintYourDragon, gamblor21, tannewt, kattni, FoamyGuy, askpatrickw
Sours: https://circuitpython.org/libraries
  1. Duramax cts2
  2. Rsm discord
  3. Shrek 5 wiki
  4. Grate master

Additional CircuitPython Libraries and Drivers on GitHub¶

These are libraries and drivers available in separate GitHub repos. They are designed for use with CircuitPython and may or may not work with MicroPython.

Adafruit CircuitPython Library Bundle¶

We provide a bundle of all our libraries to ease installation of drivers and their dependencies. The bundle is primarily geared to the Adafruit Express line of boards which feature a relatively large external flash. With Express boards, it’s easy to copy them all onto the filesystem. However, if you don’t have enough space simply copy things over as they are needed.

CircuitPython Community Library Bundle¶

This bundle contains non-Adafruit sponsored libraries, that are written and submitted by members of the community.


© Copyright 2014-2021, MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors) Revision .

Built with Sphinx using a theme provided by Read the Docs.
Sours: https://circuitpython.readthedocs.io/en/latest/docs/drivers.html
#240 Time to Say Goodbye to Arduino and Go On to Micropython/ Adafruit Circuitpython?

Adafruit CircuitPython Library Bundle¶

Documentation StatusDiscordBuild Status

This repo bundles a bunch of useful CircuitPython libraries into an easy to download zip file. CircuitPython boards can ship with the contents of the zip to make it easy to provide a lot of libraries by default.

To use the bundle download the zip (not source zip) from the latest release, unzip it and copy over the subfolders, such as , into the root of your CircuitPython device. Make sure to indicate that it should be merged with the existing folder when it exists.

CPython¶

DO NOT use this to install libraries on a Linux computer, such as the Raspberry Pi, with regular Python (aka CPython). Instead, use the python3 version of to install the libraries you want to use. It will automatically install dependencies for you. For example:

pip3installadafruit-circuitpython-lis3dh

After you clone this repository you must run and then .

Updating libraries¶

To update the libraries run . The script will fetch the latest code and update to the newest tag (not main).

To find libraries with commits that haven’t been included in a release do:

gitsubmoduleforeach"git log --oneline HEAD...origin/main"

Adding a library¶

Determine the best location within ( or )for the new library and then run:

gitsubmoduleadd<giturl>libraries/<targetdirectory>

The target directory should omit any CircuitPython specific prefixes such as to simplify the listing.

Removing a library¶

Only do this if you are replacing the module with an equivalent:

gitsubmoduledeinitlibraries/<targetdirectory>gitrmlibraries/<targetdirectory>

Building the bundle¶

To build this bundle locally you’ll need to install the circuitpython-build-tools package.

python3-mvenv.envsource.env/bin/activatepipinstallcircuitpython-build-tools

Once installed, make sure you are in the virtual environment:

Then run the build:

circuitpython-build-bundles--filename_prefixadafruit-circuitpython-bundle--library_locationlibraries--library_depth2

Drivers & Helpers

  • Adafruit Sponsored Libraries and Drivers on GitHub
    • Foundational
    • Board-specific Helpers
    • Helper Libraries
    • Blinky
    • Displays
    • Real-time clocks
    • Motion Sensors
      • ADXL34x 3 Axis Accelerometer
      • BNO055 Accelerometer, Magnetometer, Gyroscope and Absolution Orientation
      • BNO08X 9 Axis Sensor Fusion IMU
      • BNO08X_RVC Simple UART Heading Library
      • FXAS21002C Gyroscope
      • FXOS8700 Accelerometer
      • GPS Global Position
      • ICM20X Wide-range 6-DoF Accelerometer and Gyro Family
      • L3GD20 3-Axis Gyroscope
      • LIS2MDL 3-Axis Magnetometer
      • LIS331HH and H3LIS331 3-Axis Accelerometers
      • LIS3DH Accelerometer
      • LIS3MDL 3-Axis Magnetometer
      • LSM303 Accelerometer Only
      • LSM303 Accelerometer and Magnetometer
      • LSM303DLH Magnetometer Only
      • LSM6DSOX, LSM6DS33, and ISM330DHCT Accelerometer, Gyroscope and Temperature
      • LSM9DS0 Accelerometer, Magnetometer, Gyroscope and Temperature
      • LSM9DS1 Accelerometer, Magnetometer, Gyroscope and Temperature
      • MLX90393 3 Axis Magnetometer
      • MLX90395 3-Axis Magnetometer
      • MMA8451 3 Axis Accelerometer
      • MPU6050 Accelerometer, Gyroscope, and Temperature Sensor
      • MSA301 3 Axis Accelerometer
      • TLV493D 3 Axis Magnetometer
    • Environmental Sensors
      • ADT7410 High Accuracy Temperature Sensor
      • AHTx0 Tempertaure and Humidity Sensor
      • AM2320 Temperature and Humidity
      • BME280 Temperature, Humidity and Pressure
      • BME680 Temperature, Humidity, Pressure and Gas
      • BMP280 Barometric Pressure and Altitude
      • BMP3xx Barometric Pressure and Altimeter
      • CCS811 Air Quality
      • DHT Temperature and Humidity
      • DPS310 Precision Barometric Pressure / Altitude Sensor
      • DS18x20 Temperature
      • HTS221 Temperature and Humidity Sensor
      • HTU21D Temperature and Humidity
      • HTU31D Temperature and Humidity
      • LPS2X Family of Barometric Pressure, Temperature Sensors
      • LPS35HW Water Resistant Barometric Pressure, Temperature
      • SGP40 Air Quality Sensor
      • MAX31855 Thermocouple Amplifier, Temperature
      • MAX31856 Thermocouple Amplifier, Temperature
      • MAX31865 Thermocouple Amplifier, Temperature
      • MCP9600 Thermocouple Amplifier
      • MCP9808 Temperature
      • MLX90614 Contactless Temperature
      • MPL115A2 Barometric Pressure, Temperature
      • MPL3115A2 Barometric Pressure, Altitude and Temperature Sensor
      • MPRLS Ported Absolute Pressure
      • MS8607 Pressure, Temperature, Humidity
      • PCT2075 Temperature Sensor
      • PM25 Air Quality Sensor
      • SCD30 CO2, Temperature, and Humidity Sensor
      • SCD4x Temperature and Humidity Sensor
      • SGP30 Air Quality
      • SHT31-D Temperature and Humidity
      • SHT4x Temperature and Humidity
      • SHTC3 Temperature and Humidity
      • Si7021 Temperature and Humidity
      • TC74 Digital Temperature Sensor
      • TMP006 Contactless IR Thermopile Sensor
      • TMP007 Contactless Temperature
      • TMP117 High-Precision Temperature Sensor
      • Thermistor Temperature
    • Light Sensors
    • Distance Sensors
    • Radio
    • IO Expansion
    • Miscellaneous

© Copyright 2019 Adafruit Revision .

Built with Sphinx using a theme provided by Read the Docs.
Sours: https://adafruit-circuitpython-bundle.readthedocs.io/

Libraries adafruit circuitpython

Adafruit CircuitPython Library Bundle

Documentation StatusDiscordBuild Status

This repo bundles a bunch of useful CircuitPython libraries into an easy to download zip file. CircuitPython boards can ship with the contents of the zip to make it easy to provide a lot of libraries by default.

Use

To use the bundle download the zip (not source zip) from the latest release, unzip it and copy over the subfolders, such as , into the root of your CircuitPython device. Make sure to indicate that it should be merged with the existing folder when it exists.

CPython

DO NOT use this to install libraries on a Linux computer, such as the Raspberry Pi, with regular Python (aka CPython). Instead, use the python3 version of to install the libraries you want to use. It will automatically install dependencies for you. For example:

pip3 install adafruit-circuitpython-lis3dh

Development

After you clone this repository you must run and then .

Updating libraries

To update the libraries run . The script will fetch the latest code and update to the newest tag (not main).

To find libraries with commits that haven't been included in a release do:

git submodule foreach "git log --oneline HEAD...origin/main"

Adding a library

Determine the best location within ( or )for the new library and then run:

git submodule add <git url> libraries/<target directory>

The target directory should omit any CircuitPython specific prefixes such as to simplify the listing.

Removing a library

Only do this if you are replacing the module with an equivalent:

git submodule deinit libraries/<target directory> git rm libraries/<target directory>

Building the bundle

To build this bundle locally you'll need to install the circuitpython-build-tools package.

python3 -m venv .env source .env/bin/activate pip install circuitpython-build-tools

Once installed, make sure you are in the virtual environment:

source .env/bin/activate

Then run the build:

circuitpython-build-bundles --filename_prefix adafruit-circuitpython-bundle --library_location libraries --library_depth 2
Sours: https://github.com/adafruit/Adafruit_CircuitPython_Bundle
A CircuitPython \u0026 Python library for Garmin LIDAR Lite sensors over I2C @adafruit #adafruit

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-sgp40

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-sgp40

To install in a virtual environment in your current project:

mkdir project-name &&cd project-name python3 -m venv .env source .env/bin/activate pip3 install adafruit-circuitpython-sgp40

Usage Example

importtimeimportboardimportadafruit_sgp40i2c=board.I2C()# uses board.SCL and board.SDAsgp=adafruit_sgp40(i2c)whileTrue:print("Measurement: ",sgp.raw)print("")sleep(1)

For humidity compensated raw gas and voc index readings, we’ll need a secondary sensor such as the bme280

importtimeimportboardimportadafruit_sgp40importadafruit_bme280i2c=board.I2C()# uses board.SCL and board.SDAsgp=adafruit_sgp40.SGP40(i2c)bme280=adafruit_bme280.Adafruit_BME280_I2C(i2c)whileTrue:temperature=bme280.temperaturehumidity=bme280.relative_humidity# For compensated raw gas readings""" compensated_raw_gas = sgp.measure_raw( temperature=temperature, relative_humidity=humidity ) print("Raw Data:", compensated_raw_gas) """# For Compensated voc index readingsvoc_index=sgp.measure_index(temperature=temperature,relative_humidity=humidity)print("VOC Index:",voc_index)print("")time.sleep(1)

It may take several minutes for the VOC index to start changing as it calibrates the baseline readings. The voc algorithm expects a 1 hertz sampling rate. Run measure_index() once per second.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

Sours: https://pypi.org/project/adafruit-circuitpython-sgp40/

You will also like:

Until the grave. never. I swear. " Arriving, climbed into the tent, completely losing strength, fell asleep. … "Honey, wake up!" Lena heard her own voice, coming from somewhere above.



556 557 558 559 560