Skip to content

Commit 1145a07

Browse files
committed
Change references (in comments) of pyb.GPIO to be pyb.Pin
The documentation at http://micropython.org/doc/module/pyb/ExtInt should also be updated.
1 parent fa2e701 commit 1145a07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stmhal/extint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
///
5757
/// Note: ExtInt will automatically configure the gpio line as an input.
5858
///
59-
/// extint = pyb.ExtInt(pin, pyb.ExtInt.IRQ_FALLING, pyb.GPIO.PULL_UP, callback)
59+
/// extint = pyb.ExtInt(pin, pyb.ExtInt.IRQ_FALLING, pyb.Pin.PULL_UP, callback)
6060
///
6161
/// Now every time a falling edge is seen on the X1 pin, the callback will be
6262
/// called. Caution: mechanical pushbuttons have "bounce" and pushing or
@@ -81,7 +81,7 @@
8181
/// Only the IRQ_xxx modes have been tested. The EVT_xxx modes have
8282
/// something to do with sleep mode and the WFE instruction.
8383
///
84-
/// Valid pull values are pyb.GPIO.PULL_UP, pyb.GPIO.PULL_DOWN, pyb.GPIO.PULL_NONE.
84+
/// Valid pull values are pyb.Pin.PULL_UP, pyb.Pin.PULL_DOWN, pyb.Pin.PULL_NONE.
8585
///
8686
/// There is also a C API, so that drivers which require EXTI interrupt lines
8787
/// can also use this code. See extint.h for the available functions and

0 commit comments

Comments
 (0)