This file contains hidden or 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
| var mic, fft; | |
| function setup() { | |
| createCanvas(450,400); | |
| mic = new p5.AudioIn(); | |
| mic.start(); | |
| fft = new p5.FFT(); | |
| fft.setInput(mic); | |
| } |
This file contains hidden or 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 javax.swing.JFrame; | |
| import javax.swing.JPanel; | |
| import javax.swing.WindowConstants; | |
| import java.awt.Dimension; | |
| import java.awt.Color; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.Point; | |
| import java.awt.event.MouseListener; |
This file contains hidden or 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 javax.swing.JFrame; | |
| import javax.swing.JPanel; | |
| import javax.swing.WindowConstants; | |
| import java.awt.Dimension; | |
| import java.awt.Color; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.Point; | |
| import java.awt.event.MouseListener; |
This file contains hidden or 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
| String[] lines; | |
| String name = "player"; | |
| String[] kPlayers = {"michael jordan", "kawhi leonard","kevin durant","joel embiid","Kobe Byrant", "LeBron James", "Stephen Curry","Russell Westbrook","James Harden"}; | |
| void setup(){ | |
| size(700,400); |
This file contains hidden or 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 picamera | |
| import time | |
| #simple commands | |
| camera = picamera.PiCamera() | |
| camera.rotation = 180 | |
| camera.start_preview() | |
| time.sleep(2) | |
| camera.capture('example.jpg') |
This file contains hidden or 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 picamera | |
| import picamera.array | |
| import time | |
| baseImage = [] | |
| nextImage = [] | |
| def examineImage(): | |
| with picamera.PiCamera() as camera: | |
| camera.resolution = (64, 64) |
This file contains hidden or 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 java.awt.Color; | |
| import java.awt.Dimension; | |
| import java.awt.EventQueue; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import javax.swing.JFrame; | |
| import javax.swing.JPanel; | |
| import javax.swing.UIManager; |
This file contains hidden or 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_NeoPixel.h> | |
| #define PIN 6 | |
| #define N_LEDS 144 | |
| Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800); | |
| void setup() { | |
| strip.begin(); | |
| } |
This file contains hidden or 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
| /******************************************************************************* | |
| Bare Conductive Proximity MP3 player | |
| ------------------------------ | |
| proximity_mp3.ino - proximity triggered MP3 playback | |
| Based on code by Jim Lindblom and plenty of inspiration from the Freescale | |
| Semiconductor datasheets and application notes. |