ehong-tl / micropySX126X

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

must be of type Pin, not int #15

Open vladbondarenko opened 1 year ago

vladbondarenko commented 1 year ago

Hello,

When using TX from examples i got this:

Traceback (most recent call last): File "", line 8, in File "/lib/sx1262.py", line 20, in init File "/lib/sx126x.py", line 53, in init TypeError: clock must be of type Pin, not int

Any ideas how to fix?

Thanks.

ehong-tl commented 1 year ago

Hi,

For Circuitpython, all the pins variable in the constructor must be Pin object instead of int.