Skip to content

Commit 2c286c0

Browse files
committed
Merge branch 'license-changes' of https://github.com/TheKitty/Adafruit_Learning_System_Guides into license-changes
2 parents 4c5c6e2 + 12c926b commit 2c286c0

File tree

203 files changed

+11735
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+11735
-77
lines changed

.github/workflows/githubci.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
arduino-platform: ["cpb", "cpc", "cpx_ada", "esp32", "esp8266", "feather32u4", "feather_m0_express", "feather_m4_express", "feather_rp2040", "flora", "funhouse", "gemma", "gemma_m0", "hallowing_m0", "hallowing_m4_tinyusb", "magtag", "metro_m0", "metro_m0_tinyusb", "metro_m4", "metro_m4_tinyusb", "monster_m4sk", "monster_m4sk_tinyusb", "neokeytrinkey_m0", "neotrellis_m4", "nrf52832", "nrf52840", "protrinket_5v", "proxlighttrinkey_m0", "pybadge", "pygamer", "pyportal", "qt2040_trinkey", "qtpy_m0", "rotarytrinkey_m0", "slidetrinkey_m0", "trinket_m0", "uno", "trinket_5v" ]
11-
# "trinket_5v", was removed
10+
arduino-platform: ["cpb", "cpc", "cpx_ada", "esp32", "esp8266", "feather32u4", "feather_m0_express", "feather_m4_express", "feather_rp2040", "flora", "funhouse", "gemma", "gemma_m0", "hallowing_m0", "hallowing_m4_tinyusb", "magtag", "metro_m0", "metro_m0_tinyusb", "metro_m4", "metro_m4_tinyusb", "monster_m4sk", "monster_m4sk_tinyusb", "neokeytrinkey_m0", "neotrellis_m4", "nrf52832", "nrf52840", "protrinket_5v", "proxlighttrinkey_m0", "pybadge", "pygamer", "pyportal", "qt2040_trinkey", "qtpy_m0", "rotarytrinkey_m0", "slidetrinkey_m0", "trinket_m0", "uno", "trinket_5v", "ledglasses_nrf52840" ]
1211
runs-on: ubuntu-18.04
1312

1413
steps:
@@ -39,6 +38,34 @@ jobs:
3938
- name: test platforms
4039
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
4140

41+
- name: Upload build artifacts
42+
uses: actions/upload-artifact@v2
43+
with:
44+
name: ${{ github.event.repository.name }}.${{ github.sha }}
45+
path: |
46+
build/*.hex
47+
build/*.bin
48+
build/*.uf2
49+
50+
- name: Zip release files
51+
if: startsWith(github.ref, 'refs/tags/')
52+
run: |
53+
if [ -d build ]; then
54+
(
55+
echo "Built from Adafruit Learning System Guides `git describe --tags` for ${{ matrix.arduino-platform }}"
56+
echo "Source code: https://github.com/adafruit/"
57+
echo "Adafruit Learning System: https://learn.adafruit.com/"
58+
) > build/README.txt
59+
cd build && zip -9 -o ${{ matrix.arduino-platform }}.zip *.hex *.bin *.uf2 *.txt
60+
fi
61+
62+
- name: Create release
63+
if: startsWith(github.ref, 'refs/tags/')
64+
uses: softprops/action-gh-release@v1
65+
with:
66+
files: build/${{ matrix.arduino-platform }}.zip
67+
fail_on_unmatched_files: false
68+
body: "Select the zip file corresponding to your board from the list below."
4269

4370
pylint:
4471
runs-on: ubuntu-latest

3D_Printed_LED-Animation_BMO/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# SPDX-FileCopyrightText: 2014, 2018 Phil Burgess and Mikey Sklar for Adafruit Industries
1+
# SPDX-FileCopyrightText: 2014 Phil Burgess for Adafruit Industries
2+
# SPDX-FileCopyrightText: 2018 Phil Burgess for Adafruit Industries
23
#
34
# SPDX-License-Identifier: MIT
45
#

3D_Printed_LED_Microphone_Flag/.circuitpython.skip

Lines changed: 0 additions & 1 deletion
This file was deleted.

3D_Printed_LED_Microphone_Flag/.gemma_m0.generate

Whitespace-only changes.

3D_Printed_LED_Microphone_Flag/code.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# SPDX-FileCopyrightText: 2013, 2017 Phil Burgess and Mikey Sklar for Adafruit Industries
1+
# SPDX-FileCopyrightText: 2013 Phil Burgess for Adafruit Industries
2+
# SPDX-FileCopyrightText: 2017 Mikey Sklar for Adafruit Industries
23
#
34
# SPDX-License-Identifier: BSD
45

@@ -124,9 +125,7 @@ def fscale(originalmin, originalmax, newbegin, newend, inputvalue, curve):
124125

125126
def drawLine(fromhere, to):
126127
if fromhere > to:
127-
fromheretemp = fromhere
128-
fromhere = to
129-
to = fromheretemp
128+
to, fromhere = fromhere, to
130129

131130
for index in range(fromhere, to):
132131
strip[index] = (0, 0, 0)

3D_Printed_NeoPixel_Ring_Hair_Dress/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# SPDX-FileCopyrightText: 2014, 2017 HerrRausB https://github.com/HerrRausB, Mikey Sklar for Adafruit Industries
1+
# SPDX-FileCopyrightText: 2014 HerrRausB https://github.com/HerrRausB
2+
# SPDX-FileCopyrightText: 2017 Mikey Sklar for Adafruit Industries
23
#
34
# SPDX-License-Identifier: LGPL-3.0-or-later
45
#

3D_Printed_Unicorn_Horn/.gemma_m0.generate

Whitespace-only changes.

3D_Printed_Unicorn_Horn/.gemma_m0.test.only

Whitespace-only changes.

Arduino_Ethernet_SD_Card/SDcardTest/SDcardTest.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
created 28 Mar 2011 by Limor Fried
1616
modified 9 Apr 2012 by Tom Igoe
17-
modified 12 Apr 2018 by Mike Barela
17+
modified 12 Apr 2018 by Anne Barela
1818
*/
1919
// include the SD library:
2020
#include <SPI.h>

