Skip to content

Instantly share code, notes, and snippets.

@projectgus
Last active July 25, 2023 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save projectgus/4f3b8500ef964aa738a60ee83972cf8b to your computer and use it in GitHub Desktop.
Save projectgus/4f3b8500ef964aa738a60ee83972cf8b to your computer and use it in GitHub Desktop.
from machine import SPI, Pin
from lora import SX1262
def get_modem():
return SX1262(
spi=SPI(1, baudrate=2000_000, polarity=0, phase=0,
miso=Pin(12), mosi=Pin(11), sck=Pin(10)),
cs=Pin(3),
busy=Pin(2),
dio1=Pin(20),
dio2_rf_sw=True,
dio3_tcxo_millivolts=3300,
reset=Pin(15),
lora_cfg=lora_cfg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment