Thanks everybody!
Monday, May 3, 2010
code
//auto-censor Misha Spivack 2010
int scrpin = 7;
int val;
int photocell = 0;
void setup(){
pinMode (photocell, INPUT);
pinMode (scrpin, OUTPUT);
Serial.begin(9600);
}
void loop(){
val = analogRead(0);
if (val > 400){
Serial.println ("yes");
digitalWrite (scrpin, HIGH);
}else {
Serial.println ("no");
digitalWrite (scrpin, LOW);
}
}
Thursday, April 29, 2010
Wednesday, April 21, 2010
Tuesday, April 20, 2010
Tuesday, March 30, 2010
Wednesday, March 17, 2010
MA Regional Robotics Competition
If you'd like to make up one of our missed classes, you may attend the MA Regional Robotics Competition and write a two-page summary. Thanks to Carly for bringing this to my attention! If you cannot attend this, there will be other opportunities to make up a class.
Subscribe to:
Posts (Atom)