I have downloaded a sketch that uses SPI. The sketch includes the Wire library but at compilation time, I am getting errors that TwoWire doesn't have methods called
This is caused by the sketch you downloaded being old. In prior releases, the methods called
receive() were used to send and receive SPI data. These were renamed to be
read(). If you change your code where there are references to
Wire.send() and change to
Wire.write() and also change
Wire.read(), you should find that your applications compile and run correctly.