ehong-tl / micropySX126X

Semtech SX126X LoRa driver for Micropython and CircuitPython.
MIT License
103 stars 22 forks source link

Circuitpython pin redefinition #23

Open jaroslawka opened 8 months ago

jaroslawka commented 8 months ago

file: sx126x.py

  1. Pin redefinition causes exception
    def clearDio1Action:
        self.irq = digitalio.DigitalInOut(self._irq)

solution:

    try:
              self.irq = digitalio.DigitalInOut(self._irq)
     except:
              pass