Giter Club home page Giter Club logo

Comments (5)

nebelgrau77 avatar nebelgrau77 commented on September 9, 2024

@arrowcircle You can get the delay in RTIC from core:

 #[init]
    fn init(cx: init::Context) -> init::LateResources {
        let dp = cx.device;
        let core = cx.core;

        //clocks and other peripherals defined here

        let mut delay = Delay::new(core.SYST, clocks);

Here's an example with a different I2C device:

https://github.com/jamwaffles/ssd1306/blob/master/examples/rtic_dvd.rs

from bme280-rs.

arrowcircle avatar arrowcircle commented on September 9, 2024

@nebelgrau77 I already tried this thing, but it does not work.

no field `SYST` on type `rtic::Peripherals`

from bme280-rs.

nebelgrau77 avatar nebelgrau77 commented on September 9, 2024

OK, here's my repo that works:

https://github.com/nebelgrau77/sensor_data_forwarder_Rust

You need to get SYST from cx.core, not cx.device.

from bme280-rs.

arrowcircle avatar arrowcircle commented on September 9, 2024

@nebelgrau77 I use bluepill and it looks like there are no SYST in cx.core of F1.

from bme280-rs.

nebelgrau77 avatar nebelgrau77 commented on September 9, 2024

I see... hmmm, try asking in RTIC channel here: https://app.element.io/#/room/#rtic:matrix.org - I didn't realize it might be a board/MCU specific issue.

...it's strange, though: that first example I indicated, the SSD1306, is for the F1xx. Weird...

from bme280-rs.

Related Issues (19)

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.