P8 as input always high even if pulled low?
-
Ont he Wipy 2.0 I found out yesterday that if i declare pin 8 as input then pull it low.. it will stay high. is this a known problem?
-
@iotmaker
yes, current firmwarethanks for the report
https://github.com/pycom/pycom-micropython-sigfox/issues/19
-
@livius are you running the up to date firmware on that test?
thanks for checking the issue...
-
@iotmaker
I can confirm this issue
pin P8 is never pulled downif we declare it to
p_in = Pin('P8', mode=Pin.IN, pull=Pin.PULL_DOWN)
it stay high
but work as input pin if i wire it to GND it go to low but after wire is removed it go back to high.
can you report this as issue at:
https://github.com/pycom/pycom-micropython-sigfox/issues
-
@iotmaker
what about with current firmware?
`1.7.2.b1'
i can check it but only in the evening
-
sysname='WiPy', nodename='WiPy', release='1.6.13.b1', version='v1.8.6-607-g9c8a0e9e on 2017-05-01', machine='WiPy with ESP32')
p_in = Pin('P8', mode=Pin.IN, pull=Pin.PULL_UP)...this will measure 3.3v because is pull up
This is supposed to measure a 0 but it still measure 3.3V.
p_in = Pin('P8', mode=Pin.IN, pull=Pin.PULL_DOWN)
-
@iotmaker
What frmware version do you have?os.uname()
and do you mean
p_in = Pin('P8', mode=Pin.IN, pull=Pin.PULL_UP) p_in() -- this is high if you wire it to GND?