Replies: 1 comment 6 replies
-
We have a migration guide for all our esp-hal releases: https://github.com/esp-rs/esp-hal/releases/tag/esp-hal-v1.0.0-beta.0 there is a section there about ADC. Essentially we made it so ADC can be initialized in blocking or async mode, you just need to add a |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First, thanks for the amazing work done on
esp-hal
.For the current project I am working on, I implemented a quick abstraction to facilitate implementing ADC value conversion per-device in which a device is defined by a type, to make use of Rust's type safety.
However, when upgrading to esp-hal 1.0.0-beta.0, the compiler reported the following error.
The printed suggestion points to a rather private trait,
esp_hal::analog::adc::implementation::asynch::AsyncAccess
. I navigated the source code a bit and I cannot seem to find it exposed in any way, be it directly or indirectly. Perhaps I'm missing something? Or could it be that this abstraction cannot be achieved with the current state of1.0.0-beta.0
?Beta Was this translation helpful? Give feedback.
All reactions