I have two LoRa modules. One is set up against a Nano clone and seems to work (transmitter). A spectrum analyzer does say, I am transmitting something in the correct frequency area with a spectrum that looks like FSK.
Now, due to extremely limited space I want to use a BadUSB Beetle as receiver. This board has on previous tests worked fine when programmed as a Leonardo. (Mainly the Blink ex.) (Board can be found here: https://www.ebay.com/itm/ESP12E-ATMEGA32U4-Beetle-BadUSB-Development-Virtual-Keyboard-SS-Micro-Module/123434780034?ssPageName=STRK%3AMEBIDX%3AIT&var=423850995313&_trksid=p2057872.m2749.l2649)
Compilation and upload of the receiver program work fine, but initialization of the LoRa module fails.
I have descriptions on how to connect a Nano and an Uno. Same thing, actually. All the various pins are the same. D2 + D9-13. (like this: https://circuitdigest.com/fullimage?i=inlineimages/u1/Transmitting-Side-Connecting-LoRa-SX1278-with-Arduino-UNO.png)
Now, on the BadUSB SPI seems to be placed at pins D14-16 (not D11-13). The SPI pins (MISO, MOSI and SCK) are all dual marked along with the standard digital I/O names (D14-16) for the pins. D12 and 13 do not seem to be externally accessible on a BadUSB Beetle.
I am using some standard SPI module. Heaven knows which and where it may be located. I have found several in the arduino-1.6.5-r5 directory structure.
The one I have looked into (hardware\arduino\avr\libraries\SPI\, the only one being spi.cpp) does not seem to issue pins for SPI at all. No matter processor, board or what ever.
Has anybody successfully tried a Leonardo or BadUSB Beetle with a LoRa? What am I not doing right? Would an upgrade to a newer IDE help?
I am, of course, using Chinese clones all over, but should that be a problem?