Skip to content

Rust + RTFM on the PineTime!

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

dbrgn/pinetime-rtic

Repository files navigation

Rust/RTIC on PineTime

Target MCU: nRF52832 (xxAA)

Current status: PoC

img

What works:

  • Bare-metal Rust with nrf52-hal
  • RTIC for concurrency
  • embedded-graphics for drawing onto the LCD
  • Detect button presses
  • Cycle through backlight brightness levels using button
  • Show battery charge status and voltage
  • Send BLE advertisement frames using the pure-Rust rubble stack

Planned:

  • A simple watch interface
  • Support for the step counter
  • Better Bluetooth support

Development

Flashing (cargo-embed)

Install cargo-embed:

$ cargo install -f --git https://github.com/probe-rs/cargo-embed/

Flash the target:

$ cargo embed --release

Flashing (openocd)

Run OpenOCD:

$ ./openocd.sh

Run the code

$ cargo run [--release]

Flashing (J-Link GDB Server)

Run JLinkGDBServer:

$ ./jlinkgdbserver.sh

Run the code

$ cargo run [--release]

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Rust + RTFM on the PineTime!

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages