forked from Telos4/LoRa-Workshop
fixed docstring
This commit is contained in:
parent
e02cdb5242
commit
f5f7b62283
|
@ -4,8 +4,8 @@ from uPyLora.controller_esp32 import ESP32Controller
|
||||||
|
|
||||||
class LoRaTransceiver:
|
class LoRaTransceiver:
|
||||||
def __init__(self, spreadingfactor=7, bandwidth=125E3, frequency=868E6, syncword=0x12, display=None):
|
def __init__(self, spreadingfactor=7, bandwidth=125E3, frequency=868E6, syncword=0x12, display=None):
|
||||||
# set up radio module
|
""" set up radio module
|
||||||
# SX127x LoRa module configured for LoRaWAN Channel 0
|
"""
|
||||||
self.controller = ESP32Controller()
|
self.controller = ESP32Controller()
|
||||||
self.lora = self.controller.add_transceiver(SX127x(name='LoRa'), pin_id_ss=ESP32Controller.PIN_ID_FOR_LORA_SS, pin_id_RxDone=ESP32Controller.PIN_ID_FOR_LORA_DIO0)
|
self.lora = self.controller.add_transceiver(SX127x(name='LoRa'), pin_id_ss=ESP32Controller.PIN_ID_FOR_LORA_SS, pin_id_RxDone=ESP32Controller.PIN_ID_FOR_LORA_DIO0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user