You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble trying to setup the read-only analog pins(GPIO34-39) on the esp32. As far as I can tell this is the only implementation of the to_analog() method that you would use to create a AdcPin to interface with an adc. As far as I can tell this trait is only implemented for the IsOutputPin trait which the read-only pins don't have.
the method `into_analog` exists for struct `GpioPin<esp32_hal::gpio::Unknown, Bank1GpioRegisterAccess, DualCoreInteruptStatusRegisterAccessBank1, InputOnlyAnalogPinType, Gpio34Signals, 34>`, but its trait bounds were not satisfied
the following trait bounds were not satisfied:
`InputOnlyAnalogPinType: IsOutputPin`rustcClick for full compiler diagnostic
gpio.rs(554, 1): doesn't satisfy `InputOnlyAnalogPinType: IsOutputPin`
The text was updated successfully, but these errors were encountered:
I'm having trouble trying to setup the read-only analog pins(GPIO34-39) on the esp32. As far as I can tell this is the only implementation of the
to_analog()
method that you would use to create aAdcPin
to interface with an adc. As far as I can tell this trait is only implemented for theIsOutputPin
trait which the read-only pins don't have.Here is example code to reproduce it issue:
This is the error message:
The text was updated successfully, but these errors were encountered: