Code Monkey home page Code Monkey logo

pinetime-rtic's Introduction

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.

pinetime-rtic's People

Contributors

dbrgn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pinetime-rtic's Issues

Please add a license

Hello,

I noticed there isn't a license specified anywhere in the repo, sources, README, or cargo file. Can you please add a license somewhere so others can build upon your work?

Thanks!

panicked at time.rs:187:9

I'm doing P8 watch port: https://github.com/ildar/pinetime-rtic . I have no original PineTime. But testing the pinetime-rtic on P8 panics:

Initializing…
Setting backlight brightness to 1
Bluetooth device address: 10:69:c3:9c:12:56(Random)
panicked at '4293796891µs between instants 1.572403s and 401.998ms', /usr/src/.cargo/git/checkouts/rubble-1acc4a403ea48878/78a9172/rubble/src/time.rs:187:9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.