Skip to content

Instantly share code, notes, and snippets.

@caitlinsdad
caitlinsdad / EctoScarf.ino
Created January 10, 2018 03:54
Ghostbusters Ecto Scarf
// Note: Based on Meteor Rain example sketch found in Tweaking4All.com from Using Neopixels guide.
//
#include <Adafruit_NeoPixel.h>
#define NUM_LEDS 28
#define PIN 9
#define PIN1 10
#define PIN2 6
// Note: Based on Meteor Rain example sketch found in Tweaking4All.com from Using Neopixels guide.
//
#include <Adafruit_NeoPixel.h>
#define NUM_LEDS 28
#define PIN 9
#define PIN1 10
#define PIN2 6
@caitlinsdad
caitlinsdad / codeORBfinal.py
Created February 24, 2018 15:39
Blade Runner Memory Maker Controller
# started with code from Adafruit CircuitPlayground demo - Keyboard emu
# using servo and HID mouse emulation - Adafruit Circuit Python
from digitalio import DigitalInOut, Direction, Pull
import board
import time
import simpleio
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
from adafruit_hid.mouse import Mouse
#include <Wire.h>
#include <SPI.h>
#include <LiquidCrystal_I2C.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_CircuitPlayground.h>
#define BACKLIGHT_PIN (3)
#define LED_ADDR (0x27) // might need to be 0x3F, if 0x27 doesn't work
LiquidCrystal_I2C lcd(LED_ADDR, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE) ;
/*
LED VU meter for Circuit Playground
This is a port of the Adafruit Amplitie project to Circuit Playground.
Based on code for the adjustable sensitivity version of amplitie from:
https://learn.adafruit.com/led-ampli-tie/the-code
Hardware requirements:
- Circuit Playground
Software requirements:
@caitlinsdad
caitlinsdad / pridelights.py
Created June 21, 2018 03:57
Rainbow Pride Traffic Lights Circuit Playground Express
# CircuitPlaygroundExpress_NeoPixel
import time
import board
import neopixel
pixels = neopixel.NeoPixel(board.A1, 11, brightness=.3)
pixels.fill((0, 0, 0))
pixels.show()
@caitlinsdad
caitlinsdad / cpxWerewolfPack.py
Created July 16, 2018 12:45
CPX Werewolf Pack - animatronic tail and neopixel eyes
import time
import pulseio
import board
import neopixel
import random
import adafruit_motor.servo
import audioio
from digitalio import DigitalInOut, Direction, Pull
# enable the speaker
@caitlinsdad
caitlinsdad / florafastledflames.ino
Created August 11, 2018 21:34
Flora Fastled Multistrip Flames
#include <FastLED.h>
#define LED_PIN1 9
#define LED_PIN2 10
#define LED_PIN3 6
#define BUTTON 11
//#define COLOR_ORDER GRB
//#define CHIPSET NEOPIXEL
@caitlinsdad
caitlinsdad / CPThermometerScarf
Created September 23, 2018 02:44
Circuit Playground Classic Thermometer Scarf
#include <Adafruit_CircuitPlayground.h>
#include <FastLED.h>
/*
Board is older Adafruit Circuit Playground - Arduino code only
Wiring to header may there for some I2C device SCL-SDA-power previous project
code may contain reference to 2nd neopixel strand which was not used.
This was orginally adapted from some demo code so some functions not used.
Probably from here:
@caitlinsdad
caitlinsdad / CatSafetySign.py
Last active November 30, 2018 05:59
Cat Safety Sign CircuitPython
import time
import board
import neopixel
import touchio
import audioio
from digitalio import DigitalInOut, Direction
import simpleio
touch2 = touchio.TouchIn(board.A2)
touch3 = touchio.TouchIn(board.A3)