Go Down

Topic: Typo in arduino-0015/reference/ShiftOut.html (Read 428 times) previous topic - next topic

Noratech

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)


AlphaBeta

#1
May 12, 2009, 05:31 pm Last Edit: May 12, 2009, 05:33 pm by AlphaBeta Reason: 1
I spy with my little eye: A missing[glow] ;[/glow] !  ;)

[edit]I agree, the typo should be fixed.[/edit]

Noratech

#2
May 13, 2009, 02:54 am Last Edit: May 13, 2009, 02:58 am by Noratech Reason: 1
Hah!,  I never even noticed that the [glow] ; [/glow] was also missing. :-[

Go Up