You use Wire.read & Wire.write commands to talk to I2C devices.
You use SPI.transfer commands to talk to SPI devices.
Different IO pins, different hardware in the '328P.
I'm using a Yún
Then you've posted in the wrong section to start ...
You use Wire.read & Wire.write commands to talk to I2C devices.
You use SPI.transfer commands to talk to SPI devices.
Different IO pins, different hardware in the '328P.
I'm using a Yún
Then you've posted in the wrong section to start ...