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 [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
<re_irc> <adamgreig> oh cool, I think this is new, github now tracks repos that depend on your project (distinct from crates.io showing which other crates on crates.io depend on it)
<re_irc> <adamgreig> it even handles multiple crates in one repo 😍 though it doesn't find cortex-m-rt, perhaps because it still finds that in its old repo...
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
emerent has quit [Ping timeout: 260 seconds]
emerent_ has joined #rust-embedded
emerent_ is now known as emerent
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
Shell has quit [*.net *.split]
wose has quit [*.net *.split]
jr-oss_ has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
jasperw has quit [*.net *.split]
SanchayanMaity has quit [*.net *.split]
Amanieu has quit [*.net *.split]
seds has quit [*.net *.split]
dne has quit [*.net *.split]
dequbed has quit [*.net *.split]
sknebel has quit [*.net *.split]
causal has quit [*.net *.split]
starblue has quit [*.net *.split]
neceve has quit [*.net *.split]
genpaku has quit [*.net *.split]
WSalmon has quit [*.net *.split]
limpkin has quit [*.net *.split]
Rahix has quit [*.net *.split]
seer has quit [*.net *.split]
Lumpio- has quit [*.net *.split]
mightypork has quit [*.net *.split]
richardeoin has quit [*.net *.split]
agg has quit [*.net *.split]
edm has quit [*.net *.split]
cyrozap has quit [*.net *.split]
cr1901 has quit [*.net *.split]
re_irc has quit [*.net *.split]
creich has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
thomas25 has quit [*.net *.split]
Darius has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
stephe has quit [*.net *.split]
ni has quit [*.net *.split]
emerent has quit [*.net *.split]
Socke has quit [*.net *.split]
inara has quit [*.net *.split]
hifi has quit [*.net *.split]
crabbedhaloablut has quit [*.net *.split]
xnor has quit [*.net *.split]
mattgirv has quit [*.net *.split]
tafama has quit [*.net *.split]
GenTooMan has quit [*.net *.split]
vancz has quit [*.net *.split]
xnor has joined #rust-embedded
mattgirv has joined #rust-embedded
Socke has joined #rust-embedded
inara has joined #rust-embedded
hifi has joined #rust-embedded
ni has joined #rust-embedded
thomas25 has joined #rust-embedded
Darius has joined #rust-embedded
dreamcat4 has joined #rust-embedded
stephe has joined #rust-embedded
cr1901 has joined #rust-embedded
re_irc has joined #rust-embedded
cyrozap has joined #rust-embedded
creich has joined #rust-embedded
edm has joined #rust-embedded
dne has joined #rust-embedded
sknebel has joined #rust-embedded
jasperw has joined #rust-embedded
SanchayanMaity has joined #rust-embedded
Amanieu has joined #rust-embedded
dequbed has joined #rust-embedded
seds has joined #rust-embedded
genpaku has joined #rust-embedded
limpkin has joined #rust-embedded
Rahix has joined #rust-embedded
WSalmon has joined #rust-embedded
seer has joined #rust-embedded
Lumpio- has joined #rust-embedded
mightypork has joined #rust-embedded
agg has joined #rust-embedded
richardeoin has joined #rust-embedded
Shell has joined #rust-embedded
wose has joined #rust-embedded
Foxyloxy has joined #rust-embedded
jr-oss_ has joined #rust-embedded
starblue has joined #rust-embedded
m5zs7k has joined #rust-embedded
neceve has joined #rust-embedded
emerent has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
causal has joined #rust-embedded
vancz has joined #rust-embedded
GenTooMan has joined #rust-embedded
tafama has joined #rust-embedded
tafama has quit [*.net *.split]
GenTooMan has quit [*.net *.split]
vancz has quit [*.net *.split]
Shell has quit [*.net *.split]
wose has quit [*.net *.split]
jr-oss_ has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
sknebel has quit [*.net *.split]
jasperw has quit [*.net *.split]
dne has quit [*.net *.split]
SanchayanMaity has quit [*.net *.split]
Amanieu has quit [*.net *.split]
seds has quit [*.net *.split]
dequbed has quit [*.net *.split]
causal has quit [*.net *.split]
starblue has quit [*.net *.split]
neceve has quit [*.net *.split]
WSalmon has quit [*.net *.split]
genpaku has quit [*.net *.split]
Rahix has quit [*.net *.split]
limpkin has quit [*.net *.split]
seer has quit [*.net *.split]
Lumpio- has quit [*.net *.split]
mightypork has quit [*.net *.split]
richardeoin has quit [*.net *.split]
agg has quit [*.net *.split]
cyrozap has quit [*.net *.split]
edm has quit [*.net *.split]
cr1901 has quit [*.net *.split]
re_irc has quit [*.net *.split]
creich has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
thomas25 has quit [*.net *.split]
Darius has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
stephe has quit [*.net *.split]
ni has quit [*.net *.split]
emerent has quit [*.net *.split]
Socke has quit [*.net *.split]
inara has quit [*.net *.split]
hifi has quit [*.net *.split]
crabbedhaloablut has quit [*.net *.split]
xnor has quit [*.net *.split]
mattgirv has quit [*.net *.split]
mattgirv has joined #rust-embedded
Socke has joined #rust-embedded
ni has joined #rust-embedded
dreamcat4 has joined #rust-embedded
Darius has joined #rust-embedded
re_irc has joined #rust-embedded
creich has joined #rust-embedded
cyrozap has joined #rust-embedded
edm has joined #rust-embedded
jasperw has joined #rust-embedded
sknebel has joined #rust-embedded
dne has joined #rust-embedded
SanchayanMaity has joined #rust-embedded
Amanieu has joined #rust-embedded
seds has joined #rust-embedded
dequbed has joined #rust-embedded
WSalmon has joined #rust-embedded
genpaku has joined #rust-embedded
Rahix has joined #rust-embedded
seer has joined #rust-embedded
limpkin has joined #rust-embedded
Lumpio- has joined #rust-embedded
mightypork has joined #rust-embedded
xnor has joined #rust-embedded
cr1901 has joined #rust-embedded
stephe has joined #rust-embedded
hifi has joined #rust-embedded
inara has joined #rust-embedded
thomas25 has joined #rust-embedded
richardeoin has joined #rust-embedded
Shell has joined #rust-embedded
neceve has joined #rust-embedded
tafama has joined #rust-embedded
GenTooMan has joined #rust-embedded
jr-oss_ has joined #rust-embedded
wose has joined #rust-embedded
agg has joined #rust-embedded
causal has joined #rust-embedded
starblue has joined #rust-embedded
Foxyloxy has joined #rust-embedded
emerent has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
vancz has joined #rust-embedded
Shell has quit [*.net *.split]
wose has quit [*.net *.split]
jr-oss_ has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
sknebel has quit [*.net *.split]
jasperw has quit [*.net *.split]
dne has quit [*.net *.split]
SanchayanMaity has quit [*.net *.split]
Amanieu has quit [*.net *.split]
seds has quit [*.net *.split]
dequbed has quit [*.net *.split]
causal has quit [*.net *.split]
neceve has quit [*.net *.split]
starblue has quit [*.net *.split]
genpaku has quit [*.net *.split]
WSalmon has quit [*.net *.split]
Rahix has quit [*.net *.split]
seer has quit [*.net *.split]
Lumpio- has quit [*.net *.split]
mightypork has quit [*.net *.split]
richardeoin has quit [*.net *.split]
limpkin has quit [*.net *.split]
agg has quit [*.net *.split]
cyrozap has quit [*.net *.split]
edm has quit [*.net *.split]
cr1901 has quit [*.net *.split]
re_irc has quit [*.net *.split]
creich has quit [*.net *.split]
thomas25 has quit [*.net *.split]
Darius has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
stephe has quit [*.net *.split]
ni has quit [*.net *.split]
emerent has quit [*.net *.split]
Socke has quit [*.net *.split]
inara has quit [*.net *.split]
hifi has quit [*.net *.split]
crabbedhaloablut has quit [*.net *.split]
xnor has quit [*.net *.split]
mattgirv has quit [*.net *.split]
Foxyloxy has joined #rust-embedded
jr-oss_ has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
SanchayanMaity has joined #rust-embedded
Amanieu has joined #rust-embedded
emerent has joined #rust-embedded
starblue has joined #rust-embedded
neceve has joined #rust-embedded
wose has joined #rust-embedded
Shell has joined #rust-embedded
richardeoin has joined #rust-embedded
mightypork has joined #rust-embedded
limpkin has joined #rust-embedded
Rahix has joined #rust-embedded
genpaku has joined #rust-embedded
Lumpio- has joined #rust-embedded
seer has joined #rust-embedded
agg has joined #rust-embedded
WSalmon has joined #rust-embedded
dequbed has joined #rust-embedded
seds has joined #rust-embedded
dne has joined #rust-embedded
m5zs7k has joined #rust-embedded
sknebel has joined #rust-embedded
jasperw has joined #rust-embedded
cyrozap has joined #rust-embedded
edm has joined #rust-embedded
re_irc has joined #rust-embedded
creich has joined #rust-embedded
cr1901 has joined #rust-embedded
stephe has joined #rust-embedded
causal has joined #rust-embedded
dreamcat4 has joined #rust-embedded
thomas25 has joined #rust-embedded
Darius has joined #rust-embedded
ni has joined #rust-embedded
hifi has joined #rust-embedded
inara has joined #rust-embedded
Socke has joined #rust-embedded
xnor has joined #rust-embedded
mattgirv has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
thomas25 has left #rust-embedded [Konversation terminated!]
thomas25 has joined #rust-embedded
cr1901_ has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
thomas25 has left #rust-embedded [Konversation terminated!]
thomas25 has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
Foxyloxy has quit [Ping timeout: 252 seconds]
Foxyloxy has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
genpaku has quit [Read error: Connection reset by peer]
genpaku has joined #rust-embedded
thomas25 has quit [Ping timeout: 268 seconds]
thomas25 has joined #rust-embedded
causal has quit [Quit: WeeChat 3.6]
neceve has quit [Ping timeout: 268 seconds]
thomas25 has left #rust-embedded [Konversation terminated!]
thomas25 has joined #rust-embedded
cr1901_ is now known as cr1901
<re_irc> <paper101> Hi, im new to embedded / raspberry pi development, I was just wondering what is the best way to halt my program, is it ok to plug out my pico or am I able to halt it from the terminal if, for example it was in an infinite blinky loop?
<re_irc> <K900> Cutting the power is fine
<re_irc> <K900> You can also tell the controller to halt through a debugger
<re_irc> <ryan-summers> You can essentially do anything you want with the device. Depends on the system if halting it in certain states can cause damage, but if you're using a pico or something, I highly doubt there's any risk
<re_irc> <ryan-summers> For clarity -I mean if your embedded system is specifically controlling something else that could cause damage
<re_irc> <K900> Most modern MCUs are very resilient, as long as your software handles it fine
<re_irc> <K900> Which in this case it does because it's not actually doing anything that may need to be preserved across resets
<re_irc> <paper101> Ok thanks very much
<re_irc> <Mehmet Ali> adamgreig: Ah, this was enabled a few months ago, but had a lot of false positives. Does it seem to be reliable now?
<re_irc> <Mehmet Ali> We have stumbled on something today with zerocopy.
<re_irc> We wanted to Deserialize a
<re_irc> <Mehmet Ali> +[u8;8] to an [f32;2]
<re_irc> <Mehmet Ali> And it damned me that we weren't able to come up with a simple way to do that.
<re_irc> <Mehmet Ali> So zerocopy has this trait FromBytes
<re_irc> <Mehmet Ali> and it implements read_from()
<re_irc> <Mehmet Ali> natively I thought that it should be used like:
<re_irc> <Mehmet Ali> "f32_2_array.read_from(&u8_8_array)"
<re_irc> <Mehmet Ali> or after reading the docs maybe as
<re_irc> <Mehmet Ali> "[f32;2]::read_from(&u8bytes);"
<re_irc> <Mehmet Ali> but no avail.
<re_irc> <jannic> use zerocopy::*;
<re_irc> fn main() {
<re_irc> let from = [1u8, 2, 3, 4, 5, 6, 7, 8];
<re_irc> let to: [f32;2] = FromBytes::read_from(&from[..]).unwrap();
<re_irc> <Mehmet Ali> Thanks a lot, jannic
<re_irc> <Mehmet Ali> Will pass this on.
explore has joined #rust-embedded
silvio has joined #rust-embedded
<re_irc> <Mehmet Ali> I thought that a reference to array is implicitly a slice.
<re_irc> Is it possible that some traits make me get away with that?
<re_irc> <GrantM11235> You can coerce an a array into a slice
silvio has quit [Quit: Client closed]
Guest7734 has joined #rust-embedded
Guest7734 has quit [Client Quit]
silvio has joined #rust-embedded
dnm has joined #rust-embedded
silvio has quit [Quit: Client closed]
silvio has joined #rust-embedded
silvio has quit [Client Quit]
dc740 has joined #rust-embedded
neceve has joined #rust-embedded
explore has quit [Quit: Connection closed for inactivity]
dc740 has quit [Remote host closed the connection]
dc740 has joined #rust-embedded
neceve has quit [Quit: ZNC - https://znc.in]
neceve has joined #rust-embedded
<re_irc> <alex (@alex:matrix.sempto.net)> I'm having some trouble navigating the type system. I'd like to have a struct that can contain GPIO pins.
<re_irc> But each pin has its own type. For exapmple Gpio0 is a different type from Gpio1. Not to mention the different possible configurations, like push-pull outputs or open drain outputs
<re_irc> <alex (@alex:matrix.sempto.net)> I'm using a rp_pico BSP if it matters.
<re_irc> <alex (@alex:matrix.sempto.net)> Also not sure if I'm explaining the problem well...
<re_irc> <alex (@alex:matrix.sempto.net)> Looks like this might work, thanks!
<re_irc> <alex (@alex:matrix.sempto.net)> Though it looks like I'm going to run into a similar issue once I try to also put a PIO state machine into the said struct
<re_irc> <alex (@alex:matrix.sempto.net)> I suspect I'll have to use dynamic dispatch for that as well?
<re_irc> <9names (@9names:matrix.org)> What are you building? It sounds interesting.
causal has joined #rust-embedded