v1.0.0 is the most current release of embedded-hal and has several breaking changes compared to v0.2.x. One example is v1.0.0 replaces embedded_hal::digital::v2::OutputPin with embedded_hal::digital::OutputPin. v1.0.0 also drops the adc interface and the timer CountDown trait. Moving forward, most code will be written for v1.0.0 and newer versions. The whole point of embedded-hal is to provide interfaces for portable and hardware-agnostic code. Using an outdated version defeats its entire purpose.
rp-hal and rp2040-hal already use embedded-halv1.0.0 to my knowledge.
Upgrade to
embedded-hal
v1.0.0
v1.0.0
is the most current release ofembedded-hal
and has several breaking changes compared tov0.2.x
. One example isv1.0.0
replacesembedded_hal::digital::v2::OutputPin
withembedded_hal::digital::OutputPin
.v1.0.0
also drops the adc interface and the timer CountDown trait. Moving forward, most code will be written forv1.0.0
and newer versions. The whole point ofembedded-hal
is to provide interfaces for portable and hardware-agnostic code. Using an outdated version defeats its entire purpose.rp-hal
andrp2040-hal
already useembedded-hal
v1.0.0
to my knowledge.