2018-10-29 08:20:04 +01:00
|
|
|
//code to create a 1 Hz pulse signal
|
|
|
|
|
2018-10-28 20:10:19 +01:00
|
|
|
|
|
|
|
void setup() {
|
|
|
|
pinMode(13, OUTPUT);
|
2018-10-29 08:20:04 +01:00
|
|
|
pinMode(10, OUTPUT);
|
2018-10-28 20:10:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// the loop function runs over and over again forever
|
|
|
|
void loop() {
|
|
|
|
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
|
|
|
|
digitalWrite(10, HIGH); // turn the LED on (HIGH is the voltage level)
|
|
|
|
delay(100); // wait for a second
|
|
|
|
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
|
|
|
|
digitalWrite(10, LOW);
|
|
|
|
delay(900); // wait for a second
|
|
|
|
}
|