Friday, December 13, 2013

New code

// named constants for the switch and motor pins
int motorPin =  9; // the number of the motor pin

void setup() {
  // initialize the motor pin as an output:
  pinMode(motorPin, OUTPUT);  
}
void loop() {
// turn motor on:
digitalWrite(motorPin, HIGH);
//analogWrite(motorPin, 100);
}

No comments:

Post a Comment