Over a million developers have joined DZone.
Platinum Partner

Arduino Workshop - Project 2 Errata

· IoT Zone

The IoT Zone is brought to you in partnership with ThingWorx. Explore the ThingWorx Developer Zone and learn how to rapidly develop IoT applications.

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.

The IoT Zone is brought to you in partnership with ThingWorx. ThingWorx is the most complete application development platform available that is purpose-built for the IoT.

Topics:

Published at DZone with permission of Rodrigo De Castro , DZone MVB .

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}