-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embassy support #2
Comments
I'm not familiar with embassy. So I cannot say for sure. But the main crate is only a wrapper around the Bosch BSEC library and should be independent of any framework. The |
Thank you for your prompt response. I will investigate the embassy part, but I know I definitely don't have access to std. How does this library get access to the bme680, is it the bme680 instance I create through the crate I'm already using: let mut bsec: Bsec<_, TimePassed, _> = Bsec::init(sensor, &clock)?; Is there anything special I need to configure on my bme680 to ensure it activates the gas sensor etc? |
Here's an example (without embassy). You need to create a
It's been a while since I played around with it, so I'm not entirely sure. But I don't seem to do anything special in the example I provided. I suppose, BSEC does that by itself. |
Thanks. I spent some time on this, and made some progress with using the cross crate to build for my environment. But I didn't realise this repo uses std which isn't available on constrained devices e.g. error[E0463]: can't find crate for |
I appreciate I'm going off topic here, but do you know if the output of cross build --target can be captured, and I'll fix up the std references myself? |
Unfortunately, I'm not familiar with cross. But I suppose you can grep for |
Yep, that one should be easy. But first I need to get the output from libalgobsec-sys as it seems to dynamically generate the BSEC bindings. I'm looking into how I can get that to then convert from std to embassy. |
The output directory is obtained here from the
If you can't find it that way, you could also try to change the build script to use another directory. |
Hi,
I'm fairly new to rust, and am working slowly through implementing this repo in my embassy project. I have the bme680 = "0.6.0" crate working correctly (which I believe this project supports?). Will this crate work with embassy (on a raspberry pi pico) do you know?
The text was updated successfully, but these errors were encountered: