Go Down

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


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)


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]


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131