Author Topic: RFM69HCW Config Basics  (Read 87 times)

joelindo

  • Newbie
  • *
  • Posts: 2
RFM69HCW Config Basics
« 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?

Code: [Select]
#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()
« Last Edit: January 13, 2021, 03:36:32 PM by joelindo »