Fix the card using pin 22 (nRF24L01 CE) and connect it with DI01 (view image)
Now the configuration in the project is as follows:
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 5, // byte 0: pin for select
.rxtx = LMIC_UNUSED_PIN, // byte 1: pin for rx/tx control
.rst = 21, // byte 2: pin for reset
.dio = { /*dio0*/ 2, /*dio1*/ 22, /*dio2*/ LMIC_UNUSED_PIN }, // bytes 3..5: pins for DIO0, DOI1, DIO2
};
.....
SPI.begin(18, 19, 23, 5); // These specific pins are for kc868-a6
if (os_init_ex((const void *)&lmic_pins)) {
Now the configuration in the project is as follows:
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 5, // byte 0: pin for select
.rxtx = LMIC_UNUSED_PIN, // byte 1: pin for rx/tx control
.rst = 21, // byte 2: pin for reset
.dio = { /*dio0*/ 2, /*dio1*/ 22, /*dio2*/ LMIC_UNUSED_PIN }, // bytes 3..5: pins for DIO0, DOI1, DIO2
};
.....
SPI.begin(18, 19, 23, 5); // These specific pins are for kc868-a6
if (os_init_ex((const void *)&lmic_pins)) {