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
/* | |
MKR1000 + PIXIE 3w leds | |
without sofrwareSerial | |
UNO -> 1(TX) | |
MKR1000 -> 14(TX) | |
*/ | |
//#include "SoftwareSerial.h" | |
#include "Adafruit_Pixie.h" |
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
char ssid[] = ""; // your network SSID (name) | |
char pass[] = ""; |
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
/* | |
Bokeh light Node Server | |
Original Code : https://github.com/arduino-libraries/ArduinoHttpClient/blob/master/examples/node_test_server/getPostPutDelete.js | |
by Hayeon Hwang | |
*/ | |
var express = require('express'); // include express.js | |
var app = express(); // a local instance of it | |
var bodyParser = require('body-parser'); // include body-parser | |
var WebSocketServer = require('ws').Server // include Web Socket server |
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
char ssid[] = "ssid"; // your network SSID (name) | |
char pass[] = "password"; // your network password |
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 <CapacitiveSensor.h> | |
/* | |
CapitiveSense Library Demo Sketch | |
Paul Badger 2008 | |
Uses a high value resistor e.g. 10M between send pin and receive pin | |
Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values. | |
Receive pin is the sensor pin - try different amounts of foil/metal on this pin | |
*/ |
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 "Interval.h" | |
#include <Adafruit_NeoPixel.h> | |
const int knockSensor = A0; | |
int val = 0; | |
#define PIN 6 | |
const int numPixels = 7; |
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 "Interval.h" | |
/* | |
A Brush Candle - Hayley Hwang | |
for Lighting & Interactivity Class | |
- NeoPixel RGBW x 1 | |
- Piezo Sensor x 1 | |
- 1mOhm x 1 | |
*/ | |
#include <Adafruit_NeoPixel.h> |
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 led = 9; | |
int btn = 2; | |
int buttonState = 0; | |
int lastButtonState = 0; | |
void setup() { | |
pinMode(led, OUTPUT); | |
pinMode(btn, INPUT); | |
Serial.begin(9600); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.sound.min.js"></script> | |
<script src="moment.js"></script> | |
<link rel="stylesheet" type="text/css" href="style.css"> |