Pin.DRIVE_2 #16067
Unanswered
sk8board
asked this question in
RP2040 / Pico
Pin.DRIVE_2
#16067
Replies: 2 comments
-
I don't see anything in the code (https://github.com/micropython/micropython/blob/master/ports/rp2/machine_pin.c), so the default value should apply: 0x01 -> 4mA |
Beta Was this translation helpful? Give feedback.
0 replies
-
But I think you can change it after you created the Pin, by writing in the matching register, using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The RP2040 Datasheet shows a GPIO pin can be set for different drive current (2mA, 4mA, 8mA, and 12mA).
The MicroPython documentation shows
machine.Pin.DRIVE_x
is dependent upon the port.https://docs.micropython.org/en/latest/library/machine.Pin.html#machine-pin
I noticed the following code received the following error.
Does this mean the
DRIVE_x
attribute is not implemented in the rp2 port?If so, what is the default DRIVE setting for the rp2 port?
Beta Was this translation helpful? Give feedback.
All reactions