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
// https://kylemcdonald.github.io/cv-examples/ | |
// hello mel | |
////////// | |
//Creating animations | |
var serial; | |
var portName = '/dev/tty.wchusbserial1420'; | |
///////// | |
var capture; | |
var previousPixels; | |
var flow; |
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
int speakerPin = 10; | |
const int fsrPin = A0; | |
int fsrReading; | |
void setup(void) { | |
Serial.begin(9600); | |
pinMode(speakerPin, OUTPUT); | |
} | |
void loop(void) { | |
fsrReading = analogRead(fsrPin); | |
Serial.println(fsrReading); |
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 processing.serial.*; | |
Serial myPort; | |
PImage img0; | |
PImage img1; | |
PImage img2; | |
PImage img3; | |
PImage img4; | |
PImage img5; | |
float bb;void setup() | |
{ |
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 <LiquidCrystal.h> //the liquid crystal library contains commands for printing to the display | |
LiquidCrystal lcd(13, 12, 11, 10, 9, 8); // tell the RedBoard what pins are connected to the display | |
//set the pins where the buttons | |
const int BluePin = 2; | |
const int YellowPin = 3; | |
const int RedPin = 5; | |
const int GreenPin = 4; |