I’m using the RF24 library and I have to use the SOFTSPI for a custom ATMEGA328 board. Before going to the custom board I want to test the SOFTSPI on an Arduino Uno. I altered an example code of the website HowToMechatronics.com to use SOFTSPI for the receiver. This works, if I leave the MISO,MOSI and SCK pin to default SPI pins, see code in attachment. If I change for example the SCK pin to pin 4 of the Arduino Uno, the radio.available will trigger constantly and no text will be printed.
Does this mean that the code is not using the SOFTSPI?
Can anyone suggest a solution for this problem?
Thank you very much in advance!
ExampleReceiverCode.ino (791 Bytes)