参考
結果
プログラム
//Grove_Relay_1S_UNO_1
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin as an output.
pinMode(14, OUTPUT); //14 = A0
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(14, HIGH); // turn the on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(14, LOW); // turn the off by making the voltage LOW
delay(1000); // wait for a second
}