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
<?xml version=”1.0”?> | |
<root> | |
<item> | |
<name>F19 to F19</name> | |
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, send F19)</appendix> | |
<identifier>private.f192f19_escape</identifier> | |
<autogen> | |
--KeyOverlaidModifier-- | |
KeyCode::F19, | |
KeyCode::COMMAND_L, |
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
// Robot 1: Draw from "Getting Started with Processing" | |
// by Reas & Fry. O'Reilly / Make 2010 | |
size(720, 480); | |
smooth(); | |
strokeWeight(2); | |
background(204); | |
ellipseMode(RADIUS); | |
// Neck |
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
//Variables go first | |
int fred = 0; | |
int fredDir= 0; //0 means fred is going up. 1 for down | |
//setup runs once | |
void setup() { | |
} | |
//draw happens over and over | |
void draw() { |
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
//Variables go first | |
int arloX = 200; | |
int arloY = 350; | |
int fredDir = 0; | |
int look = 0; // extra credit | |
//setup runs once | |
void setup() { | |
size(400, 400); | |
} |
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
/* | |
* EMERGING OBJECTS | |
* CLASS 4 / PART 3 | |
* | |
* +-----+ | |
* | +-+ | | |
* TOUCH | | | | | |
* SENSOR| +---+ | |
* +-----+ | |
* ARDUINO | |
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
/* | |
* EMERGING OBJECTS | |
* CLASS 4 / PART 2 | |
* +-----+ | |
* | +-+ | | |
* TOUCH | | | | | |
* SENSOR| +---+ | |
* +-----+ | |
* ARDUINO | | |
* +-----------+ | |
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
/* | |
* EMERGING OBJECTS | |
* CLASS 4 / PART 1 | |
* +-----+ | |
* | +-+ | | |
* TOUCH | | | | | |
* SENSOR| +---+ | |
* +-----+ | |
* ARDUINO | | |
* +-----------+ | |
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
//CapSense Test Code | |
#include <CapacitiveSensor.h> | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10 megohm resistor between pins 4 & 2, pin 2 is sensor pin, add wire, foil | |
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 <CapacitiveSensor.h> | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); | |
int led = 13; | |
int led2 = 11; | |
byte fade; | |
long timer; | |
long previousTimer; | |
int ledState = LOW; | |
int sensorPin = A0; | |
int sensorValue = 0; |
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
// Setup the touch sensor. | |
#include <CapacitiveSensor.h> | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); | |
// Setup the light sensor | |
int sensorPin = A0; | |
int sensorValue = 0; | |
boolean dark = false; | |
// Set up the LEDs |
OlderNewer