Over a million developers have joined DZone.

Arduino Workshop - Project 2 Errata

· IoT Zone

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.

Topics:

Published at DZone with permission of Rodrigo De Castro, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}