forked from GadgetFactory/DesignLab_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDivider_Example.ino
More file actions
29 lines (22 loc) · 778 Bytes
/
Divider_Example.ino
File metadata and controls
29 lines (22 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Gadget Factory
LogicStart Shield Divider Example
To learn more about using DesignLab please visit http://learn.gadgetfactory.net
This is a quick example of generating a 1Hz clock from the AVR chip and then dividing it and outputting the clock on the LEDs
of the LogicStart Shield.
created 2014
by Jack Gassett
http://www.gadgetfactory.net
This example code is in the public domain.
*/
int led = 13;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second
}