Skip to content

Instantly share code, notes, and snippets.

View heylimlim's full-sized avatar

Hyelim Lim heylimlim

View GitHub Profile
// https://kylemcdonald.github.io/cv-examples/
// hello mel
//////////
//Creating animations
var serial;
var portName = '/dev/tty.wchusbserial1420';
/////////
var capture;
var previousPixels;
var flow;
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);
import processing.serial.*;
Serial myPort;
PImage img0;
PImage img1;
PImage img2;
PImage img3;
PImage img4;
PImage img5;
float bb;void setup()
{
#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;