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

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

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 74
Posts: 2209
View Profile
WWW
 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.
Logged


Pages: [1]   Go Up
Jump to: