From bc6e98626055ad1f0a9bb2ace1f41b17c9e4a9fc Mon Sep 17 00:00:00 2001 From: dherrada Date: Wed, 23 Feb 2022 13:49:59 -0500 Subject: [PATCH] Added SPDX to 30 more files - spdx-38 --- CPB_Quick_Draw_Duo/code.py | 4 + CPB_Quick_Draw_Duo/reaction/code.py | 4 + CPB_Volume_BLE/code.py | 4 + CircuitPython_Heart_Sculpture/code.py | 4 + CircuitPython_Star_Gazer/code.py | 4 + Crickit_WobblyBot/WobblyBot/BluefruitConfig.h | 4 + Crickit_WobblyBot/WobblyBot/WobblyBot.ino | 4 + Crickit_WobblyBot/WobblyBot/packetParser.cpp | 4 + Crickit_WobblyBot/code.py | 4 + ESP8266_MicroPython_Holiday_Lights/lights.py | 4 + .../Feather_ESP32S2_TFT_FactoryTest.ino | 4 + .../QTPy_ESP32S2_FactoryTest.ino | 4 + .../Flora_Pianoglove/Flora_Pianoglove.h | 4 + .../Flora_Pianoglove/Flora_Pianoglove.ino | 4 + .../Arduino/IR_Commander/IR_Commander.ino | 374 +++++++++--------- IR_Sensor/Arduino/IR_Commander/ircommander.h | 4 + .../Arduino/Intervalometer/Intervalometer.ino | 4 + IR_Sensor/Arduino/Raw_IR/Raw_IR.ino | 7 +- IR_Sensor/CircuitPython/code.py | 4 + MacroPad_Scramble_Lock/code.py | 4 + MagTag_Showtimes/code.py | 4 + .../CircuitPython_Touch_Example/code.py | 4 + NeoPixel_Punk_Collar/NeoPixel_Punk_Collar.ino | 4 + NeoPixel_Punk_Collar/code.py | 4 + OozeMaster3000/OozeMaster3000.ino | 4 + SD_Basic_GPS_Logger/SD_GPSLogger/GPSconfig.h | 4 + .../SD_GPSLogger/SD_GPSLogger.ino | 4 + Slideshows_Soundtrack/code.py | 4 + Starry_Night/code.py | 4 + TFT_Gizmo_Dreidel/code.py | 4 + 30 files changed, 306 insertions(+), 187 deletions(-) diff --git a/CPB_Quick_Draw_Duo/code.py b/CPB_Quick_Draw_Duo/code.py index 9bb414632..20f95be0e 100644 --- a/CPB_Quick_Draw_Duo/code.py +++ b/CPB_Quick_Draw_Duo/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Kevin J. Walters for Adafruit Industries +# +# SPDX-License-Identifier: MIT + # cpb-quick-draw v1.11 # CircuitPython (on CPBs) Quick Draw reaction game # This is a two player game using two Circuit Playground Bluefruit boards diff --git a/CPB_Quick_Draw_Duo/reaction/code.py b/CPB_Quick_Draw_Duo/reaction/code.py index 7f898844e..d885e2558 100644 --- a/CPB_Quick_Draw_Duo/reaction/code.py +++ b/CPB_Quick_Draw_Duo/reaction/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 Anne Barela for Adafruit Industries +# +# SPDX-License-Identifier: MIT + # cpx-reaction-timer v1.0.1 # A human reaction timer using light and sound diff --git a/CPB_Volume_BLE/code.py b/CPB_Volume_BLE/code.py index 8d7d39ee3..4f6ecb79c 100644 --- a/CPB_Volume_BLE/code.py +++ b/CPB_Volume_BLE/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 John Park for Adafruit Industries +# +# SPDX-License-Identifier: MIT + """ A CircuitPython 'multimedia' dial demo Uses a Circuit Playground Bluefruit + Rotary Encoder -> BLE out diff --git a/CircuitPython_Heart_Sculpture/code.py b/CircuitPython_Heart_Sculpture/code.py index 3645bc76b..804695a21 100644 --- a/CircuitPython_Heart_Sculpture/code.py +++ b/CircuitPython_Heart_Sculpture/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Jeff Epler for Adafruit Industries +# +# SPDX-License-Identifier: MIT + import time import adafruit_dotstar from rainbowio import colorwheel diff --git a/CircuitPython_Star_Gazer/code.py b/CircuitPython_Star_Gazer/code.py index 3bb82446a..a0ff5157d 100644 --- a/CircuitPython_Star_Gazer/code.py +++ b/CircuitPython_Star_Gazer/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 Limor Fried for Adafruit Industries +# +# SPDX-License-Identifier: MIT + """ This example will access an API, grab a number like hackaday skulls, github stars, price of bitcoin, twitter followers... if you can find something that diff --git a/Crickit_WobblyBot/WobblyBot/BluefruitConfig.h b/Crickit_WobblyBot/WobblyBot/BluefruitConfig.h index 86260e3ff..489cab524 100644 --- a/Crickit_WobblyBot/WobblyBot/BluefruitConfig.h +++ b/Crickit_WobblyBot/WobblyBot/BluefruitConfig.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2018 Limor Fried for Adafruit Industries +// +// SPDX-License-Identifier: MIT + // COMMON SETTINGS // ---------------------------------------------------------------------------------------------- // These settings are used in both SW UART, HW UART and SPI mode diff --git a/Crickit_WobblyBot/WobblyBot/WobblyBot.ino b/Crickit_WobblyBot/WobblyBot/WobblyBot.ino index 7e7f85ad7..7aef7ca1b 100644 --- a/Crickit_WobblyBot/WobblyBot/WobblyBot.ino +++ b/Crickit_WobblyBot/WobblyBot/WobblyBot.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries +// +// SPDX-License-Identifier: MIT + // Continuous servo based walking/waddling/etc robot. // Bluetooth code is from Feather M0 Bluefruit controller example. diff --git a/Crickit_WobblyBot/WobblyBot/packetParser.cpp b/Crickit_WobblyBot/WobblyBot/packetParser.cpp index 29942be57..6e138520f 100644 --- a/Crickit_WobblyBot/WobblyBot/packetParser.cpp +++ b/Crickit_WobblyBot/WobblyBot/packetParser.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2018 Limor Fried for Adafruit Industries +// +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/Crickit_WobblyBot/code.py b/Crickit_WobblyBot/code.py index 3d93f01f8..2225f1115 100644 --- a/Crickit_WobblyBot/code.py +++ b/Crickit_WobblyBot/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries +# +# SPDX-License-Identifier: MIT + """ Continuous servo based walking/waddling/etc robot. diff --git a/ESP8266_MicroPython_Holiday_Lights/lights.py b/ESP8266_MicroPython_Holiday_Lights/lights.py index a711ce333..6d87b57c8 100755 --- a/ESP8266_MicroPython_Holiday_Lights/lights.py +++ b/ESP8266_MicroPython_Holiday_Lights/lights.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018 Tony DiCola for Adafruit Industries +# +# SPDX-License-Identifier: MIT + # ESP8266 MicroPython smart holiday lights project code. # This will animate NeoPixels that can be controlled from the included # lights.html web page. diff --git a/Factory_Tests/Feather_ESP32S2_TFT_FactoryTest/Feather_ESP32S2_TFT_FactoryTest.ino b/Factory_Tests/Feather_ESP32S2_TFT_FactoryTest/Feather_ESP32S2_TFT_FactoryTest.ino index 88e3af517..69f1133c2 100644 --- a/Factory_Tests/Feather_ESP32S2_TFT_FactoryTest/Feather_ESP32S2_TFT_FactoryTest.ino +++ b/Factory_Tests/Feather_ESP32S2_TFT_FactoryTest/Feather_ESP32S2_TFT_FactoryTest.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Limor Fried for Adafruit Industries +// +// SPDX-License-Identifier: MIT + #include #include "Adafruit_LC709203F.h" #include diff --git a/Factory_Tests/QTPy_ESP32S2_FactoryTest/QTPy_ESP32S2_FactoryTest.ino b/Factory_Tests/QTPy_ESP32S2_FactoryTest/QTPy_ESP32S2_FactoryTest.ino index 29e307ed7..03fb8d721 100644 --- a/Factory_Tests/QTPy_ESP32S2_FactoryTest/QTPy_ESP32S2_FactoryTest.ino +++ b/Factory_Tests/QTPy_ESP32S2_FactoryTest/QTPy_ESP32S2_FactoryTest.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Limor Fried for Adafruit Industries +// +// SPDX-License-Identifier: MIT + #include "WiFi.h" #include extern Adafruit_TestBed TB; diff --git a/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.h b/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.h index e0bb47dab..55ff351e9 100644 --- a/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.h +++ b/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + typedef struct RgbColor { unsigned char r; diff --git a/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.ino b/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.ino index b330328f8..f99f94fa3 100644 --- a/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.ino +++ b/Flora_Piano_Glove/Flora_Pianoglove/Flora_Pianoglove.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + #include #include "Adafruit_TCS34725.h" #include diff --git a/IR_Sensor/Arduino/IR_Commander/IR_Commander.ino b/IR_Sensor/Arduino/IR_Commander/IR_Commander.ino index af9afc5d9..5dcfb0c64 100644 --- a/IR_Sensor/Arduino/IR_Commander/IR_Commander.ino +++ b/IR_Sensor/Arduino/IR_Commander/IR_Commander.ino @@ -1,185 +1,189 @@ -/* Raw IR commander - - This sketch/program uses the Arduno and a PNA4602 to - decode IR received. It then attempts to match it to a previously - recorded IR signal. Limor Fried, Adafruit Industries - - MIT License, please attribute - check out learn.adafruit.com for more tutorials! - */ - -// We need to use the 'raw' pin reading methods -// because timing is very important here and the digitalRead() -// procedure is slower! -//uint8_t IRpin = 2; -// Digital pin #2 is the same as Pin D2 see -// http://arduino.cc/en/Hacking/PinMapping168 for the 'raw' pin mapping -#define IRpin_PIN PIND -#define IRpin 2 - -// the maximum pulse we'll listen for - 65 milliseconds is a long time -#define MAXPULSE 65000 -#define NUMPULSES 50 - -// what our timing resolution should be, larger is better -// as its more 'precise' - but too large and you wont get -// accurate timing -#define RESOLUTION 20 - -// What percent we will allow in variation to match the same code -#define FUZZINESS 20 - -// we will store up to 100 pulse pairs (this is -a lot-) -uint16_t pulses[NUMPULSES][2]; // pair is high and low pulse -uint8_t currentpulse = 0; // index for pulses we're storing - -#include "ircommander.h" - -void setup(void) { - Serial.begin(9600); - Serial.println("Ready to decode IR!"); -} - -void loop(void) { - int numberpulses; - - numberpulses = listenForIR(); - - Serial.print("Heard "); - Serial.print(numberpulses); - Serial.println("-pulse long IR signal"); - if (IRcompare(numberpulses, ApplePlaySignal,sizeof(ApplePlaySignal)/4)) { - Serial.println("PLAY"); - } - if (IRcompare(numberpulses, AppleRewindSignal,sizeof(AppleRewindSignal)/4)) { - Serial.println("REWIND"); - } - if (IRcompare(numberpulses, AppleForwardSignal,sizeof(AppleForwardSignal)/4)) { - Serial.println("FORWARD"); - } - delay(500); -} - -//KGO: added size of compare sample. Only compare the minimum of the two -boolean IRcompare(int numpulses, int Signal[], int refsize) { - int count = min(numpulses,refsize); - Serial.print("count set to: "); - Serial.println(count); - for (int i=0; i< count-1; i++) { - int oncode = pulses[i][1] * RESOLUTION / 10; - int offcode = pulses[i+1][0] * RESOLUTION / 10; - -#ifdef DEBUG - Serial.print(oncode); // the ON signal we heard - Serial.print(" - "); - Serial.print(Signal[i*2 + 0]); // the ON signal we want -#endif - - // check to make sure the error is less than FUZZINESS percent - if ( abs(oncode - Signal[i*2 + 0]) <= (Signal[i*2 + 0] * FUZZINESS / 100)) { -#ifdef DEBUG - Serial.print(" (ok)"); -#endif - } else { -#ifdef DEBUG - Serial.print(" (x)"); -#endif - // we didn't match perfectly, return a false match - return false; - } - - -#ifdef DEBUG - Serial.print(" \t"); // tab - Serial.print(offcode); // the OFF signal we heard - Serial.print(" - "); - Serial.print(Signal[i*2 + 1]); // the OFF signal we want -#endif - - if ( abs(offcode - Signal[i*2 + 1]) <= (Signal[i*2 + 1] * FUZZINESS / 100)) { -#ifdef DEBUG - Serial.print(" (ok)"); -#endif - } else { -#ifdef DEBUG - Serial.print(" (x)"); -#endif - // we didn't match perfectly, return a false match - return false; - } - -#ifdef DEBUG - Serial.println(); -#endif - } - // Everything matched! - return true; -} - -int listenForIR(void) { - currentpulse = 0; - - while (1) { - uint16_t highpulse, lowpulse; // temporary storage timing - highpulse = lowpulse = 0; // start out with no pulse length - -// while (digitalRead(IRpin)) { // this is too slow! - while (IRpin_PIN & (1 << IRpin)) { - // pin is still HIGH - - // count off another few microseconds - highpulse++; - delayMicroseconds(RESOLUTION); - - // If the pulse is too long, we 'timed out' - either nothing - // was received or the code is finished, so print what - // we've grabbed so far, and then reset - - // KGO: Added check for end of receive buffer - if (((highpulse >= MAXPULSE) && (currentpulse != 0))|| currentpulse == NUMPULSES) { - return currentpulse; - } - } - // we didn't time out so lets stash the reading - pulses[currentpulse][0] = highpulse; - - // same as above - while (! (IRpin_PIN & _BV(IRpin))) { - // pin is still LOW - lowpulse++; - delayMicroseconds(RESOLUTION); - // KGO: Added check for end of receive buffer - if (((lowpulse >= MAXPULSE) && (currentpulse != 0))|| currentpulse == NUMPULSES) { - return currentpulse; - } - } - pulses[currentpulse][1] = lowpulse; - - // we read one high-low pulse successfully, continue! - currentpulse++; - } -} -void printpulses(void) { - Serial.println("\n\r\n\rReceived: \n\rOFF \tON"); - for (uint8_t i = 0; i < currentpulse; i++) { - Serial.print(pulses[i][0] * RESOLUTION, DEC); - Serial.print(" usec, "); - Serial.print(pulses[i][1] * RESOLUTION, DEC); - Serial.println(" usec"); - } - - // print it in a 'array' format - Serial.println("int IRsignal[] = {"); - Serial.println("// ON, OFF (in 10's of microseconds)"); - for (uint8_t i = 0; i < currentpulse-1; i++) { - Serial.print("\t"); // tab - Serial.print(pulses[i][1] * RESOLUTION / 10, DEC); - Serial.print(", "); - Serial.print(pulses[i+1][0] * RESOLUTION / 10, DEC); - Serial.println(","); - } - Serial.print("\t"); // tab - Serial.print(pulses[currentpulse-1][1] * RESOLUTION / 10, DEC); - Serial.print(", 0};"); -} - +// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + +/* Raw IR commander + + This sketch/program uses the Arduno and a PNA4602 to + decode IR received. It then attempts to match it to a previously + recorded IR signal. Limor Fried, Adafruit Industries + + MIT License, please attribute + check out learn.adafruit.com for more tutorials! + */ + +// We need to use the 'raw' pin reading methods +// because timing is very important here and the digitalRead() +// procedure is slower! +//uint8_t IRpin = 2; +// Digital pin #2 is the same as Pin D2 see +// http://arduino.cc/en/Hacking/PinMapping168 for the 'raw' pin mapping +#define IRpin_PIN PIND +#define IRpin 2 + +// the maximum pulse we'll listen for - 65 milliseconds is a long time +#define MAXPULSE 65000 +#define NUMPULSES 50 + +// what our timing resolution should be, larger is better +// as its more 'precise' - but too large and you wont get +// accurate timing +#define RESOLUTION 20 + +// What percent we will allow in variation to match the same code +#define FUZZINESS 20 + +// we will store up to 100 pulse pairs (this is -a lot-) +uint16_t pulses[NUMPULSES][2]; // pair is high and low pulse +uint8_t currentpulse = 0; // index for pulses we're storing + +#include "ircommander.h" + +void setup(void) { + Serial.begin(9600); + Serial.println("Ready to decode IR!"); +} + +void loop(void) { + int numberpulses; + + numberpulses = listenForIR(); + + Serial.print("Heard "); + Serial.print(numberpulses); + Serial.println("-pulse long IR signal"); + if (IRcompare(numberpulses, ApplePlaySignal,sizeof(ApplePlaySignal)/4)) { + Serial.println("PLAY"); + } + if (IRcompare(numberpulses, AppleRewindSignal,sizeof(AppleRewindSignal)/4)) { + Serial.println("REWIND"); + } + if (IRcompare(numberpulses, AppleForwardSignal,sizeof(AppleForwardSignal)/4)) { + Serial.println("FORWARD"); + } + delay(500); +} + +//KGO: added size of compare sample. Only compare the minimum of the two +boolean IRcompare(int numpulses, int Signal[], int refsize) { + int count = min(numpulses,refsize); + Serial.print("count set to: "); + Serial.println(count); + for (int i=0; i< count-1; i++) { + int oncode = pulses[i][1] * RESOLUTION / 10; + int offcode = pulses[i+1][0] * RESOLUTION / 10; + +#ifdef DEBUG + Serial.print(oncode); // the ON signal we heard + Serial.print(" - "); + Serial.print(Signal[i*2 + 0]); // the ON signal we want +#endif + + // check to make sure the error is less than FUZZINESS percent + if ( abs(oncode - Signal[i*2 + 0]) <= (Signal[i*2 + 0] * FUZZINESS / 100)) { +#ifdef DEBUG + Serial.print(" (ok)"); +#endif + } else { +#ifdef DEBUG + Serial.print(" (x)"); +#endif + // we didn't match perfectly, return a false match + return false; + } + + +#ifdef DEBUG + Serial.print(" \t"); // tab + Serial.print(offcode); // the OFF signal we heard + Serial.print(" - "); + Serial.print(Signal[i*2 + 1]); // the OFF signal we want +#endif + + if ( abs(offcode - Signal[i*2 + 1]) <= (Signal[i*2 + 1] * FUZZINESS / 100)) { +#ifdef DEBUG + Serial.print(" (ok)"); +#endif + } else { +#ifdef DEBUG + Serial.print(" (x)"); +#endif + // we didn't match perfectly, return a false match + return false; + } + +#ifdef DEBUG + Serial.println(); +#endif + } + // Everything matched! + return true; +} + +int listenForIR(void) { + currentpulse = 0; + + while (1) { + uint16_t highpulse, lowpulse; // temporary storage timing + highpulse = lowpulse = 0; // start out with no pulse length + +// while (digitalRead(IRpin)) { // this is too slow! + while (IRpin_PIN & (1 << IRpin)) { + // pin is still HIGH + + // count off another few microseconds + highpulse++; + delayMicroseconds(RESOLUTION); + + // If the pulse is too long, we 'timed out' - either nothing + // was received or the code is finished, so print what + // we've grabbed so far, and then reset + + // KGO: Added check for end of receive buffer + if (((highpulse >= MAXPULSE) && (currentpulse != 0))|| currentpulse == NUMPULSES) { + return currentpulse; + } + } + // we didn't time out so lets stash the reading + pulses[currentpulse][0] = highpulse; + + // same as above + while (! (IRpin_PIN & _BV(IRpin))) { + // pin is still LOW + lowpulse++; + delayMicroseconds(RESOLUTION); + // KGO: Added check for end of receive buffer + if (((lowpulse >= MAXPULSE) && (currentpulse != 0))|| currentpulse == NUMPULSES) { + return currentpulse; + } + } + pulses[currentpulse][1] = lowpulse; + + // we read one high-low pulse successfully, continue! + currentpulse++; + } +} +void printpulses(void) { + Serial.println("\n\r\n\rReceived: \n\rOFF \tON"); + for (uint8_t i = 0; i < currentpulse; i++) { + Serial.print(pulses[i][0] * RESOLUTION, DEC); + Serial.print(" usec, "); + Serial.print(pulses[i][1] * RESOLUTION, DEC); + Serial.println(" usec"); + } + + // print it in a 'array' format + Serial.println("int IRsignal[] = {"); + Serial.println("// ON, OFF (in 10's of microseconds)"); + for (uint8_t i = 0; i < currentpulse-1; i++) { + Serial.print("\t"); // tab + Serial.print(pulses[i][1] * RESOLUTION / 10, DEC); + Serial.print(", "); + Serial.print(pulses[i+1][0] * RESOLUTION / 10, DEC); + Serial.println(","); + } + Serial.print("\t"); // tab + Serial.print(pulses[currentpulse-1][1] * RESOLUTION / 10, DEC); + Serial.print(", 0};"); +} + diff --git a/IR_Sensor/Arduino/IR_Commander/ircommander.h b/IR_Sensor/Arduino/IR_Commander/ircommander.h index 226032560..753fa98f0 100644 --- a/IR_Sensor/Arduino/IR_Commander/ircommander.h +++ b/IR_Sensor/Arduino/IR_Commander/ircommander.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + /******************* our codes ************/ int ApplePlaySignal[] = { diff --git a/IR_Sensor/Arduino/Intervalometer/Intervalometer.ino b/IR_Sensor/Arduino/Intervalometer/Intervalometer.ino index 78f7bb068..4354bb4f6 100644 --- a/IR_Sensor/Arduino/Intervalometer/Intervalometer.ino +++ b/IR_Sensor/Arduino/Intervalometer/Intervalometer.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + // This sketch will send out a Nikon D50 trigger signal (probably works with most Nikons) // See the full tutorial at https://learn.adafruit.com/ir-sensor/making-an-intervalometer // MIT License, attribution appreciated Limor Fried, Adafruit Industries diff --git a/IR_Sensor/Arduino/Raw_IR/Raw_IR.ino b/IR_Sensor/Arduino/Raw_IR/Raw_IR.ino index e04f7492e..5b0221f54 100644 --- a/IR_Sensor/Arduino/Raw_IR/Raw_IR.ino +++ b/IR_Sensor/Arduino/Raw_IR/Raw_IR.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + /* Raw IR decoder sketch! This sketch/program uses the Arduno and a PNA4602 to @@ -6,8 +10,7 @@ or transmitter (by pulsing an IR LED at ~38KHz for the durations detected - Code is public domain, check out www.ladyada.net and adafruit.com - for more tutorials! + Check out www.ladyada.net and adafruit.com for more tutorials! */ // We need to use the 'raw' pin reading methods diff --git a/IR_Sensor/CircuitPython/code.py b/IR_Sensor/CircuitPython/code.py index 43f590670..12de94036 100644 --- a/IR_Sensor/CircuitPython/code.py +++ b/IR_Sensor/CircuitPython/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +# +# SPDX-License-Identifier: MIT + import board import pulseio import adafruit_irremote diff --git a/MacroPad_Scramble_Lock/code.py b/MacroPad_Scramble_Lock/code.py index 1bd78cb1f..d1c628f70 100644 --- a/MacroPad_Scramble_Lock/code.py +++ b/MacroPad_Scramble_Lock/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Anne Barela for Adafruit Industries +# +# SPDX-License-Identifier: MIT + """ Scramblepad - a random scramble keypad simulation for Adafruit MACROPAD. """ diff --git a/MagTag_Showtimes/code.py b/MagTag_Showtimes/code.py index 8020af206..4f8acce4f 100644 --- a/MagTag_Showtimes/code.py +++ b/MagTag_Showtimes/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 John Park for Adafruit Industries +# +# SPDX-License-Identifier: MIT + # MagTag Showtimes Event Viewer # Uses the events.json file to display next or current event # Be sure to put WiFi access point info in secrets.py file to connect diff --git a/NeoKey_Trinkey/CircuitPython_Touch_Example/code.py b/NeoKey_Trinkey/CircuitPython_Touch_Example/code.py index 501f5403e..fa1b299c5 100644 --- a/NeoKey_Trinkey/CircuitPython_Touch_Example/code.py +++ b/NeoKey_Trinkey/CircuitPython_Touch_Example/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries +# +# SPDX-License-Identifier: MIT + """NeoKey Trinkey Capacitive Touch Example""" import time import board diff --git a/NeoPixel_Punk_Collar/NeoPixel_Punk_Collar.ino b/NeoPixel_Punk_Collar/NeoPixel_Punk_Collar.ino index 4a2f1a047..8e484e2fa 100644 --- a/NeoPixel_Punk_Collar/NeoPixel_Punk_Collar.ino +++ b/NeoPixel_Punk_Collar/NeoPixel_Punk_Collar.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2017 Mikey Sklar for Adafruit Industries +// +// SPDX-License-Identifier: MIT + #include #define PIN 1 diff --git a/NeoPixel_Punk_Collar/code.py b/NeoPixel_Punk_Collar/code.py index 96d1ca46d..480a7e005 100644 --- a/NeoPixel_Punk_Collar/code.py +++ b/NeoPixel_Punk_Collar/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017 Limor Fried for Adafruit Industries +# +# SPDX-License-Identifier: MIT + import time from rainbowio import colorwheel import board diff --git a/OozeMaster3000/OozeMaster3000.ino b/OozeMaster3000/OozeMaster3000.ino index 76b71e7f8..491ce1d1c 100644 --- a/OozeMaster3000/OozeMaster3000.ino +++ b/OozeMaster3000/OozeMaster3000.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 Phillip Burgess for Adafruit Industries +// +// SPDX-License-Identifier: MIT + // OOZE MASTER 3000: NeoPixel simulated liquid physics. Up to 7 NeoPixel // strands dribble light, while an 8th strand "catches the drips." // Designed for the Adafruit Feather M0 or M4 with matching version of diff --git a/SD_Basic_GPS_Logger/SD_GPSLogger/GPSconfig.h b/SD_Basic_GPS_Logger/SD_GPSLogger/GPSconfig.h index 434fd1f19..0fb19d9ca 100644 --- a/SD_Basic_GPS_Logger/SD_GPSLogger/GPSconfig.h +++ b/SD_Basic_GPS_Logger/SD_GPSLogger/GPSconfig.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries +// +// SPDX-License-Identifier: MIT + /* EXAMPLE $PSRF103,,,,*CKSUM 00=GGA,01=GLL,02=GSA,03=GSV,04=RMC,05=VTG diff --git a/SD_Basic_GPS_Logger/SD_GPSLogger/SD_GPSLogger.ino b/SD_Basic_GPS_Logger/SD_GPSLogger/SD_GPSLogger.ino index 57ce36de2..caf5e65e7 100644 --- a/SD_Basic_GPS_Logger/SD_GPSLogger/SD_GPSLogger.ino +++ b/SD_Basic_GPS_Logger/SD_GPSLogger/SD_GPSLogger.ino @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: Bill Greiman for Adafruit Industries +// +// SPDX-License-Identifier: MIT + // Ladyada's logger modified by Bill Greiman to use the SdFat library // this is a generic logger that does checksum testing so the data written should be always good diff --git a/Slideshows_Soundtrack/code.py b/Slideshows_Soundtrack/code.py index 80d10f2ec..ff8f78177 100644 --- a/Slideshows_Soundtrack/code.py +++ b/Slideshows_Soundtrack/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018 John Edgar Park for Adafruit Industries +# +# SPDX-License-Identifier: MIT + import board from adafruit_slideshow import SlideShow, PlayBackDirection import audioio diff --git a/Starry_Night/code.py b/Starry_Night/code.py index ef86e096f..b0ef05447 100644 --- a/Starry_Night/code.py +++ b/Starry_Night/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018 Anne Barela for Adafruit Industries +# +# SPDX-License-Identifier: MIT + import time from adafruit_crickit import crickit diff --git a/TFT_Gizmo_Dreidel/code.py b/TFT_Gizmo_Dreidel/code.py index 9b1fbc432..063193831 100644 --- a/TFT_Gizmo_Dreidel/code.py +++ b/TFT_Gizmo_Dreidel/code.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 Carter Nelson for Adafruit Industries +# +# SPDX-License-Identifier: MIT + import time import random import displayio