Jeelib + Arduino SPI

Hello

I used jeelib (GitHub - jeelabs/jeelib: JeeLib for Arduino IDE: Ports, RF12, and RF69 drivers from JeeLabs) in my projects and liked to try my code in different microcontrollers. I forked jeelib to work with Arduino SPI library. It made possible to use MCU:s like ESP8266, ESP32, STM32F103C8T6 and STM32F103CB. Also ATMEGA328PB with MiniCore, LGT8F328 and Arduino Nano Every works.

As an example is RF12demo_SPI.ino, whitch is derived from original RF12demo.ino using Arduino SPI-library and is supporting MCUs mentioned. As original jeelib, supported radiomodules are Hopes RFM12b and RFM69CW.

I hope this fork is useful to someone.

Hi

This is just what I need for a project I'm working on for a load of old existing sensors with RFM12B's that use the jeelib protocol for comms.

I'm trying to use an ESP32 as a gateway with an RFM12B or RFM69CW and the jeelib protocol.

Currently I'm trying your RF12demo_SPI example with no modification and the following connections :-

MOSI - GPIO23
MISO - GPIO19
SCK - GPIO18
SS - GPIO5

I'm guessing about which connection for the RFM12B IRQ, from your code it looks like GPIO34.

Unfortunately, I'm not getting anywhere with it, and all I get on the serial console is SPI.begin();

I would be really grateful for any help, especially any information on what connections you used and what if any defines I need to change in your code to use an ESP32 and a RFM12B.

Many Thanks.

I've started using this on my Solar Power Diversion project. Works great for me on a TinyPICO ESP32, talking to a RFM69HCW - compatible with RFM12b

I'm using the usual SPI pins as above; the default for RFM_IRQ is indeed GPIO34, it's set at line 46 in rf69_compat.cpp in the library directory. Other places as well for other boards.

I needed to change it to GPIO32 because 34 is already allocated on the TinyPICO, and that change worked for me.

Great library fork, just the job, thanks very much hunnupul.

Eric