<thejpster[m]>
There was quite a lot of wrong in there. Have done my best to address it. I hope in future they can just call in the experts who use these chips day in and day out.
<thejpster[m]>
Pinging adamgreig and therealprof as our esteemed leaders.
IlPalazzo-ojiisa has joined #rust-embedded
jessebraham[m] has joined #rust-embedded
<jessebraham[m]>
Has there been any discussion regarding moving `defmt` to another organization like `rust-embedded`? I understand people are busy and empathize with that, but it would be nice to see some more activity there. For instance, there's an open PR I've been waiting on which has been open for ~3 weeks and has not even received an initial review yet, seems that allowing others to get involved would be a simple solutionf or this.
<burrbull[m]>
<jessebraham[m]> "Has there been any discussion..." <- to `libs` team maybe.
<adamgreig[m]>
But basically it's owned and run by knurling so they're the people to talk to before anything in the wg
<jessebraham[m]>
Okay, thanks for the link
Bergmann[m] has joined #rust-embedded
<Bergmann[m]>
Is there a way to specify where i want to start reading data in embedded_hal_async::i2c? I2c::read only takes address of the device and fills slice with data from the beginning of device memory addresses. Same thing with I2c::write. Can read or write single byte for example 0x1E without reading those 30 past bytes?
<andresovela[m]>
Usually you just write 0x1E to the device you want to read from and then start reading
<Bergmann[m]>
kinda strange, but it works
<Bergmann[m]>
thanks
<andresovela[m]>
That’s a general I2C thing, not an Embassy API thing, just FYI
JonathanDickinso has joined #rust-embedded
<JonathanDickinso>
Bergmann: unless you're integrating with an existing device, I2C is designed to work like remote memory-mapped registers. You want to `write_read(addr, register_num, &mut value)` to get values and `write(addr, &[register_num, data...])`. Trying to use it as a serial bus is fraught with peril (I've tried). If you want a serial bus then look at CAN instead.
<thejpster[m]>
<jessebraham[m]> "Has there been any discussion..." <- I’m sorry we’re not going as quickly as people want right now. As a reminder, the Knurling project accepts sponsorship via Open Collective and GitHub IIRC. We don’t get a huge amount and it limits the hours we can fund staff to work on it. If you’re happy to donate money or time, please feel free to reach out.
<thejpster[m]>
I’m not sure “just give it to the REDWG” is a solution in the general case to “I had to wait a few weeks for someone to look at my PR”, especially as they get zero sponsorship money and are in theory even less sustainable. And especially when it it’s commercial companies asking who can just pay to get work done.
<jessebraham[m]>
No apology needed, I understand. I guess that was a poor example, I just know I am not the only person who wishes to see more progress there. It's an incredibly useful set of libraries, and I just want to see them flourish.
<jessebraham[m]>
I guess I could have said less, really was just interested if there were any plans for changing how things work in the future.
<thejpster[m]>
The team will be happy to receive any suggestions. Personally I think adding people from outside Ferrous could be possible.
<thejpster[m]>
But that’s not my call to make.
<jessebraham[m]>
Fair enough, thanks for giving some additional context.
_whitelogger has joined #rust-embedded
Ecco has quit [Ping timeout: 255 seconds]
Ecco has joined #rust-embedded
firefrommoonligh has joined #rust-embedded
<firefrommoonligh>
My 2c is Demt works excellent as is, and I can seem it being a solid foundation even with no changes
<firefrommoonligh>
So, thx for it
<firefrommoonligh>
My experience would be worse without it
<firefrommoonligh>
*Eh I guess something like the builtin println's float etc formatting would be nice, but that's minor
<firefrommoonligh>
* * I guess something like the builtin println's float etc formatting and var-name-in-brackets would be nice, but that's minor
<firefrommoonligh>
* * I guess something like the builtin println's float etc formatting and var-name-in-braces would be nice, but that's minor
<firefrommoonligh>
s/Demt/Defmt/
<firefrommoonligh>
As always re OSS in particular, if there is a blocker, you can fork. This produces fragmentation if the fork is public and/or published, so that's a tradeoff.
<firefrommoonligh>
It's like, these guys have already been bros for publishing it OSS. Likewise, you have been too for making a PR and fixing or adding something. So, everyone is happy and helping
<firefrommoonligh>
Don't feel like the merge to master is required
<firefrommoonligh>
Use your PR fork
<dav1d>
Is there a mqtt client for embassy?
<firefrommoonligh>
I think Dirbaio mentioned one a few weeks ago. FYSA I am building a greenfield project at work using Rust with MQTT, but it's a PC software, so using Paho. Paho is great BC it's an official port and has an API similar to the C++ and Python ones, but won't work nostd
<firefrommoonligh>
Also, it's super weird programming for job. Can get used to it .
juliand[m] has quit [Quit: Idle timeout reached: 172800s]
<dav1d>
lulf[m], nice thanks, the first one actually is using the embedded-io-async traits!
<jessebraham[m]>
dav1d: Some of my colleagues have used this and recommended it
<dav1d>
cool thanks! I was wondering if I event want to use/test mqtt but this looks simple enough
<lulf[m]>
You need to use the git dependency for now, the latest release is missing fixes to work with latest embassy. I have ownership of the crate now so only myself to blame for that lazyness 😀
<lulf[m]>
s/lazyness/laziness/
<dav1d>
that's fine, thanks for the headsup
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
Guest7282 has left #rust-embedded [Error from remote client]
crabbedhaloablut has quit []
zaven[m] has joined #rust-embedded
<zaven[m]>
yo, somewhat new to rust and the f103 hal, it's unclear to me how to use the ADC from the example and reading adc.rs. i see that in read_temperature we make use of read_aux, but read_aux being private how am I meant to call it for convert other channels on the ADC ?
<zaven[m]>
the example given in the hal is thus not very useful, since it only shows how to read the aux channels (on chip temp sensor). shall I submit a PR with an update to this example, showing the above line as the way to read any analog pin?
Guest7282 has joined #rust-embedded
M9names[m] has joined #rust-embedded
<M9names[m]>
If you could update the example to do both (read the aux channel and a pin) that would be great