Added SPDX to 30 more files - spdx-51
This commit is contained in:
parent
bfe5427a4a
commit
9bac6faac0
30 changed files with 120 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2018 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import board
|
import board
|
||||||
import pwmio
|
import pwmio
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2018 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import board
|
import board
|
||||||
import pwmio
|
import pwmio
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import board
|
import board
|
||||||
import pwmio
|
import pwmio
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Example for Pico. Turns on the built-in LED."""
|
"""Example for Pico. Turns on the built-in LED."""
|
||||||
import board
|
import board
|
||||||
import digitalio
|
import digitalio
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Example for Pico. Turns the built-in LED on and off with no delay."""
|
"""Example for Pico. Turns the built-in LED on and off with no delay."""
|
||||||
import board
|
import board
|
||||||
import digitalio
|
import digitalio
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Example for Pico. Blinks the built-in LED."""
|
"""Example for Pico. Blinks the built-in LED."""
|
||||||
import time
|
import time
|
||||||
import board
|
import board
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
A burglar alarm example for Pico. Quick flashing LED indicates alarm has been triggered.
|
A burglar alarm example for Pico. Quick flashing LED indicates alarm has been triggered.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
A burglar alarm example for Pico. Slow flashing LED indicates alarm is ready. Quick flashing LED
|
A burglar alarm example for Pico. Slow flashing LED indicates alarm is ready. Quick flashing LED
|
||||||
indicates alarm has been triggered.
|
indicates alarm has been triggered.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
A burglar alarm with two motion sensors example for Pico. Slow flashing LED indicates alarm is
|
A burglar alarm with two motion sensors example for Pico. Slow flashing LED indicates alarm is
|
||||||
ready. Quick flashing LED and beeping buzzer indicate alarm has been triggered.
|
ready. Quick flashing LED and beeping buzzer indicate alarm has been triggered.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Button example for Pico. Prints button pressed state to serial console.
|
Button example for Pico. Prints button pressed state to serial console.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Button example for Pico. Prints message to serial console when button is pressed.
|
Button example for Pico. Prints message to serial console when button is pressed.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Example of assigning a variable and comparing it to a value."""
|
"""Example of assigning a variable and comparing it to a value."""
|
||||||
user_name = input ("What is your name? ")
|
user_name = input ("What is your name? ")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Example of assigning a variable, and comparing it to a value in a loop."""
|
"""Example of assigning a variable, and comparing it to a value in a loop."""
|
||||||
user_name = input ("What is your name? ")
|
user_name = input ("What is your name? ")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Data logging example for Pico. Logs the temperature to a file on the Pico.
|
Data logging example for Pico. Logs the temperature to a file on the Pico.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
boot.py file for Pico data logging example. If this file is present when
|
boot.py file for Pico data logging example. If this file is present when
|
||||||
the pico starts up, make the filesystem writeable by CircuitPython.
|
the pico starts up, make the filesystem writeable by CircuitPython.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Example of definite loop."""
|
"""Example of definite loop."""
|
||||||
print("Loop starting!")
|
print("Loop starting!")
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Simple motion sensor example for Pico. Prints to serial console when PIR sensor is triggered.
|
Simple motion sensor example for Pico. Prints to serial console when PIR sensor is triggered.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
NeoPixel example for Pico. Displays a rainbow on the NeoPixels.
|
NeoPixel example for Pico. Displays a rainbow on the NeoPixels.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
NeoPixel example for Pico. Turns the NeoPixels red.
|
NeoPixel example for Pico. Turns the NeoPixels red.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
NeoPixel example for Pico. Turns the NeoPixels red, green, and blue in sequence.
|
NeoPixel example for Pico. Turns the NeoPixels red, green, and blue in sequence.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Use PWM to fade an LED up and down using the potentiometer value as the duty cycle.
|
Use PWM to fade an LED up and down using the potentiometer value as the duty cycle.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Convert the potentiometer value to a voltage value. Prints the voltage value to the serial console
|
Convert the potentiometer value to a voltage value. Prints the voltage value to the serial console
|
||||||
every two seconds.
|
every two seconds.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Reaction game example for Pico. LED turns on for between 5 and 10 seconds. Once it turns off, try
|
Reaction game example for Pico. LED turns on for between 5 and 10 seconds. Once it turns off, try
|
||||||
to press the button as quickly as possible to measure reaction timm.
|
to press the button as quickly as possible to measure reaction timm.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Traffic light simulator example for Pico. Turns on red, amber and green LEDs in traffic
|
"""Traffic light simulator example for Pico. Turns on red, amber and green LEDs in traffic
|
||||||
light-like sequence.
|
light-like sequence.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
"""Traffic light with pedestrian crossing simulator example for Pico. Turns on red, amber and green
|
"""Traffic light with pedestrian crossing simulator example for Pico. Turns on red, amber and green
|
||||||
LEDs in traffic light-like sequence. When button is pressed, upon light sequence completion, the
|
LEDs in traffic light-like sequence. When button is pressed, upon light sequence completion, the
|
||||||
red LED turns on and the buzzer beeps to indicate pedestrian crossing is active.
|
red LED turns on and the buzzer beeps to indicate pedestrian crossing is active.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
// SPDX-FileCopyrightText: 2017 Carter Nelson for Adafruit Industries
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
//
|
//
|
||||||
// Gordon Cole MP3 Player
|
// Gordon Cole MP3 Player
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Limor Fried for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# MagTag Quote Board
|
# MagTag Quote Board
|
||||||
# Displays Quotes from the Adafruit quotes server
|
# Displays Quotes from the Adafruit quotes server
|
||||||
# Be sure to put WiFi access point info in secrets.py file to connect
|
# Be sure to put WiFi access point info in secrets.py file to connect
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Carter Nelson for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import math
|
import math
|
||||||
import board
|
import board
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
// SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/*!
|
/*!
|
||||||
This is a demo for the Adafruit QT2040 Trinkey and the MCP9808 temperature
|
This is a demo for the Adafruit QT2040 Trinkey and the MCP9808 temperature
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
# SPDX-FileCopyrightText: 2019 Mikey Sklar for Adafruit Industries
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import board
|
import board
|
||||||
import digitalio
|
import digitalio
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue