I am aware that the pin locations on the Leonardo are different than Arduino's pins. But where would they be? Like I know that the sda and scl are D2 and D3, maybe D6 and D7?
// void setPins(int ss = LORA_DEFAULT_SS_PIN, int reset =
LORA_DEFAULT_RESET_PIN, int dio0 = LORA_DEFAULT_DIO0_PIN);
LoRa.setPins(9,10, 4); // for Leonardo
sorry for the late response, I tried to run it through a separate voltage regulator at 3.31V, with no success. I connected the MOSI, MISO, and SCK to ICSP pins, CE to D9, CSN to D10, and GND and VCC to the regulator
It is a DC voltage regulator module from Duinotech. I do not have a schematic sorry, but I just connected the +out and -out from the regulator to the VCC and GND of the device. Also, I connected it to a 9 volt battery, but I did configure it using a voltage sensor to 3.31V.
When I was measuring the voltage, it seemed consistent, but I did not have any other battery source. I have the plug from the wall socket to power the Arduino, could I use that instead?