@@ -128,7 +128,7 @@ rmt_data_t blink_1s_rmt_data[] = {
128
128
0 ,
129
129
},
130
130
// Looping mode needs a Zero ending data to mark the EOF
131
- { 0 , 0 , 0 , 0 }
131
+ {0 , 0 , 0 , 0 }
132
132
};
133
133
134
134
// RMT is at 400KHz with a 2.5us tick
@@ -185,7 +185,7 @@ rmt_data_t blink_500ms_rmt_data[] = {
185
185
0 ,
186
186
},
187
187
// Looping mode needs a Zero ending data to mark the EOF
188
- { 0 , 0 , 0 , 0 }
188
+ {0 , 0 , 0 , 0 }
189
189
};
190
190
191
191
// RMT is at 400KHz with a 2.5us tick
@@ -218,7 +218,7 @@ rmt_data_t blink_250ms_rmt_data[] = {
218
218
0 ,
219
219
},
220
220
// Looping mode needs a Zero ending data to mark the EOF
221
- { 0 , 0 , 0 , 0 }
221
+ {0 , 0 , 0 , 0 }
222
222
};
223
223
224
224
void RMT_Mixed_Write_Blink () {
@@ -269,7 +269,7 @@ void RMT_Loop_Write_Blink() {
269
269
delay (5000 );
270
270
271
271
Serial.println (" Blinking OFF for 2 seconds" );
272
- rmt_data_t blink_STOP_rmt_data[] = { { 0 , 0 , 0 , 0 } };
272
+ rmt_data_t blink_STOP_rmt_data[] = {{ 0 , 0 , 0 , 0 } };
273
273
if (!rmtWrite (BLINK_GPIO, blink_STOP_rmt_data, RMT_SYMBOLS_OF (blink_STOP_rmt_data), RMT_WAIT_FOR_EVER)) {
274
274
Serial.println (" ===> rmtWrite Blink STOP Error!" );
275
275
}
@@ -283,19 +283,19 @@ void RMT_Repeated_Write_Blink() {
283
283
if (!rmtWriteRepeated (BLINK_GPIO, blink_1s_rmt_data, RMT_SYMBOLS_OF (blink_1s_rmt_data), 2 )) {
284
284
Serial.println (" ===> rmtWrite Blink 1s Error!" );
285
285
}
286
- delay (4000 + 1000 ); // it should blink 2 times and stop automatically
286
+ delay (4000 + 1000 ); // it should blink 2 times and stop automatically
287
287
Serial.println (" Blinking at 500ms on + 500ms off :: 4 blinks" );
288
288
// repeating blink_500ms_rmt_data (500ms on + 500ms off) 4 times for 4 blinks
289
289
if (!rmtWriteRepeated (BLINK_GPIO, blink_500ms_rmt_data, RMT_SYMBOLS_OF (blink_500ms_rmt_data), 4 )) {
290
290
Serial.println (" ===> rmtWrite Blink 0.5s Error!" );
291
291
}
292
- delay (4000 + 1000 ); // it should blink 4 times and stop automatically
292
+ delay (4000 + 1000 ); // it should blink 4 times and stop automatically
293
293
Serial.println (" Blinking at 250ms on + 250ms off :: 8 blinks" );
294
294
// repeating blink_250ms_rmt_data (250ms on + 250ms off) 8 times for 8 blinks
295
295
if (!rmtWriteRepeated (BLINK_GPIO, blink_250ms_rmt_data, RMT_SYMBOLS_OF (blink_250ms_rmt_data), 8 )) {
296
296
Serial.println (" ===> rmtWrite Blink 0.25s Error!" );
297
297
}
298
- delay (4000 + 1000 ); // it should blink 8 times and stop automatically
298
+ delay (4000 + 1000 ); // it should blink 8 times and stop automatically
299
299
Serial.println (" Blinking is OFF for 2 seconds" );
300
300
delay (2000 );
301
301
}
0 commit comments