Go Down

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


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);


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