init pins before SPI

This commit is contained in:
Alessandro Mauri 2026-08-03 00:38:02 +02:00
parent eab3431993
commit 90bb19eff4

View File

@ -415,8 +415,8 @@ class LoRaGSStateMachine:
def main(): def main():
print("Starting up LoRa module") print("Starting up LoRa module")
LoRa.setSpi(0, 0, 4_000_000)
LoRa.setPins(23, 25, 24, -1, 5) LoRa.setPins(23, 25, 24, -1, 5)
LoRa.setSpi(0, 0, 4_000_000)
LoRa.begin() LoRa.begin()
print("LoRa module started") print("LoRa module started")