Arduino_Ethernet_SD_Card/SDfileList/SDfileList.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
created Nov 2010 by David A. Mellis
1313
modified 9 Apr 2012 by Tom Igoe
1414
modified 2 Feb 2014 by Scott Fitzgerald
15-
modified 12 Apr 2018 by Mike Barela
15+
modified 12 Apr 2018 by Anne Barela
1616
1717
This example code is in the public domain.
1818

CPX_Marble_Maze/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Then you should be able to see the **CIRCUITPY** drive when connected via USB.
1313

1414
CircuitPython resources are at https://CircuitPython.Org/
1515

16-
Code written by Dano Wall and Mike Barela for Adafruit Industries.
16+
Code written by Dano Wall and Anne Barela for Adafruit Industries.
1717

1818
MIT License, please attribute.
1919

Chirping_Plush_Owl_Toy/Chirping_Plush_Owl_Toy.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Chirp Owl written by Becky Stern and T Main for Adafruit Industries
33
Tutorial: http://learn.adafruit.com/chirping-plush-owl-toy/
44
5-
Includes animal sounds by Mike Barela
5+
Includes animal sounds by Anne Barela
66
http://learn.adafruit.com/adafruit-trinket-modded-stuffed-animal/animal-sounds
77
88
based in part on Debounce

Chirping_Plush_Owl_Toy/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Chirp Owl written by Becky Stern and T Main for Adafruit Industries
22
# Tutorial: http://learn.adafruit.com/chirping-plush-owl-toy/
33

4-
# Includes animal sounds by Mike Barela
4+
# Includes animal sounds by Anne Barela
55
# http://learn.adafruit.com/adafruit-trinket-modded-stuffed-animal/animal-sounds
66
# based in part on Debounce
77
# created 21 November 2006

CircuitPython_Display_Text/colormask_example/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
rainbow_palette = displayio.Palette(255)
4545

4646
for i in range(0, 255):
47-
rainbow_palette[i] = int("".join("%02x" % i for i in colorwheel(i)), 16)
47+
rainbow_palette[i] = colorwheel(i)
4848

4949
for y in range(rainbow_bitmap.height):
5050
for x in range(rainbow_bitmap.width):

