데이터 핀으로부터 1비트씩 1바이트를 읽어 옵니다. 시작위치는 최상위비트나 최하위비트 둘중 아무데서부터 시작할 수 있습니다.
각 비트는 클락 핀이 HIGH가 되었을때 데이터 핀으로부터 읽히고, 비트가 읽히면 클락 핀이 LOW가 됩니다.
byte incoming = shiftIn(dataPin, clockPin, bitOrder)
dataPin : 각 비트를 읽어올 핀 번호
clockPin : dataPin에서 데이터를 읽을 때마다 toggle될 핀 번호
bitOrder : 비트 시프트 순서 - MSBFIRST, LSBFIRST
(Most Significant Bit First, Least Significant Bit First)
byte
Created with the Personal Edition of HelpNDoc: Create HTML Help, DOC, PDF and print manuals from 1 single source