Wednesday, September 19, 2012

HYE, ERIN, KATIRIA: group assignment_soldering, potentiometer code






---------------------------------------
// Pontentiometer Arduino Code

int potPin = 0;

void setup()
{
  Serial.begin( 9600);
}

void loop ()
{
 int val = map ( analogRead(potPin), 0, 1023, 0, 255);
 Serial.println( val);
 delay(50);
}
 
--------------------------------------

No comments:

Post a Comment