Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmparis/circuitpython_i2c_button
CircuitPython I2C Button à la Sparkfun Qwiic Button/Switch/Arcade
https://github.com/gmparis/circuitpython_i2c_button
circuitpython i2c-device sparkfun-products
Last synced: 3 months ago
JSON representation
CircuitPython I2C Button à la Sparkfun Qwiic Button/Switch/Arcade
- Host: GitHub
- URL: https://github.com/gmparis/circuitpython_i2c_button
- Owner: gmparis
- License: mit
- Created: 2020-01-11T18:45:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-08T00:56:27.000Z (over 3 years ago)
- Last Synced: 2024-09-21T15:02:07.931Z (4 months ago)
- Topics: circuitpython, i2c-device, sparkfun-products
- Language: Python
- Homepage:
- Size: 127 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Introduction
============.. image:: https://readthedocs.org/projects/circuitpython-i2c_button/badge/?version=latest
:target: https://circuitpython-i2c_button.readthedocs.io/
:alt: Documentation Status.. image:: https://img.shields.io/discord/327254708534116352.svg
:target: https://discord.gg/nBQh6qu
:alt: Discord.. image:: https://github.com/gmparis/CircuitPython_i2c_button/workflows/Build%20CI/badge.svg
:target: https://github.com/gmparis/CircuitPython_i2c_button/actions
:alt: Build StatusCircuitPython I2C Button à la Sparkfun Qwiic Button/Switch/Arcade
Dependencies
=============
This driver depends on:* `Adafruit CircuitPython `_
* `Bus Device `_Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle `_
or individual libraries can be installed using
`circup `_.Installing to a Connected CircuitPython Device with Circup
==========================================================Make sure that you have ``circup`` installed in your Python environment.
Install it with the following command if necessary:.. code-block:: shell
pip3 install circup
With ``circup`` installed and your CircuitPython device connected use the
following command to install:.. code-block:: shell
circup install i2c_button
Or the following command to update an existing version:
.. code-block:: shell
circup update
Usage Example
=============.. code-block:: python
import board
import busio
from i2c_button import I2C_Buttoni2c = board.I2C()
button = I2C_Button(i2c)
print('firmware version is', button.version)See examples/i2c_button_simpletest.py and other scripts in that folder
for more extensive examples.Credits
============This library is based upon the Sparkfun Arduino library and SparkX Switch firmware
authored by Nathan Seidle, Fischer Moseley and Priyanka Makin.* `Arduino Library `_
* `Switch Firmware `_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 `_.