Looking at that https://github.com/tjko/pico-1wire-lib/blob/main/src/pico_1wire.c#L119
That appears to be driving the data line hard low before hard high for a write, and hard low before input for a read later, so the E9 issue shouldn't be affecting things.
Which might suggests it's a timing issue.
I was thinking the 4K7 to 3V3 might be a little too high but, if it works for a Pico, I would have expected it to work for a Pico 2. Not being a hard enough pull could explain why the Device ID is reading as zero. Maybe try a 3K3 anyway and see if that improves things.
I would look at the data signal on a scope to see if you can see any differences between Pico and Pico 2.
It could be there is more which needs to be done for initialising the GPIO with a Pico 2 than a Pico and whatever you are using for initialising GPIO isn't doing it.
Statistics: Posted by hippy — Sat Apr 12, 2025 7:11 pm