LowPowerLab Forum

Software support => Coding questions => Topic started by: joelindo on January 13, 2021, 03:34:41 PM

Title: RFM69HCW Config Basics
Post by: joelindo on January 13, 2021, 03:34:41 PM
I can read/write the RFM69 registers like a pro, but I can't get anything out of the antenna. Would someone PLEASE look at my code and tell me what I'm missing?

#intended for testing transmitter with spectrum analyzer
import spidev
import time
SPI_BUS = 0
SPI_SS = 0
SPI_CLOCK = 2000000 #Hz
spi = spidev.SpiDev(SPI_BUS, SPI_SS)
spi.max_speed_hz = SPI_CLOCK
rx = spi.xfer([0x81,0x0c]) #TX mode
i = 1
while True:
    time.sleep(1)
    rx = spi.xfer([0x80,0x55]) #address and data
    print(i)
    i = i+1
spi.close()

Title: Re: RFM69HCW Config Basics
Post by: joelindo on February 04, 2021, 12:22:20 PM
Why is there no one willing to help?
Title: Re: RFM69HCW Config Basics
Post by: Felix on February 04, 2021, 12:23:44 PM
python, really?