class Pin – control I/O pins (Drive level)
Posted: Sun Mar 29, 2020 2:56 am
Hi,
I'm new on the forum. I try to set attrute Pin.X_POWER (X: LOW, MED & HIGH) but get this error: type object 'Pin' has no attribute 'X_POWER'. I use latest FW esp32-idf3-20200329-v1.12-317-g688323307.bin on ES-WROOM-32D and try with different pins (2,4 & 22).
Here is sample code:
from machine import Pin
io_22 = Pin(22, Pin.OUT) => Sucess
io_22 = Pin(22, Pin.OUT) , Pin.HIGH_POWER) => Fail
Any advice or some of you have sucessfully contol IO drive level ?
Thank you,
Brice.
I'm new on the forum. I try to set attrute Pin.X_POWER (X: LOW, MED & HIGH) but get this error: type object 'Pin' has no attribute 'X_POWER'. I use latest FW esp32-idf3-20200329-v1.12-317-g688323307.bin on ES-WROOM-32D and try with different pins (2,4 & 22).
Here is sample code:
from machine import Pin
io_22 = Pin(22, Pin.OUT) => Sucess
io_22 = Pin(22, Pin.OUT) , Pin.HIGH_POWER) => Fail
Any advice or some of you have sucessfully contol IO drive level ?
Thank you,
Brice.