-
Tags
Twitter
- Anyone else disappointed by horrible twitter/facebook integration for fb pages? Every facebook app I try is broken! #twitter #facebook #app 11:22:42 PM March 03, 2010 from Tweetie
- How to Not Be Annoying on Twitter http://bit.ly/bNjGC1 01:36:03 PM February 28, 2010 from web
- Design Museum Boston on Fast Company: http://bit.ly/awdFJa (via @designmuseumbos) 02:32:07 PM February 27, 2010 from Tweetie
- Out of the box http://s.boston.com/u/32s 04:53:18 PM February 25, 2010 from mobile web
- Watch Flavors.me on Vimeo! http://vimeo.com/7105366 03:24:26 AM February 25, 2010 from web
- #divvyshot handled my first 2+ gig upload with no problem! 01:32:54 AM February 21, 2010 from web
- Blackberry Messenger gets it right. iPhone is behind in this arena. #die #SMS 11:13:51 PM February 20, 2010 from Tweetie
- Tweetie for Mac is an immediate, pleasant experience. 10:02:38 AM February 20, 2010 from Tweetie
- I like the #flickr community, but not the interface. Video support is a plus. 10:01:27 AM February 20, 2010 from Tweetie
- Checking out http://divvyshots.com -- What online photo services do you use? There are so many now! What is the best? 09:59:09 AM February 20, 2010 from Tweetie
Physical Computing – Week 1
The purpose of our first assignment in physical computing was to become familiar with circuits, the arduino microcontroller and building circuits on a breadboard.
To begin I translated the circuit to the breadboard. Afterward I compiled and uploaded the program to the arduino microcontroller.
End result: When the switch is off, the red led is on. When the circuit is switched on, the red led turns off and the yellow led turns on.
Switch Off
Switch On
// declare variables:
int switchPin = 2; // digital input pin for a switch
int yellowLedPin = 3; // digital output pin for an LED
int redLedPin = 4; // digital output pin for an LED
int switchState = 0; // the state of the switch
void setup() {
pinMode(switchPin, INPUT); // set the switch pin to be an input
pinMode(yellowLedPin, OUTPUT); // set the yellow LED pin to be an output
pinMode(redLedPin, OUTPUT); // set the red LED pin to be an output
}
void loop() {
// read the switch input:
switchState = digitalRead(switchPin);
if (switchState == 1) {
// if the switch is closed:
digitalWrite(yellowLedPin, HIGH); // turn on the yellow LED
digitalWrite(redLedPin, LOW); // turn off the red LED
}
else {
// if the switch is open:
digitalWrite(yellowLedPin, LOW); // turn off the yellow LED
digitalWrite(redLedPin, HIGH); // turn on the red LED
}
}
PComp-Wk1-Video from Steve Aquillano on Vimeo.