Reading status of pin D3 turns the pin ON
Posted: Mon Jan 29, 2018 4:11 pm
I am facing the following problem: Pin D3 is set low with istruction "io(po,0,0)" and it does switch to low.
Then I want to read the pin status using instruction "VV = io(pi,0)" and VV is equal to 1 and the pin is ON as well. Readind status of pin D7 the pin remains stable and the logic value reported by "io(pi,13)" is correct.
At the moment I must avoid to read status of the pin D3 to avoid to turn on the pin when it should not.
Then I want to read the pin status using instruction "VV = io(pi,0)" and VV is equal to 1 and the pin is ON as well. Readind status of pin D7 the pin remains stable and the logic value reported by "io(pi,13)" is correct.
At the moment I must avoid to read status of the pin D3 to avoid to turn on the pin when it should not.