Closed niondir closed 3 years ago
hmm, the type bounds should support this (it was a problem some versions ago), it's possible you're battling the type inference but that'd usually give a useful error...
have you tried using Sx127x::spi
directly? you ideally shouldn't need to construct the SpiWrapper
yourself.
edit: can you try running from the git version of the crate? looks like i haven't published a release of this in... some time.
Thanks, using the master did solve the type issue. Now i'm struggling with the SPI traits, see #18
I try to use the driver with the stm32l1xx_hal
I have my Pins:
But when passing it into the driver:
with_busy
andwith_reset
both expect the same typeOutput
butbusyPin
is of typePB0
and ´sdnPin´ is of typePA2
. Even the downgrade just results inPA
andPB
which leads to a compile error.Is it an issue with the
stm32l1xx_hal
or with the SX driver? Or is there any way I can convert / wrap my types to solve the issue?