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

Download Red Hat’s blueprint for building an open IoT platform—open source from cloud to gateways to devices.

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.

Build an open IoT platform with Red Hat—keep it flexible with open source software.

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 }}