PR -5 Did 13 more projects

This commit is contained in:
dherrada 2021-10-18 13:10:44 -04:00
parent f4bfab5d89
commit d487d40b67
47 changed files with 193 additions and 0 deletions

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import board
import displayio
import adafruit_imageload

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import board
import displayio
import adafruit_imageload

View file

@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2019 Carter Nelson for Adafruit Industries
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import board
import displayio
import adafruit_imageload

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import random
import gc

View file

@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2018 Limor Fried/ladyada for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Brennen Bearnes for Adafruit Industries
#
# SPDX-License-Identifier: MIT

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# pylint: disable=line-too-long
# Fun facts to be read to the player by Minerva
FACTS = [

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# State machine constants
# playing the game: draw the map, listen for D-pad buttons to move player

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
def wrap_nicely(string, max_chars):
""" From: https://www.richa1.com/RichardAlbritton/circuitpython-word-wrap-for-label-text/
A helper that will return the string with word-break wrapping.

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
#
# SPDX-License-Identifier: MIT
from tilegame_assets.states import (
STATE_MAPWIN,
STATE_LOST_SPARKY,

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
In this Demo we will drive two servos based on the Tilt along the Y and Z axis
of the BNO055 9-Degrees of Freedom IMU Sensor. This could easily be extended

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*
PICCOLO is a tiny Arduino-based audio visualizer.
Hardware requirements:

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
#ifndef FFT_N
#define FFT_N 128 /* Number of samples (64,128,256,512). */
#endif /* FFT_N */

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Track Your Treats - Ultimate GPS Shield Halloween Candy Route Tracker
// Author: Tony DiCola
//

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Track Your Treats - FONA808 Shield & Adafruit IO Halloween Candy Route Tracker
// Author: Tony DiCola
//

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Anne Barela for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# Code for the Trash Panda tutorial with Adafruit Crickit and Circuit Playground Express
import time
import board

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
FlappyBird type game for the NeoTrellisM4

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
FlappyBird type game for the NeoTrellisM4

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
RGB Color Names

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
FlappyBird type game for the NeoTrellisM4

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
FlappyBird type game for the NeoTrellisM4

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 John Park for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# Simple example of sending MIDI via UART to classic DIN-5 (not USB) synth
import adafruit_trellism4

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 John Park for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/* Audio library demonstration - pocket synth with C major scale and 4 wave types */
//each row is a different waveform, envelope, and effect set in major scale
// row 0 sine, soft attack, long release ADSR

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 John Park for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*
Audio Library on Trellis M4
Demo of the audio sweep function.

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 John Park for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Trellis M4 Audio Workshop
// shows how to alter pitch with accelerometer
// Waveform Mod

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*
Name: Blinking Eyes - based on code by Brad Blumenthal, MAKE Magazine
License: GPLv3

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Blinking Eyes - based on code by Brad Blumenthal, MAKE Magazine
License: GPLv3

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/* Trinket/Gemma compatible Raw IR decoder sketch
This sketch/program uses an Adafruit Trinket or Gemma
ATTiny85 based mini microcontroller and a PNA4602 to

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import adafruit_irremote

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/* Trinket/Gemma compatible IR read sketch
This sketch/program uses an Adafruit Trinket or Gemma
ATTiny85 based mini microcontroller and a PNA4602 or TSOP38238 to

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
IR codes for button 0, 1, 2, 3 these were acquired from the
Adafruit Mini Remote Control #389

View file

@ -1,3 +1,8 @@
// SPDX-FileCopyrightText: 2017 Limor Fried/ladyada for Adafruit Industries
// SPDX-FileCopyrightText: 2017 Phillip Burgess for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/* Adafruit Trinket/Gemma Example: Simple Theramin
Read the voltage from a Cadmium Sulfide (CdS) photocell voltage

View file

@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2017 Limor Fried/ladyada for Adafruit Industries
# SPDX-FileCopyrightText: 2017 Phillip Burgess for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Adafruit Trinket/Gemma Example: Simple Theramin
Read the voltage from a Cadmium Sulfide (CdS) photocell voltage

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*******************************************************************
SoftServo sketch for Adafruit Trinket. Turn the potentiometer knob
to set the corresponding position on the servo

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# Trinket Gemma Servo Control
# for Adafruit M0 boards

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Trinket/Gemma + LED matrix backpack jewelry. Plays animated
// sequence on LED matrix. Press reset button to display again,
// or add optional momentary button between pin #1 and +V.

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Animation data for Trinket/Gemma + LED matrix backpack jewelry.
// Edit this file to change the animation; it's unlikely you'll need
// to edit the source code.

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import adafruit_ht16k33.matrix

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*******************************************************************
Adafruit Animal - control code for toy animal animation

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import analogio
import board

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
//--------------------------------------------------------------------------
// Animated flame for Adafruit Pro Trinket. Uses the following parts:
// - Pro Trinket microcontroller (adafruit.com/product/2010 or 2000)

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Data derived from Free Stock Video by user 'dietolog' on Videezy.com
const uint8_t PROGMEM anim[] = {

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/* -----------------------------------------------------------------------
Super Mario Bros-inspired coin sound for Adafruit Trinket & Gemma.

View file

@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2017 Limor Fried/ladyada for Adafruit Industries
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import board
import simpleio

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Adafruit Trinket React Counter Sketch - 14-segment quad alpha display
//
// Use a 14-segment quad alphanumeric LED backpack to display the

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// Adafruit Trinket React Counter Sketch - 7-segment display
//
// Use a 7-segment LED backpack to display the number of times a

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
//
// SPDX-License-Identifier: MIT
/*
Demonstration sketch for Adafruit LCD backpack
using MCP23008 I2C expander and Maxbotic LV-EZ1 Ultrasonic Sensor

View file

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Mikey Sklar for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
This Code uses the:
* Adafruit LCD backpack using MCP23008 I2C expander