Closed Xavientois closed 2 years ago
Switching to using the into_output
method on the Pin
fixed this error. I still don't understand why it was saying that it did not implement InputPin
, but I will close this for now, as it is no longer a blocker for me.
I am trying to use the gpio pins to read in data from a DHT11 temperature and humidity sensor. However, when I pass my pin to the new method, I get the following compiler error saying that the
InputPin
trait is not implemented:I am confused by this, as it looks like the trait should be implemented. Here is my source code:
I am not sure whether I should be posting this issue here or in the DHT11 repo, but I haven't been able to figure out the cause of the problem.