Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5251

MicroPython • Re: PicoW MicroPython project: I added a bunch of debug lines to trace a hang and it somehow fixed my crashes

$
0
0
Hi all,

Sorry for the very late reply. I have been travelling on a job and just got back. Thanks for the great replies. I'll get onto trying all this great advice as soon as I can.

@SirFico: thanks for pulling out some hardware to play with my problem. I really appreciate it. I look forward to looking at your script. Thanks for the lib!

The code I posted is the result of a lot of contorted troubleshooting. Initially it wasn't so bad, but after many iterations of chasing various bugs it's gotten gross.

I had an earlier problem with the SHT45 sensors that I never really figured out. I didn't have a multiplexer handy so I wired them to different GPIO pairs, figuring that they should individually be addressable. It seemed that Claude did a decent job of coding the scanning, but I noticed that sensors sharing the same I2C0/I2C1 were crosstalking somehow. We (Claude and I) bashed our brains on it awhile until this code vomited out. I'll look through the revision history if we started closer to what you suggested. It's quite possible that we never got our initializing correct which resulted in this terrible terrible fork which turned out to work.

Everyone: thank you again for your replies. I look forward to crunching through all your thoughts.

AI is somehow really excellent and at the same time really not. Still I'm impressed that it carried me this far. This is my first real coding project since playing with a Motorola 68k and some Parallax STAMP stuff.

Statistics: Posted by JoeBobby — Wed Dec 04, 2024 10:57 am



Viewing all articles
Browse latest Browse all 5251

Trending Articles