class Pin – control I/O pins (Drive level)

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Van der Graaf
Posts: 2
Joined: Sun Mar 29, 2020 2:38 am

class Pin – control I/O pins (Drive level)

Post by Van der Graaf » 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.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: class Pin – control I/O pins (Drive level)

Post by jimmo » Mon Mar 30, 2020 12:54 am

Hi,

The drive level options are specific to the WiPy (CC3200) port. No other ports use them.

Van der Graaf
Posts: 2
Joined: Sun Mar 29, 2020 2:38 am

Re: class Pin – control I/O pins (Drive level)

Post by Van der Graaf » Mon Mar 30, 2020 5:10 am

Thank you Jimmo,

More clear now... implemented for TI mcu board.

Brice.

Post Reply