@@ -128,7 +128,7 @@ rmt_data_t blink_1s_rmt_data[] = {
128128 0 ,
129129 },
130130 // Looping mode needs a Zero ending data to mark the EOF
131- { 0 , 0 , 0 , 0 }
131+ {0 , 0 , 0 , 0 }
132132};
133133
134134// RMT is at 400KHz with a 2.5us tick
@@ -185,7 +185,7 @@ rmt_data_t blink_500ms_rmt_data[] = {
185185 0 ,
186186 },
187187 // Looping mode needs a Zero ending data to mark the EOF
188- { 0 , 0 , 0 , 0 }
188+ {0 , 0 , 0 , 0 }
189189};
190190
191191// RMT is at 400KHz with a 2.5us tick
@@ -218,7 +218,7 @@ rmt_data_t blink_250ms_rmt_data[] = {
218218 0 ,
219219 },
220220 // Looping mode needs a Zero ending data to mark the EOF
221- { 0 , 0 , 0 , 0 }
221+ {0 , 0 , 0 , 0 }
222222};
223223
224224void RMT_Mixed_Write_Blink () {
@@ -269,7 +269,7 @@ void RMT_Loop_Write_Blink() {
269269 delay (5000 );
270270
271271 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 } };
273273 if (!rmtWrite (BLINK_GPIO, blink_STOP_rmt_data, RMT_SYMBOLS_OF (blink_STOP_rmt_data), RMT_WAIT_FOR_EVER)) {
274274 Serial.println (" ===> rmtWrite Blink STOP Error!" );
275275 }
@@ -283,19 +283,19 @@ void RMT_Repeated_Write_Blink() {
283283 if (!rmtWriteRepeated (BLINK_GPIO, blink_1s_rmt_data, RMT_SYMBOLS_OF (blink_1s_rmt_data), 2 )) {
284284 Serial.println (" ===> rmtWrite Blink 1s Error!" );
285285 }
286- delay (4000 + 1000 ); // it should blink 2 times and stop automatically
286+ delay (4000 + 1000 ); // it should blink 2 times and stop automatically
287287 Serial.println (" Blinking at 500ms on + 500ms off :: 4 blinks" );
288288 // repeating blink_500ms_rmt_data (500ms on + 500ms off) 4 times for 4 blinks
289289 if (!rmtWriteRepeated (BLINK_GPIO, blink_500ms_rmt_data, RMT_SYMBOLS_OF (blink_500ms_rmt_data), 4 )) {
290290 Serial.println (" ===> rmtWrite Blink 0.5s Error!" );
291291 }
292- delay (4000 + 1000 ); // it should blink 4 times and stop automatically
292+ delay (4000 + 1000 ); // it should blink 4 times and stop automatically
293293 Serial.println (" Blinking at 250ms on + 250ms off :: 8 blinks" );
294294 // repeating blink_250ms_rmt_data (250ms on + 250ms off) 8 times for 8 blinks
295295 if (!rmtWriteRepeated (BLINK_GPIO, blink_250ms_rmt_data, RMT_SYMBOLS_OF (blink_250ms_rmt_data), 8 )) {
296296 Serial.println (" ===> rmtWrite Blink 0.25s Error!" );
297297 }
298- delay (4000 + 1000 ); // it should blink 8 times and stop automatically
298+ delay (4000 + 1000 ); // it should blink 8 times and stop automatically
299299 Serial.println (" Blinking is OFF for 2 seconds" );
300300 delay (2000 );
301301}
0 commit comments