-
Notifications
You must be signed in to change notification settings - Fork 183
blink example does not compile #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
a kind stranger told me the fix should simply be changint to hal::digital::V2::{InputPin, OutputPin, StatefulOutputPin, toggleable}; line 61 of https://docs.rs/stm32f1xx-hal/0.2.1/src/stm32f1xx_hal/gpio.rs.html#61 |
Don't bother too much about this deprecation warning for the moment. The following issue is #70 The README should be updated. |
so it is fine that 0.2.0 doe NOT compile? unfortunately the example seems to be spread also in the crates.io and I think I saw it also in another official guide, could it be the cortex-m guide? If i find it again I will update this issue so at least there will be a reference |
0.2 is not API compatible with 0.3. I suspect the code you've tried was for 0.3, and thus didn't compile with 0.2, or some other crate version missmatch problem. If you want that I check more in depth why it doesn't compile for 0.2, I will need a complete example. 0.2 is not supposed to be used anymore anyway, so that's more by curiosity or to learn. |
the blink code that was in the readme and in the crate.io (it still report to use 0.2.0 with the non-compile example, here https://crates.io/crates/stm32f1xx-hal) |
In 0.2.1, PC13 was not declared for stm32f100: 49ee9cb |
Hello,
new in rust.
Following the readme of the project, i managed to set up the toml to make it work:
using 0.2.0 as requested from the readme return the error:
then i notice 0.3.0 is available, and with that one i get warning about digital::v1 (I read a little bit the issue by my skill level are 0 and i could not understand nothing).
Please please please fix your own doc and warning,
sincerely,
a frustrated beginner
The text was updated successfully, but these errors were encountered: