Skip to content
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

[WIP] Update the microbit part of the book #575

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Commits on Jun 20, 2024

  1. Update the 02-requirements/README.md

    Updated to mention the 2021 edition in stead of 2018
    nikgul committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    0e69e65 View commit details
    Browse the repository at this point in the history
  2. Typo: Change vI to v1

    nikgul committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    a29cb27 View commit details
    Browse the repository at this point in the history
  3. Update crate versions in 03-setup

    Cargo.toml:
      * edition             2018 -> 2021
      * cortex-m            0.7.3 -> 0.7.7, added feature `critical-section-single-core`
      * cortex-m-rt         0.7.0 -> 0.7.3
      * rtt-target          0.3.1 -> 0.5.0, removed feature `cortex-m`
      * panic-rtt-target    0.1.2 -> 0.1.3, removed feature `cortex-m`
    
    src/main.rs:
      * To prevent a link error regarding undefined symbols
        (`_critical_section_1_0_acquire` and `_critical_section_1_0_release`)
        I have added `use cortex_m as _;`
    
    The code compiles, and I see the RTT output from cargo embed.
    nikgul committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    9bb86ea View commit details
    Browse the repository at this point in the history
  4. Update crate versions in 05-led-roulette

    Cargo.toml
      * edition             2018 -> 2021
      * microbit-v2         0.12.0 -> 0.14.0
      * microbit            0.12.0 -> 0.14.0
      * cortex-m            0.7.3 -> 0.7.7, added feature `critical-section-single-core`
      * cortex-m-rt         0.7.0 -> 0.7.3
      * rtt-target          0.3.1 -> 0.5.0, removed feature `cortex-m`
      * panic-rtt-target    0.1.2 -> 0.1.3, removed feature `cortex-m`
    nikgul committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    5aad8b3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    456c302 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8fc7b9f View commit details
    Browse the repository at this point in the history
  7. Introduce embedded-hal, and refactor to use the OuputPin trait as before

    The microbit crate apparently don't reexport the hal's OutputPin trail,
    there for add embedded-hal as a dependency.
    nikgul committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    b90938a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e5a0104 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    93aee67 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8ee50c1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    11f9aa1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ef9cde7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3089150 View commit details
    Browse the repository at this point in the history
  14. microbit version 0.15.0 crates has been released

    A new version of the microbit crates has been released.
    
    Cargo.toml
      *  microbit-v2        0.14.0 -> 0.15.0
         Which updated HAL crates to version 0.18.0
      *  microbit           0.14.0 -> 0.15.0
    
    In connection with this I moved all the examples in the book out of book
    text and made them project examples, and used an include statement, like
    it's done in `my-solution`, which makes checking the examples faster,
    and I also cought a couple of typos I made when I updated the text,
    which rust-analyser didn't like.
    
    The examples can be run manually with commands like:
    `cargo embed --target thumbv7em-none-eabihf --features v2 --example
    it-blinks-1`
    
    Don't know if this messes with any automatic tests yet.
    nikgul committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    c6e0e7a View commit details
    Browse the repository at this point in the history