Go Down

Topic: Reference section for "ShiftOut" (Read 512 times) previous topic - next topic

guzzam

I noticed an issue in the Reference section for ShiftOut:
Code: [Select]

// Do this for MSBFIRST serial
int data = 500;
// shift out highbyte
shiftOut(dataPin, clock, MSBFIRST, (data >> 8)); 
// shift out lowbyte
shiftOut(data, clock, MSBFIRST, data);

The latter shiftOut line should of course be:
shiftOut(dataPin, clock, MSBFIRST, data);

pYro_65

Yeah, mistakes like these are questioned often here. It seems that a few reference items have been written in a rush. Unfortunately general public/members do not have access to fix the mistakes.

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!

Arduino
via Egeo 16
Torino, 10131
Italy