From d7e2dadb9fa5b5e791e290642fe300ac2c60b917 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 28 Sep 2019 12:23:27 +0200 Subject: [PATCH] [SX126x] Added note about TCXO modules --- .../SX126x/SX126x_Receive/SX126x_Receive.ino | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/examples/SX126x/SX126x_Receive/SX126x_Receive.ino b/examples/SX126x/SX126x_Receive/SX126x_Receive.ino index 9bb83c9d..2f6f8319 100644 --- a/examples/SX126x/SX126x_Receive/SX126x_Receive.ino +++ b/examples/SX126x/SX126x_Receive/SX126x_Receive.ino @@ -53,6 +53,28 @@ void setup() { Serial.println(state); while (true); } + + // NOTE: Some SX126x modules use TCXO + // (Temprature-Compensated Crystal Oscillator). + // To be able to use these modules, TCXO + // control must be enabled by calling + // setTCXO() and specifying the reference + // voltage. + + /* + Serial.print(F("[SX1262] Setting TCXO reference ... ")); + // enable TCXO + // reference voltage: 1.6 V + // timeout: 5000 us + state = lora.setTCXO(1.6); + if (state == ERR_NONE) { + Serial.println(F("success!")); + } else { + Serial.print(F("failed, code ")); + Serial.println(state); + while (true); + } + */ } void loop() {