nrf-rs / microbit

A Rust crate for BBC micro:bit development
BSD Zero Clause License
276 stars 61 forks source link

Add a nonblocking LED display driver (draft 2) #16

Closed mattheww closed 4 years ago

mattheww commented 5 years ago

Supersedes PR #14

This version is based on the new HiResTimer implementation in nrf51-hal (Cargo.toml specifies nrf51-hal = "0.6.0" but it really needs today's master to build).

This is the core of the code from https://github.com/mattheww/microbit-blinkenlights, as discussed in #13.

I've left out the font and scrolling support to start with.

Notes:

therealprof commented 5 years ago

This version is based on the new HiResTimer implementation in nrf51-hal (Cargo.toml specifies nrf51-hal = "0.6.0" but it really needs today's master to build).

I've just published a new 0.6.2 version.

The rustdoc is using RFC1946-style links, which aren't stable but do work on docs.rs . I can remove those if you don't want to require nightly rustdoc.

I'm not sure which version is currently utilised by crates.io but I would assume it's nightly so that should be fine.

Other than that, looks excellent to me. Thanks a lot!

mattheww commented 5 years ago

As I understand it docs.rs uses nightly rustdoc, yes.

therealprof commented 5 years ago

Love the example. 👍

david-sawatzke commented 4 years ago

@therealprof This looks like it's ready to merge (and the example does look great)

therealprof commented 4 years ago

Hmm, completely forgot about this. @mattheww Can you resolve the merge conflicts?

mattheww commented 4 years ago

I've resolved the merge conflicts.

therealprof commented 4 years ago

I've merged it manually to get rid of the merge commit, thanks.