I searched around and didn't find an answer. I've got two SPI devices in use on this project. One SPI breakout is large and will have to be mounted off the main board, but the second is tiny and it would be ideal if it could just install into the Due's header. This would require defining two sets of SPI pins. Is it possible to declare duplicate pins on the same bus, or would I have to hack a library to use the second SPI bus to pull this off?Thanks,Tony
@artisticforge: SPI and I2C (TWI) are different protocols.@dauntless89: As mentionned above, the extended SPI Library for DUE allows you to have 3 SPI devices on the same SPI bus (pins 4, 10 and 52) and the Due will automatically handle the chip selection between multiple devices sharing the SPI bus. Of course, you could also make manually the chip selection with "any" SPI device thru a GPIO.With an external 4- to 16-bit decoder, you can select up to 12 spi devices thru NPCS0(PA28), NPCS1(PA29) and NPCS2(PB21) on the same bus.Plus USART0 and USART1 can be programmed in SPI mode for 2 SPI devices.
the Arduino Due has 2 TWI/I2C/Wire declared.On the Arduino DueAbove Pin 13 there areSCL1SCA1AREFGNDPin 20 is SDAPin 21 is SCL