nopnop2002 / esp-idf-sx126x

SX1262/SX1268/LLCC68 Low Power Long Range Transceiver driver for esp-idf
MIT License
85 stars 17 forks source link

I have a very urgent question.Please answer, I will thank you very much #7

Closed niubbbbbbbb closed 2 years ago

niubbbbbbbb commented 2 years ago
When I read your code, I found that DIO1/DIO2/DIO3 pin was not defined in your code, and then found SetDioIrqParams (SX126X_IRQ_ALL, SX126X_IRQ_NONE, X126X_IRQ_NONE, SX126X_IRQ_NONE); This function. The parameter of this function is the pin of DIO1/DIO2/DIO3 pin_ bit_ mask?
In addition, when I read the SX1262 data manual, I did not find RXEN and TXEN. What are the two pins in the data manual?

If you can help me answer these two questions, I will thank you very much. image

nopnop2002 commented 2 years ago

I found that DIO1/DIO2/DIO3 pin was not defined in your code

My code don't use DIO and IRQ Control function. See "DIO and IRQ Controls" in the datasheet for SetDioIrqParams parameters. SetDio

RXEN and TXEN is here. https://docs.ai-thinker.com/_media/lora/docs/ra-01s_specification.pdf https://docs.ai-thinker.com/_media/lora/docs/ra-01sh_specification.pdf

EDIT) Even if i looking at these, I don't understand how to use TXEN and RXEN.