CircuitPython_Pico_PIO_Neopixel/neopio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2016 Damien P. George
22
# SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries
33
# SPDX-FileCopyrightText: 2019 Carter Nelson
4-
# SPDX-FileCopyrightText: 2019 Roy Hooper
4+
# SPDX-FileCopyrightText: 2019 Rose Hooper
55
# SPDX-FileCopyrightText: 2020 Jeff Epler
66
#
77
# SPDX-License-Identifier: MIT
@@ -10,7 +10,7 @@
1010
`neopio` - Neopixel strip driver using RP2040's PIO
1111
===================================================
1212
13-
* Author(s): Damien P. George, Scott Shawcroft, Carter Nelson, Roy Hooper, Jeff Epler
13+
* Author(s): Damien P. George, Scott Shawcroft, Carter Nelson, Rose Hooper, Jeff Epler
1414
"""
1515

1616
import adafruit_pioasm

CircuitPython_Simple_Wordclock/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Adafruit invests time and resources providing this open source code,
1414
please support Adafruit and open-source hardware by purchasing
1515
products from [Adafruit](https://www.adafruit.com)!
1616

17-
MIT license, designed and guide written by Dano Wall, code by Mike Barela
17+
MIT license, designed and guide written by Dano Wall, code by Anne Barela
1818

1919
All text above, and the splash screen below must be included in any redistribution
2020

CircuitPython_Simple_Wordclock/set_clock/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Write the time for the Adafruit DS3231 real-time clock.
2-
# Limor Fried/Mike Barela for Adafruit Industries
2+
# Limor Fried/Anne Barela for Adafruit Industries
33

44
import time
55
import board

CircuitPython_Slideshow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Adafruit invests time and resources providing this open source code,
1010
please support Adafruit and open-source hardware by purchasing
1111
products from [Adafruit](https://www.adafruit.com)!
1212

13-
MIT license, guide written by Mike Barela, code by Limor Fried
13+
MIT license, guide written by Anne Barela, code by Limor Fried
1414

1515
All text above, and the splash screen below must be included in any redistribution
1616

CircuitPython_Templates/i2c_find_pins/code.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def get_unique_pins():
2929
"LED",
3030
"SWITCH",
3131
"BUTTON",
32+
"ACCELEROMETER_INTERRUPT",
33+
"VOLTAGE_MONITOR",
34+
"MICROPHONE_CLOCK",
35+
"MICROPHONE_DATA",
3236
]
3337
if p in dir(board)
3438
]

Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure/code.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import time
22
import board
3-
import pwmio
43
import pulseio
54
import adafruit_irremote
65
import neopixel
@@ -12,9 +11,8 @@
1211
# Create NeoPixel object to indicate status
1312
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10)
1413

15-
# Create a 'pwmio' output, to send infrared signals on the IR transmitter @ 38KHz
16-
pwm = pwmio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
17-
pulseout = pulseio.PulseOut(pwm)
14+
# Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz
15+
pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
1816

1917
# Create an encoder that will take numbers and turn them into IR pulses
2018
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],

Circuit_Playground_Express_IR_Zombie_Game/code.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import time
22
import pulseio
3-
import pwmio
43
import board
54
import adafruit_irremote
65
import digitalio
@@ -22,9 +21,8 @@
2221
# Create a decoder that will take pulses and turn them into numbers
2322
decoder = adafruit_irremote.GenericDecode()
2423

25-
# Create a 'pwmio' output, to send infrared signals on the IR transmitter @ 38KHz
26-
pwm = pwmio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
27-
pulseout = pulseio.PulseOut(pwm)
24+
# Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz
25+
pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
2826
# Create an encoder that will take numbers and turn them into NEC IR pulses
2927
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550],
3028
zero=[550, 1700], trail=0)

Circuit_Playground_Express_LuckyCat/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Lucky Cat Maneki-neko with Circuit Playground Express
2-
# Mike Barela for Adafruit Industries, MIT License
2+
# Anne Barela for Adafruit Industries, MIT License
33

44
import time
55
import board

Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit/code.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
from adafruit_circuitplayground.express import cpx
33
import adafruit_irremote
44
import pulseio
5-
import pwmio
65
import board
76

8-
# Create a 'pwmio' output, to send infrared signals on the IR transmitter @ 38KHz
9-
pwm = pwmio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
10-
pulseout = pulseio.PulseOut(pwm)
7+
# Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz
8+
pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
119
# Create an encoder that will take numbers and turn them into NEC IR pulses
1210
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550],
1311
zero=[550, 1700], trail=0)

Cirecuit_Playground_Express_Pinata/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Circuit Playground Express Piñata by Dano Wall for Adafruit Industries
2-
# CircuitPython code by Mike Barela for Adafruit Industries, MIT License
2+
# CircuitPython code by Anne Barela for Adafruit Industries, MIT License
33
import time
44
import random
55
import board

Close_Encounters_Hat/Close_Encounters_Hat.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Close Encounters hat with 10 neopixels by Leslie Birch for Adafruit Industries.
33
Notes play with each corresponding light.
4-
Based on code by Becky Stern, Mike Barela and T Main for Adafruit Industries
4+
Based on code by Becky Stern, Anne Barela and T Main for Adafruit Industries
55
http://learn.adafruit.com/adafruit-trinket-modded-stuffed-animal/animal-sounds
66
*/
77

Crickit_CPX_Marionette/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CircuitPython for the Adafruit Learning System Tutorial
22
# Universal Marionette Kit
3-
# Project by Dano Wall, code by Mike Barela for Adafruit Industries
3+
# Project by Dano Wall, code by Anne Barela for Adafruit Industries
44
# MIT License
55
import time
66
from adafruit_crickit import crickit

Crickit_Stumblebot/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Stumble Bot, coded in CircuitPython
22
# Using an Adafruit Circuit Playground Express, Crickit, and 2 servos
3-
# Dano Wall, Mike Barela for Adafruit Industries, MIT License, May, 2018
3+
# Dano Wall, Anne Barela for Adafruit Industries, MIT License, May, 2018
44
#
55
import time
66
from digitalio import DigitalInOut, Direction, Pull

Crickit_microbit_MicroPython/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# main.py - code to test the Adafruit CRICKIT board with
22
# the BBC micro:bit and MicroPython (NOT CircuitPython)
3-
# MIT License by Limor Fried and Mike Barela, 2019
3+
# MIT License by Limor Fried and Anne Barela, 2019
44
# This code requires the seesaw.py module as a driver
55
import time
66
import seesaw

EyeLights_Accelerometer_Tap/EyeLights_Accelerometer_Tap/.ledglasses_nrf52840.generate

Whitespace-only changes.

EyeLights_Accelerometer_Tap/EyeLights_Accelerometer_Tap/.ledglasses_nrf52840.test.only

Whitespace-only changes.

0 commit comments

Comments
 (0)