// constants won't change. Used here to // set pin numbers: const int noseoutPin = 1; // the number of the pin to move the ears up const int noseinPin = 2; // the number of the pin to move the ears dwon const int armsupPin = 3; // the number of the pin to move the trunk up const int armsdownPin = 4; // the number of the pinto move the trunk down const int noseouttime = 30000; const int noseintime = 30000; const int armsuptime = 2500; const int armsdowntime = 1900; // Variables will change: int noseState = LOW; // ledState used to set the LED int armsState = LOW; // ledState used to set the LED /* long noseMillis = 0; // will store last time LED was updated long armsMillis = 0; // will store last time LED was updated // the follow variables is a long because the time, measured in miliseconds, // will quickly become a bigger number than can be stored in an int. long noseinterval = 5000; // interval at which to blink (milliseconds) long armsinterval = 1000; // interval at which to blink (milliseconds) */ void setup() { // set the digital pin as output: pinMode(noseoutPin, OUTPUT); pinMode(noseinPin, OUTPUT); pinMode(armsupPin, OUTPUT); pinMode(armsdownPin, OUTPUT); digitalWrite(noseoutPin, HIGH); digitalWrite(armsupPin, HIGH); digitalWrite(noseinPin, HIGH); digitalWrite(armsdownPin, HIGH); } void loop() { //************************* nose out *********************** digitalWrite(noseoutPin, LOW); delay (noseouttime); digitalWrite(noseoutPin, HIGH); //************************* arms up *********************** digitalWrite(armsupPin, LOW); delay (armsuptime); digitalWrite(armsupPin, HIGH); //************************* nose in *********************** digitalWrite(noseinPin, LOW); delay (noseintime); digitalWrite(noseinPin, HIGH); //************************* arms down *********************** digitalWrite(armsdownPin, LOW); delay (armsdowntime); digitalWrite(armsdownPin, HIGH); }//void loop()