Pages: [1]   Go Down
Author Topic: Typo in arduino-0015/reference/ShiftOut.html  (Read 365 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

An apparent typo that could be confusing in the second example on the page arduino-0015/reference/ShiftOut.html

 int data;
 int clock;
 int cs;

 digitalWrite(cs, LOW);
 data = 500;
 shiftOut(data, clock, MSBFIRST, data)
 digitalWrite(cs, HIGH);

The shiftOut statement should be ...

 shiftOut(dataPin, clock, MSBFIRST, data)

Logged

Norway@Oslo
Offline Offline
Edison Member
*
Karma: 12
Posts: 2033
loveArduino(true);
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I spy with my little eye: A missing[glow] ;[/glow] !  smiley-wink

[edit]I agree, the typo should be fixed.[/edit]
« Last Edit: May 12, 2009, 10:33:04 am by AlphaBeta » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hah!,  I never even noticed that the [glow] ; [/glow] was also missing. :-[
« Last Edit: May 12, 2009, 07:58:32 pm by Noratech » Logged

Pages: [1]   Go Up
Jump to: