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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
// give it a name: | |
int led = 13; |
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
/** | |
* | |
* Getting Started with Capture. | |
* | |
* Reading and displaying an image from an attached Capture device. | |
* | |
* Edit 10-1-13 by nataliefreed: uses external camera (PS3 Eye) | |
* | |
*/ | |
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
/* | |
Natalie Freed, 10-3-2013 | |
Example of multiple counters increasing at different rates, for LWHS Building and Programming Intelligent Machines Fall 2013. | |
To use, open Serial Monitor to view 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
/* | |
Natalie Freed, 10-3-2013 | |
Example of using a single counter and the modulo operator (%) to time multiple events. | |
For LWHS Building and Programming Intelligent Machines Fall 2013. | |
To use, open Serial Monitor to view 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
/* | |
Natalie Freed, 10-3-2013 | |
Example of using millis() function to time multiple events happening at different rates. | |
For LWHS Building and Programming Intelligent Machines Fall 2013. | |
To use, open Serial Monitor to view 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
/* | |
// | |
// Code for MMA7361 accelerometer (Sparkfun breakout https://www.sparkfun.com/products/9652) | |
// Natalie Freed | |
// 12-5-2013 | |
// | |
// Implementation of the math from this excellent guide: http://www.starlino.com/imu_guide.html | |
// | |
// | |
*/ |
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
// Turtle Graphics in Processing | |
// Natalie Freed, February 2013 | |
// This program shows another way to think about moving | |
// through Processing's coordinate system. Instead of placing | |
// points on a grid, you can imagine yourself as being somewhere | |
// on the grid, facing a direction. You can move forward or turn. | |
// The drawn line follows behind you. | |
PVector loc; //current location | |
float orientation; //current orientation |
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 rows = 10; | |
int columns = 12; | |
int[] circles = new int[rows*columns]; | |
int index; | |
int spacing = 50; | |
int circleSize = 6; | |
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
/* | |
Robotic arm speed control demo | |
Natalie Freed, Jan 2014 | |
*/ | |
#include <Servo.h> | |
Servo base, shoulder, elbow, wrist, gripper; |
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
/* | |
Draggable objects and handler example for Processing 2.0 | |
Natalie Freed, March 2014 | |
*/ | |
DraggableHandler circles; | |
void setup() | |
{ | |
size(500, 500); |
OlderNewer