Comments (5)
@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.
@nebelgrau77 I already tried this thing, but it does not work.
no field `SYST` on type `rtic::Peripherals`
from bme280-rs.
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.
@nebelgrau77 I use bluepill and it looks like there are no SYST in cx.core of F1.
from bme280-rs.
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)
- Supporting BMP280
- Consumes the delay provider HOT 6
- BME280 not working on ESP32 HOT 2
- Suggestion to add embedded-hal feature flag HOT 3
- Ability to configure oversampling and IIR filter HOT 2
- Build fails for ESP32 HOT 11
- Example from README not working HOT 5
- SPI communication doesn't work HOT 6
- I2C address inconsistency HOT 2
- Is a pinned embedded-hal necessary? HOT 2
- Use configurable readout delay HOT 1
- New Release? HOT 2
- New crates.io release for eh v1.0.0 update HOT 2
- failed to select a version for `embedded-hal`
- called `Result::unwrap()` on an `Err` value: InvalidData HOT 10
- Driver panics when trying to make a measurement with BME280 HOT 3
- Allow sharing the I2C bus. HOT 2
- Implement `std::error::Error` for public `Error` struct HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bme280-rs.