Closed Lozeonjyu closed 5 years ago
Just clarifying...
The questions is why the use of PIN_ANALOGIC (Which I believe makes it an analog input pin) for the GPIO pin type instead of PIN_OUTPUT and then set back to a "1".
The radio reset pin has an internal pull-up. Thus, in order to avoid the MCU driving a 1 we just set the pin as input.
Thank you for responding. I appreciate the follow up. Close the issue.
Hi,
I am using the Nucleo L073+Sx1261 shield to load the code. During the code reading, I find something that confuses me a little bit.
In the file sx1261mbxbas-board.c, it introduces the sx126x reset function:
It seems like the micro drives the reset pin low and let the reset pin go back, but why it initializes again as analog rather than just writegpio 1 to the reset pin? And why setting the pin analogic can let the reset pin go back high again?
Thanks