Platinum Partner
architects,iot,theory,tips and tricks,tools & methods

Arduino Workshop - Project 2 Errata

This is an errata for Arduino Workshop, Project 2, Page 47 (PDF version).

Replace this code:

for ( int a = 5 ; a > 1 ; a-- )
 {
 digitalWrite(a, HIGH);
 delay(d);
 digitalWrite(a, LOW);
 delay(d);
}

with

for ( int a = 6 ; a > 1 ; a-- )
 {
 digitalWrite(a, HIGH);
 delay(d);
 digitalWrite(a, LOW);
 delay(d);
}

Note "int a = 6". Without this update, one of the LEDs will not blink.

Published at DZone with permission of {{ articles[0].authors[0].realName }}, DZone MVB. (source)

Opinions expressed by DZone contributors are their own.

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}