<thejpster[m]>
I say the same about &’a str vs String.
<MartinSivk[m]>
<dngrs[m]> "I like to write type aliases..." <- Oh, I have this too of course. It almost looks like type programming with multiple levels of aliases `I2cProxy<Forward<I2c<I2C1, BoardI2cSda, BoardI2cScl>, ()>>`. But I was porting my project to a different board and had to do a second (and third and then v1 + compat traits...) copy of all those manually instead of the inference engine doing it for me. Which should be possible in
<MartinSivk[m]>
theory as all the types are clear after the first assignment, but of course implementing that level of inference in the compiler is hard.
cr1901_ has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
be[m] has joined #rust-embedded
<be[m]>
<RobinMueller[m]> "Does anyone have experience with..." <- bisync is great. You can deal with embedded_hal vs embedded_hal_async traits by importing the symbols into the module, then inside the implementation modules, use relative paths like `... (full message at
<be[m]>
then in one of the implementation submodules, I have use super::super::{bisync, DelayNs, SpiDevice};
<be[m]>
<SEGFAULT[m]> "I need to get one of those..." <- When I realized I needed one of those to not have to physically press a button on the device every time I wanted to flash a Raspberry Pi Pico, instead of buying one of those programmers, I just bought an ESP32-C3 devboard that exposes JTAG over USB and defmt just works.
<be[m]>
* those programmers, for about the same cost I just
<be[m]>
* When I realized I needed one of those to not have to physically press a button on the device every time I wanted to flash a Raspberry Pi Pico, instead of buying one of those programmers, for about the same cost I just bought an ESP32-C3 devboard that exposes JTAG over USB and defmt & probe-rs just work.
Socke has quit [Ping timeout: 245 seconds]
Socke has joined #rust-embedded
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
kaoD has quit [Quit: Bye]
kaoD has joined #rust-embedded
ivmarkov[m] has quit [Quit: Idle timeout reached: 172800s]
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
<burrbull[m]>
<MartinSivk[m]> "Folks, I think I have seen a..." <- In f4xx-hal I use enums of possible alternate pins associated with peripheral. So I can keep pins inside peripheral instance without PINS generic.
<rafael[m]>
<wassasin> "Sounds like something else is..." <- remember this one? I am fairly certain you are right something else is going on, but after more testing i have written this off as an oddity of the dfplayer. Just for entertainment value: There is a stupidly simple solution to the track count... so easy that i did not see it even when it was right in front of me. You can just send the player a command to play a unreasonably high track
<rafael[m]>
number (volume set to 0), after which it will proceed to play the highest available track. You can then send a query command to retrieve the currently playing track no. Done, got a track count. Feels as hacky as it is, but is even just as fast than the actual counting is. 😄
<MartinSivk[m]1>
burrbull: Yeah, that looks like the pattern I was looking for. It looks like the Into<> part is what I need to figure out. I had the type definition traits.
MartinSivk[m]1 has joined #rust-embedded
kaoD has quit [Quit: Bye]
kaoD has joined #rust-embedded
<MartinSivk[m]1>
burrbull: The pin! macro is quite a piece of work, it will take me a while to decipher
kaoD has quit [Ping timeout: 248 seconds]
kaoD8 has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.4.3]
kaoD8 is now known as kaoD
jsjuel[m] has quit [Quit: Idle timeout reached: 172800s]
chrysn[m] has quit [Quit: Idle timeout reached: 172800s]
Kaspar[m] has quit [Quit: Idle timeout reached: 172800s]