Pages: [1]   Go Down
Author Topic: Reference section for "ShiftOut"  (Read 454 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I noticed an issue in the Reference section for ShiftOut:
// 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);

North Queensland, Australia
Offline Offline
Edison Member
Karma: 74
Posts: 2225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Pages: [1]   Go Up
Jump to: