- Thu Nov 05, 2015 5:16 pm
#7845
I have looked at the board layout & schematic, but cannot figure out if it is possible to use Arduino D4 to control Relay 1. Will someone help me with a simple answer?
TIA, Joe
TIA, Joe
void setup() {
// initialize digital pin 13 as an output.
pinMode(3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(3, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
jbm417 wrote:Leff, thank you for the info. This is just what I needed.