I am using Pi4J to write programs on my Raspberry Pi. The Raspi is supposed to communicate with an Arduino Uno via SPI. It works pretty good, but there are only two SpiChannels so there are also only two Chip-Select-Pins CS0 and CS1. I was wondering if I can also use Gpio-Pins as Chip-Select, but the method 'SpiFactory.getInstance' expects a SpiChannel-obejct.
Is there any way to "convert" a GpioPin into a SpiChannel or a way to create an instance of SpiDevice without choosing a SpiChannel? (then I could control the Gpio-Chip-Select manually)
I hope you can help me and sorry for my bad english :)