digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, MSBFIRST, b2);
digitalWrite(latchPin, HIGH);
I thought ShiftOut did the same job as wire.h?
I'm royally confused then, what's the difference? - cheers.
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, MSBFIRST, b2);
digitalWrite(latchPin, HIGH);
I thought ShiftOut did the same job as wire.h?
I'm royally confused then, what's the difference? - cheers.
shift out is for SPI, two different methods of communications
ah!
so what's ethernet and SD use?
I2C?
I assume you mean SD and ethernet connections on the arduino
SD uses SPI
Ethernet uses SPI to talk to a controller on the board (wiznet)
SPI is is pretty basic, clock n bits type of setup
I2C is to, but uses addresses and other fun stuff and is treated more like a bus
Thanks for clearing that up