SPI1.setup({ sck:D5, mosi:D27, miso: D19 });
var sx = require("SX127x").connect({spi: SPI1, cs: D18, rst : D14 });
setInterval(function() { sx.onIRQ(); }, 100);
var config = {
rxContinuous : true,
freq: 868E6
};
console.log('starting receiver');
sx.setRxConfig(config);
// enter receive mode
sx.rx(function(err, inf) {
// Error, or you get signal strength and data returned in an object
if (err) console.log("RX ERROR");
else console.log("RX>",inf);
});
I got no erros. On tx I got nothing. On rx I got this after upload:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I'm trying to make work 2 esp32 modules with lora. But I did not succed.
espruino version: 1v99.4103
pinout (i hope it is good): https://cdn.hackaday.io/files/269911154782944/Heltec_WIFI-LoRa-32_DiagramPinout.jpg
For tx code i use:
for the rx config i use:
I got no erros. On tx I got nothing. On rx I got this after upload:
What I'm doing wrong?
thanks