Skip to content

Commit a80f02b

Browse files
Added comment about calibration after SetDio3AsTcxoCtrl
1 parent b131054 commit a80f02b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

sx126x/radiocontrol_wio_sx1262.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
radio.SetDio3AsTcxoCtrl(sx126x.SX126X_DIO3_OUTPUT_1_8, 5*time.Microsecond)
1515
radio.SetRegulatorMode(sx126x.SX126X_REGULATOR_DC_DC)
1616
radio.SetDeviceType(sx126x.DEVICE_TYPE_SX1262)
17+
radio.Calibrate(sx126x.SX126X_CALIBRATE_ALL)
1718
*/
1819
func NewRadioControlWio(nssPin, busyPin, dio1Pin, rfSw machine.Pin) *RadioControl {
1920
return &RadioControl{

sx126x/sx126x.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ func (d *Device) SetDio2AsRfSwitchCtrl(enable bool) {
323323
}
324324

325325
// SetDio3AsTcxoCtrl configures the DIO3 as an external TCXO voltage reference.
326+
// After TCXO control is set, it is recommended to perform full calibration (CALIBRATE_ALL command).
326327
// voltage: output voltage on DIO3 pin
327328
// delay: time for the TCXO to stabilize
328329
func (d *Device) SetDio3AsTcxoCtrl(voltage Dio3OutputVoltage, delay time.Duration) {

0 commit comments

Comments
 (0)