Closed supreeet closed 1 year ago
I can't get ra 01 to work with micropython i'm a beginner and need help I just want to get some sensor data one way from a drone
from sx1268 import SX1268 import time from machine import Pin
sx = SX1268(spi_bus=1, clk=10, mosi=11, miso=12, cs=9, irq=27, rst=26, gpio=15)
sx.begin(freq=433)
while True: msg, err = sx.recv() if len(msg) > 0: error = SX1262.STATUS[err] print(msg) print(error)
I can't get ra 01 to work with micropython i'm a beginner and need help I just want to get some sensor data one way from a drone
from sx1268 import SX1268 import time from machine import Pin
sx = SX1268(spi_bus=1, clk=10, mosi=11, miso=12, cs=9, irq=27, rst=26, gpio=15)
LoRa
sx.begin(freq=433)
FSK
sx.beginFSK(freq=923, br=48.0, freqDev=50.0, rxBw=156.2, power=-5, currentLimit=60.0,
preambleLength=16, dataShaping=0.5, syncWord=[0x2D, 0x01], syncBitsLength=16,
addrFilter=SX126X_GFSK_ADDRESS_FILT_OFF, addr=0x00, crcLength=2, crcInitial=0x1D0F, crcPolynomial=0x1021,
crcInverted=True, whiteningOn=True, whiteningInitial=0x0100,
fixedPacketLength=False, packetLength=0xFF, preambleDetectorLength=SX126X_GFSK_PREAMBLE_DETECT_16,
tcxoVoltage=1.6, useRegulatorLDO=False,
blocking=True)
while True: msg, err = sx.recv() if len(msg) > 0: error = SX1262.STATUS[err] print(msg) print(error)