This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
import neopixel | |
import touchio | |
import audioio | |
from digitalio import DigitalInOut, Direction | |
import random | |
heat = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
cooldown = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircuitPlaygroundExpress_LightSensor | |
# reads the on-board light sensor and graphs the brighness with NeoPixels | |
import time | |
import board | |
import neopixel | |
from analogio import AnalogIn | |
from simpleio import map_range | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pulseio | |
from adafruit_motor import servo | |
import board | |
import digitalio | |
import adafruit_dotstar as dotstar | |
# One pixel connected internally! | |
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=0.5) | |
dot[0] = (0, 0, 0) | |
dot.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#include <Adafruit_CircuitPlayground.h> | |
#include <Adafruit_NeoPixel.h> | |
#define bright 25 | |
#define PIN 6 | |
#define PIN2 10 | |
#define PIN3 9 | |
#define PIN4 12 | |
#define NUM_LEDS 29 |
OlderNewer