fixing naming bug, adding license info
This commit is contained in:
parent
01b42bc09f
commit
385ef2afd3
40 changed files with 156 additions and 3 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
name: Build CI
|
name: Build CI
|
||||||
|
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
|
||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
name: Release Actions
|
name: Release Actions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
|
||||||
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,9 +1,14 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
*.mpy
|
*.mpy
|
||||||
.idea
|
.idea
|
||||||
__pycache__
|
__pycache__
|
||||||
_build
|
_build
|
||||||
*.pyc
|
*.pyc
|
||||||
.env
|
.env
|
||||||
|
.python-version
|
||||||
build*/
|
build*/
|
||||||
bundles
|
bundles
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
[MASTER]
|
[MASTER]
|
||||||
|
|
||||||
# A comma-separated list of package or module names from where C extensions may
|
# A comma-separated list of package or module names from where C extensions may
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
python:
|
python:
|
||||||
version: 3
|
version: 3
|
||||||
requirements_file: requirements.txt
|
requirements_file: requirements.txt
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
|
||||||
|
SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
|
-->
|
||||||
# Adafruit Community Code of Conduct
|
# Adafruit Community Code of Conduct
|
||||||
|
|
||||||
## Our Pledge
|
## Our Pledge
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,11 @@ Introduction
|
||||||
:target: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/actions
|
:target: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/actions
|
||||||
:alt: Build Status
|
:alt: Build Status
|
||||||
|
|
||||||
A high level library representing all the features of the Adafruit CLUE.
|
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
||||||
|
:target: https://github.com/psf/black
|
||||||
|
:alt: Code Style: Black
|
||||||
|
|
||||||
|
A high level library representing all the features of the Adafruit CLUE
|
||||||
|
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
|
|
|
||||||
3
README.rst.license
Normal file
3
README.rst.license
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: Copyright (c) 2020 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
# The MIT License (MIT)
|
# The MIT License (MIT)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 Kattni Rembor for Adafruit Industries
|
# Copyright (c) 2020 Kattni Rembor for Adafruit Industries
|
||||||
|
|
@ -65,7 +68,7 @@ import neopixel
|
||||||
import adafruit_apds9960.apds9960
|
import adafruit_apds9960.apds9960
|
||||||
import adafruit_bmp280
|
import adafruit_bmp280
|
||||||
import adafruit_lis3mdl
|
import adafruit_lis3mdl
|
||||||
import adafruit_lsm6ds
|
import adafruit_lsm6ds.lsm6ds33
|
||||||
import adafruit_sht31d
|
import adafruit_sht31d
|
||||||
import audiobusio
|
import audiobusio
|
||||||
import audiopwmio
|
import audiopwmio
|
||||||
|
|
@ -238,7 +241,7 @@ class Clue: # pylint: disable=too-many-instance-attributes, too-many-public-met
|
||||||
|
|
||||||
# Define sensors:
|
# Define sensors:
|
||||||
# Accelerometer/gyroscope:
|
# Accelerometer/gyroscope:
|
||||||
self._accelerometer = adafruit_lsm6ds.LSM6DS33(self._i2c)
|
self._accelerometer = adafruit_lsm6ds.lsm6ds33.LSM6DS33(self._i2c)
|
||||||
|
|
||||||
# Magnetometer:
|
# Magnetometer:
|
||||||
self._magnetometer = adafruit_lis3mdl.LIS3MDL(self._i2c)
|
self._magnetometer = adafruit_lis3mdl.LIS3MDL(self._i2c)
|
||||||
|
|
|
||||||
19
disabled.pre-commit-config.yaml
Normal file
19
disabled.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/python/black
|
||||||
|
rev: 19.10b0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
- repo: https://github.com/fsfe/reuse-tool
|
||||||
|
rev: latest
|
||||||
|
hooks:
|
||||||
|
- id: reuse
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v2.3.0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
3
docs/_static/accelerometer.jpg.license
vendored
Normal file
3
docs/_static/accelerometer.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/button_a.jpg.license
vendored
Normal file
3
docs/_static/button_a.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/button_b.jpg.license
vendored
Normal file
3
docs/_static/button_b.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/display_clue_data.jpg.license
vendored
Normal file
3
docs/_static/display_clue_data.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/favicon.ico.license
vendored
Normal file
3
docs/_static/favicon.ico.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
SPDX-FileCopyrightText: 2018 Phillip Torrone for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/humidity.jpg.license
vendored
Normal file
3
docs/_static/humidity.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/magnetometer.jpg.license
vendored
Normal file
3
docs/_static/magnetometer.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/microphone.jpg.license
vendored
Normal file
3
docs/_static/microphone.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/neopixel.jpg.license
vendored
Normal file
3
docs/_static/neopixel.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/pad_0.jpg.license
vendored
Normal file
3
docs/_static/pad_0.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/pad_1.jpg.license
vendored
Normal file
3
docs/_static/pad_1.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/pad_2.jpg.license
vendored
Normal file
3
docs/_static/pad_2.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/pressure.jpg.license
vendored
Normal file
3
docs/_static/pressure.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/proximity.jpg.license
vendored
Normal file
3
docs/_static/proximity.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/red_led.jpg.license
vendored
Normal file
3
docs/_static/red_led.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/speaker.jpg.license
vendored
Normal file
3
docs/_static/speaker.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/_static/white_leds.jpg.license
vendored
Normal file
3
docs/_static/white_leds.jpg.license
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: CC-BY-4.0
|
||||||
3
docs/api.rst.license
Normal file
3
docs/api.rst.license
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
||||||
3
docs/examples.rst.license
Normal file
3
docs/examples.rst.license
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
3
docs/index.rst.license
Normal file
3
docs/index.rst.license
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
"""
|
"""
|
||||||
Circuit Python BLE Color Patchwork
|
Circuit Python BLE Color Patchwork
|
||||||
This demo uses advertising to broadcast a color of the users choice.
|
This demo uses advertising to broadcast a color of the users choice.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
from adafruit_clue import clue
|
from adafruit_clue import clue
|
||||||
|
|
||||||
clue.sea_level_pressure = 1020
|
clue.sea_level_pressure = 1020
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
"""Calculate the height of an object. Press button A to reset initial height and then lift the
|
"""Calculate the height of an object. Press button A to reset initial height and then lift the
|
||||||
CLUE to find the height."""
|
CLUE to find the height."""
|
||||||
from adafruit_clue import clue
|
from adafruit_clue import clue
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
from adafruit_clue import clue
|
from adafruit_clue import clue
|
||||||
|
|
||||||
clue.sea_level_pressure = 1020
|
clue.sea_level_pressure = 1020
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
"""Display a series of bitmaps using the buttons to advance through the list. To use: place
|
"""Display a series of bitmaps using the buttons to advance through the list. To use: place
|
||||||
supported bitmap files on your CIRCUITPY drive, then press the buttons on your CLUE to advance
|
supported bitmap files on your CIRCUITPY drive, then press the buttons on your CLUE to advance
|
||||||
through them.
|
through them.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
"""CLUE Spirit Level Demo"""
|
"""CLUE Spirit Level Demo"""
|
||||||
import board
|
import board
|
||||||
import displayio
|
import displayio
|
||||||
|
|
|
||||||
6
pyproject.toml
Normal file
6
pyproject.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
target-version = ['py35']
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
# SPDX-FileCopyrightText: Copyright (c) 2020 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
Adafruit-Blinka
|
Adafruit-Blinka
|
||||||
adafruit-circuitpython-busdevice
|
adafruit-circuitpython-busdevice
|
||||||
adafruit-circuitpython-register
|
adafruit-circuitpython-register
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
||||||
|
# SPDX-FileCopyrightText: Copyright (c) 2020 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
"""
|
"""
|
||||||
This library is not deployed to PyPI. It is either a board-specific helper library, or
|
This library is not deployed to PyPI. It is either a board-specific helper library, or
|
||||||
does not make sense for use on or is incompatible with single board computers and Linux.
|
does not make sense for use on or is incompatible with single board computers and Linux.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue