File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -113,15 +113,15 @@ int buttonState = 0;
113
113
int counter = 0;
114
114
115
115
void setup() {
116
- // initialize digital pin LED_BUILTIN as an output.
116
+ // Initialize OPTA LEDs
117
117
pinMode(LED_D0, OUTPUT);
118
118
pinMode(LED_D1, OUTPUT);
119
119
pinMode(LED_D2, OUTPUT);
120
120
pinMode(LED_D3, OUTPUT);
121
121
pinMode(BTN_USER, INPUT);
122
122
}
123
123
124
- // the loop function runs over and over again forever
124
+ // The loop function runs over and over again while the device is on
125
125
void loop() {
126
126
buttonState = digitalRead(BTN_USER);
127
127
if(buttonState == LOW){
@@ -159,7 +159,6 @@ void changeLights() {
159
159
}
160
160
delay(100);
161
161
}
162
- ```
163
162
164
163

165
164
You can’t perform that action at this time.
0 commit comments