<cr1901>
Is there any examples on how to use eeprom24x crate with a HAL that _doesn't_ implement Countdown<Time = Duration>, or are non e-hal 1.0 versions of this crate not usable w/ such HALs?
<cr1901>
Oh are you serious?! I can't even use the compat layer. I just lost the past 2 days trying to get EEPROM storage to work as a PoC, and now I can't test it on hardware. https://github.com/ryankurte/embedded-hal-compat/pull/34
<cr1901>
(When I get up tomorrow, I'll see if I can implement a conversion newtype hopefully...)
<JamesMunns[m]>
dirbaio I dunno where we'd put it, Embeddonomicon maybe? But IMO it'd be good to have an example of how you do struct transmutes right, and what can go wrong. It's lame for me to just say "don't", it's better to give docs on how to do it right instead. If you wanna collab on this next week I'm down.
AtleoS has quit [Ping timeout: 260 seconds]
AtleoS has joined #rust-embedded
AtleoS has quit [Remote host closed the connection]
AtleoS has joined #rust-embedded
bomb has quit [Quit: π£]
eldruin[m] has joined #rust-embedded
<eldruin[m]>
<cr1901> "Is there any examples on how..." <- sorry about that. If you implement it for another `Time` type, I can merge it and release a 0.6.2
<eldruin[m]>
(would need some kind of switching mechanism, though)
<eldruin[m]>
Alternatively, you can use the normal interface instead of the embedded-storage traits
<eldruin[m]>
You could also adapt the 0.7 version of the implementation, which uses delay instead of countdown
spinfast[m] has quit [Quit: Idle timeout reached: 172800s]
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #rust-embedded
fuse117[m] has quit [Quit: Idle timeout reached: 172800s]
K900 has quit [Quit: Idle timeout reached: 172800s]
bomb has joined #rust-embedded
<thejpster[m]>
Ffs. This guy is so good itβs actually almost upsetting.
<thejpster[m]>
No one I know. But then Iβm not good at putting faces to screen names.
<bomb>
wouldn't surprise me if he lurks in this channel :)
<IlPalazzo-ojiisa>
Is that a round-about way of saying it's actually you?
<bomb>
uwu I wish
therustybits[m] has joined #rust-embedded
<therustybits[m]>
oh he lurks...
<therustybits[m]>
me trying to read everything here i missed from the last 3 weeks π
IlPalazzo-ojiisa has quit [Quit: Leaving.]
<bomb>
ayy
<diondokter[m]>
therustybits: You're doing great work! This really allows people who've done a bit of arduino to jump to Rust for more serious work. Very nice and accessible videos
<therustybits[m]>
Thanks! Trying hard not to say anything disastrously wrong π
<therustybits[m]>
still new to the scene, but loving it
<diondokter[m]>
therustybits[m]: I'd say that's a good thing! It's been quite a while since I learned Rust, so I don't fully remember anymore what I struggled with.
<diondokter[m]>
Also, if you're unsure about something, you can always ask and check here
<therustybits[m]>
Will do, thanks!
<JamesMunns[m]>
<therustybits[m]> "oh he lurks..." <- Are you going to be at RustNL or Oxidize?
<bomb>
therustybits[m] you [will] use Rust for non-embedded stuff as well?
<therustybits[m]>
JamesMunns[m]: No for RustNL.. possibly Oxidize. I'm in upstate NY, so its a bit of a hike π¬
<therustybits[m]>
<bomb> "therustybits you [will] use Rust..." <- Yes π
<dygear[m]>
Oh no shit. I'm in NY but on Long Island.
<therustybits[m]>
My history is in IOT stuff, so doing something where you write some firmware and then a cloud service in the same language seems like a pretty awesome story
<therustybits[m]>
dygear[m]: Ha! My grandparents lived in Central Islip. Dad moved upstate in the 70s
<dygear[m]>
I'm right around there. I'm a Paramedic by day and Programmer by night. So hopefully they don't need my day services as I cover the entirety of Suffolk County (for the most part).
* JamesMunns[m]
uploaded an image: Screenshot_20240501-235010~2.png
<JamesMunns[m]>
JamesMunns[m]: So u16::wrapping_add
<JamesMunns[m]>
JamesMunns[m]: A real "check sum"
<dygear[m]>
Oh, intresting. I didn't understand that paragraph in the table. I don't think I would have got that on my own. Thank you James.
<JamesMunns[m]>
Unsure if it uses 8 or 16 bit words at a time tho
<JamesMunns[m]>
I'd guess 8 but I'd probably try to logic analyzer it.
<dygear[m]>
I've read the datasheet a few times now as I've been building the libary. I think they have a pre-calc'd checksum on one of the packest that I can send to the device. I'll run that though the system to see where they match.
GrantM11235[m] has joined #rust-embedded
<GrantM11235[m]>
My guess is 16 bit words, otherwise the high byte would be mostly zeros
<JamesMunns[m]>
GrantM11235[m]: Definitely interested in what the answer is :D