MIT License

项目介绍

adafruit/Adafruit_CircuitPython_Bundle 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 MIT License 许可证,目前获得 996 个 Star、206 次 Fork。

仓库全名
adafruit/Adafruit_CircuitPython_Bundle
开源许可证
MIT License
Star 数
996
Fork 数
206
未关闭 Issue
17

README 摘要

Adafruit CircuitPython Library Bundle ======================================= :target: https://docs.circuitpython.org/projects/bundle/en/latest/ :alt: Documentation Status :target: https://adafru.it/discord :alt: Discord .. image:: https://travis-ci.com/adafruit/AdafruitCircuitPythonBundle.svg?branch=main :target: https://travis-ci.com/adafruit/AdafruitCircuitPythonBundle :alt: Build Status :target…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Adafruit_CircuitPython_Bundle 用什么语言开发?

主要使用 Shell 编写,采用 MIT License 许可证,目前有 996 个 Star。

Adafruit_CircuitPython_Bundle 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Adafruit_CircuitPython_Bundle 的源码?

可以直接克隆仓库:git clone https://github.com/adafruit/Adafruit_CircuitPython_Bundle.git;安装与运行步骤见仓库 README。

Adafruit_CircuitPython_Bundle 最近还在维护吗?

仓库最近一次更新为 6月27日,当前有 17 个未关闭 Issue;Star 数为 996,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A bundle of useful CircuitPython libraries ready to use from the filesystem.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
2404
价值分
758
活跃状态
活跃

语言占比

Python
Shell

README

Adafruit CircuitPython Library Bundle

… image:: https://readthedocs.org/projects/adafruit-circuitpython-bundle/badge/?version=latest :target: https://docs.circuitpython.org/projects/bundle/en/latest/ :alt: Documentation Status

… image:: https://img.shields.io/discord/327254708534116352.svg :target: https://adafru.it/discord :alt: Discord

… image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Bundle.svg?branch=main :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Bundle :alt: Build Status

… image:: https://img.shields.io/badge/code style-black-000000.svg :target: https://github.com/psf/black :alt: Code Style: Black

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 <https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest>_, unzip it and copy over the subfolders, such as lib, 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 pip to install the libraries you want to use. It will automatically install dependencies for you. For example:

… code::

pip3 install adafruit-circuitpython-lis3dh

Development

After you clone this repository you must run git submodule init and then git submodule update.

For developing individual libraries, please see LIBRARY_DEVELOPMENT.rst.

Updating libraries

To update the libraries run update-submodules.sh. 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:

… code::

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

Adding a library

Determine the best location within libraries (libraries/drivers/ or libraries/helpers/)for the new library and then run:

… code::

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

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

Removing a library

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

… code::

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 <https://github.com/adafruit/circuitpython-build-tools>_ package.

… code::

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

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

… code::

source .venv/bin/activate

Then run the build:

… code::

circuitpython-build-bundles --filename_prefix adafruit-circuitpython-bundle --library_location libraries --library_depth 2

评论

暂无评论