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
function setup() { | |
createCanvas(1024, 700); | |
background(0, 128, 255); | |
} | |
function draw() { | |
//gray fill | |
fill(144); | |
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
var you = "Can you count to 4 million?" | |
var syria = "Since 2011, 3.8 million Syrians have lost their homes. Nearly 200,000 have lost their lives." | |
var count = 1; | |
var countX = 0; | |
var countY = 0; | |
function setup() { | |
createCanvas(800,800) | |
background(255); | |
} |
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
var trump = { | |
x:0, | |
y:0, | |
w:100, | |
h:138, | |
speedx:8, | |
speedy:8, | |
}; |
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
//this is basic code for variable/analog resistor | |
int ledPin = 2; | |
int sensorPin = A0; | |
int sensorValue = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(ledPin, OUTPUT); |
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
var trump = { | |
x:0, | |
y:0, | |
w:100, | |
h:138, | |
speedx:0, | |
speedy:0, | |
}; | |
var jeb = { |
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
/* I started with: | |
Controlling a servo position using a potentiometer (variable resistor) | |
by Michal Rinott <http://people.interaction-ivrea.it/m.rinott> | |
modified on 8 Nov 2013 | |
by Scott Fitzgerald | |
http://www.arduino.cc/en/Tutorial/Knob | |
*/ | |
#include <Servo.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
{ | |
"answers" : [ | |
{"type": "positive", "value": "It is certain"}, | |
{"type": "positive", "value": "It is decidedly so"}, | |
{"type": "positive", "value": "Without a doubt"}, | |
{"type": "positive", "value": "Yes definitely"}, | |
{"type": "positive", "value": "You may rely on it"}, | |
{"type": "positive", "value": "As I see it, yes"}, | |
{"type": "positive", "value": "Most likely"}, | |
{"type": "positive", "value": "Outlook good"}, |
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
// punctuation serial communication | |
//int button1 = 0; | |
void setup() { | |
// configure the serial connection: | |
Serial.begin(9600); | |
while (Serial.available() <= 0) { | |
Serial.println("hello"); // send a starting message | |
} |
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
// punctuation serial communication | |
void setup() { | |
// configure the serial connection: | |
Serial.begin(9600); | |
while (Serial.available() <= 0) { | |
Serial.println("hello"); // send a starting message | |
delay(300); // wait 1/3 second | |
} |
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 filter libraries | |
#include <FilterDerivative.h> | |
#include <FilterOnePole.h> | |
#include <Filters.h> | |
#include <FilterTwoPole.h> | |
#include <FloatDefine.h> | |
#include <RunningStatistics.h> | |
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI |
OlderNewer