Author Topic: RFM69HCW Config Basics  (Read 8381 times)

joelindo

  • NewMember
  • *
  • Posts: 9
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 »

joelindo

  • NewMember
  • *
  • Posts: 9
Re: RFM69HCW Config Basics
« Reply #1 on: February 04, 2021, 12:22:20 PM »
Why is there no one willing to help?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: RFM69HCW Config Basics
« Reply #2 on: February 04, 2021, 12:23:44 PM »
python, really?