Arduino Example Snippet
#define MOTOR_PIN 14
void setup() {
pinMode(MOTOR_PIN, OUTPUT);
}
void loop() {
// Set the motor pin to the new state
digitalWrite(MOTOR_PIN, HIGH);
delay(100);
digitalWrite(MOTOR_PIN, LOW);
delay(1000);
}
#define MOTOR_PIN 14
void setup() {
pinMode(MOTOR_PIN, OUTPUT);
}
void loop() {
// Set the motor pin to the new state
digitalWrite(MOTOR_PIN, HIGH);
delay(100);
digitalWrite(MOTOR_PIN, LOW);
delay(1000);
}