tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/examples/sx126x/lora_continuous/radio.go (about)

     1  //go:build !stm32wlx
     2  
     3  package main
     4  
     5  import (
     6  	"machine"
     7  
     8  	"tinygo.org/x/drivers/sx126x"
     9  )
    10  
    11  var (
    12  	spi                        = machine.SPI0
    13  	nssPin, busyPin, dio1Pin   = machine.GP17, machine.GP10, machine.GP11
    14  	rxPin, txLowPin, txHighPin = machine.GP13, machine.GP12, machine.GP12
    15  )
    16  
    17  func newRadioControl() sx126x.RadioController {
    18  	return sx126x.NewRadioControl(nssPin, busyPin, dio1Pin, rxPin, txLowPin, txHighPin)
    19  }