I agree, but I also enabled I2C and SPI buses (these ones I actually need). By this definition, I should also have problems on these pins likewise.I had turned ON all of the features in the "Raspberry Pi Configuration", Interfaces. Including 1-Wire.
After turning OFF the 1-Wire interface, everything works.
[ ... ]
Could you please explain to me why is this happening?
In general terms: You handed over control of GPIO4 to the Operating System for use as a 1-Wire interface. So you no longer have exclusive control over the behaviour of that Pin. So you should not be surprised by changes to its state that occur asynchronously with your own attempts to control it.
This is definitely a hidden problem.
Statistics: Posted by ajevtic — Sun May 05, 2024 3:14 pm