LoRaRF-Python icon indicating copy to clipboard operation
LoRaRF-Python copied to clipboard

Network Examples working

Open pramsuiitd opened this issue 1 year ago • 3 comments

Hi, I am using LoRa SX1262 Raspberry Hat with Raspberry Pi. This is the issue I am getting when using the Network Examples reciever.py code

Begin LoRa radio Traceback (most recent call last): File "tx.py", line 15, in if not LoRa.begin() : File "/usr/local/lib/python3.7/dist-packages/LoRaRF/SX126x.py", line 293, in begin self.reset() File "/usr/local/lib/python3.7/dist-packages/LoRaRF/SX126x.py", line 310, in reset self._reset.output(LoRaGpio.LOW) File "/usr/local/lib/python3.7/dist-packages/LoRaRF/base.py", line 36, in output chip = gpiod.Chip(self.chip) AttributeError: module 'gpiod' has no attribute 'Chip'

I believe that the module gpiod has 'chip' attribute instead of 'Chip' attribute. Can you verify and fix this in a patch?

pramsuiitd avatar Oct 15 '23 12:10 pramsuiitd