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
/* | |
Blinky | |
Make an LED blink | |
Adapted by Luke Garwood after example 4-1 from Getting Started With Arduino by Massimo Banzi and Michael Shiloh | |
*/ | |
int LEDPIN = 13; //set up variable LEDPIN as the pin to which the LED connects (13) | |
void setup() { //function that only runs once initially |
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
/* | |
Brighness Changer Part 3 | |
Get serial input from a light sensor | |
Adapted by Luke Garwood after example 5-5 from Getting Started With Arduino by Massimo Banzi and Michael Shiloh | |
*/ | |
const int SENSOR = 1; // setting sensor pin to A1 | |
int LightSensorValue; // variable to store the value of light sensor |
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
/* | |
Brighness Changer Part 2 | |
Change Brightness of an LED with photoresistor | |
Adapted by Luke Garwood after example 5-4 from Getting Started With Arduino by Massimo Banzi and Michael Shiloh | |
*/ | |
int LEDPIN = 9; //Setting up pin 9 to control the LED | |
int LightSensorValue = 0; //Setting up variable to hold values coming from light sensor |
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
/* | |
Brighness Changer | |
Change Brightness of an LED | |
Adapted by Luke Garwood after example 5-2 from Getting Started With Arduino by Massimo Banzi and Michael Shiloh | |
*/ | |
int LEDPIN = 9; //set up variable LEDPIN as the pin to which the LED connects | |
int BUTTONPIN = 7; //set up variable BUTTONPIN as the pin to which the button connects |
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
/* | |
* BMO | |
* | |
* A BMO inspired robot asks for hugs! Through the use of a ping sensor, our robot raises arms (connected to servos), and flashes its LED eyes | |
* in accordance to the distance of the user. | |
* | |
* Created by Matt Crans and Luke Garwood with code adapted from | |
https://www.arduino.cc/en/Tutorial/Ping | |
https://www.arduino.cc/en/Tutorial/Sweep | |
https://learn.adafruit.com/adafruit-neopixel-uberguide/overview |
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've been pursuing an interest in applying differnt forces with Processing, so here is a first stab at applying | |
velocity to an angle. | |
Hold down any key and watch as the image spins faster and faster, let the key go and watch the image wind down to a stop. | |
Created by Luke Garwood | |
with some adaptated code from The Nature of Code by Daniel Shiffman | |
http://natureofcode.com/book/chapter-3-oscillation/2 | |
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
/* | |
Original sketch http://openprocessing.org/sketch/288694 | |
I've taken this sketch and changed it to add colour for | |
moving particles, changed particle behaviour to spark more, and moved their positions | |
to form a more 3 dimensional figure. | |
changed lines wrapped in "//--------changed" | |
*/ |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> |
OlderNewer