ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
crabbedhaloablut has quit [Write error: Connection reset by peer]
crabbedhaloablut has joined #rust-embedded
explore has joined #rust-embedded
starblue has quit [Ping timeout: 252 seconds]
starblue has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
explore has quit [Quit: Connection closed for inactivity]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
emerent_ has joined #rust-embedded
emerent has quit [Killed (mercury.libera.chat (Nickname regained by services))]
causal has quit [Quit: WeeChat 3.6]
crabbedhaloablut has quit [Ping timeout: 258 seconds]
crabbedhaloablut has joined #rust-embedded
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
crabbedhaloablut has joined #rust-embedded
neceve has quit [Quit: ZNC - https://znc.in]
neceve has joined #rust-embedded
m5zs7k has quit [Ping timeout: 248 seconds]
m5zs7k has joined #rust-embedded
starblue has quit [Ping timeout: 268 seconds]
starblue has joined #rust-embedded
GenTooMan has quit [Ping timeout: 268 seconds]
GenTooMan has joined #rust-embedded
rardiol has joined #rust-embedded
rardiol has quit [Client Quit]
rardiol has joined #rust-embedded
rardiol has quit [Ping timeout: 265 seconds]
explore has joined #rust-embedded
rardiol has joined #rust-embedded
<re_irc> <Jeremy Fitzhardinge> Hey all - What's the best way to use an i2c controller via embedded-hal-async for multiple devices? It seems that a lot of the drivers just want to take ownership of the whole i2c controller. Is there some meta-i2c controller to allow sharing?
<re_irc> <newam> This is probably what you're looking for: https://docs.rs/shared-bus/latest/shared_bus/
<re_irc> It gets a lot better with the embedded-hal 1.0.0 traits (still in alpha)
<re_irc> <Jeremy Fitzhardinge> Ah, thanks for the pointer. I am using embedded-hal 1.0 alpha - should you use shared_bus with that, or does it have its own mechanism for this?
<re_irc> <newam> You can use shared bus with EH 1.0 alpha, but it's also easy to make your implementation if you have unique requirements, that's really the advantage with 1.0
<re_irc> <Jeremy Fitzhardinge> does shared-bus support async?
<re_irc> <newam> I think it works with async, but I'm not 100% on that. Async is even more alpha than EH 1.0 alpha :D
<re_irc> Take a look at embassy (https://github.com/embassy-rs/embassy) (also #embassy-rs:matrix.org (https://matrix.to/#/#embassy-rs:matrix.org) ), I'm sure they have something there.
<re_irc> <Jeremy Fitzhardinge> Ah good point, I should catch up with what's been going on in embassy-land
<re_irc> <Jeremy Fitzhardinge> looks like it has an async shared bus https://docs.embassy.dev/embassy-embedded-hal/git/default/shared_bus/asynch/index.html