Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Arduino Workshop - Project 2 Errata

DZone's Guide to

Arduino Workshop - Project 2 Errata

· IoT Zone
Free Resource

Cisco IoT makes digital transformation a reality in factories, transportation, and utilities. Learn how to start integrating with Cisco DevNet.

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.

Cisco is a software company. Surprised? Don’t be. Join DevNet to explore APIs, tools, and techniques that developers are using to add collaboration, IoT, security, network priority, and more!

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.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}