Skip to content

Commit e4886dd

Browse files
committed
stm32/help: Exclude legacy entries from help, and adjust constant names.
Signed-off-by: Damien George <[email protected]>
1 parent aac8744 commit e4886dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ports/stm32/help.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ const char stm32_help_text[] =
3232
"For online docs please visit http://docs.micropython.org/\n"
3333
"\n"
3434
"Quick overview of commands for the board:\n"
35+
#if MICROPY_PY_PYB_LEGACY
3536
" pyb.info() -- print some general information\n"
3637
" pyb.delay(n) -- wait for n milliseconds\n"
3738
" pyb.millis() -- get number of milliseconds since hard reset\n"
39+
#endif
3840
#if MICROPY_HW_HAS_SWITCH
3941
" pyb.Switch() -- create a switch object\n"
4042
" Switch methods: (), callback(f)\n"
@@ -69,8 +71,8 @@ const char stm32_help_text[] =
6971
#endif
7072
"\n"
7173
"Pins are numbered X1-X12, X17-X22, Y1-Y12, or by their MCU name\n"
72-
"Pin IO modes are: pyb.Pin.IN, pyb.Pin.OUT_PP, pyb.Pin.OUT_OD\n"
73-
"Pin pull modes are: pyb.Pin.PULL_NONE, pyb.Pin.PULL_UP, pyb.Pin.PULL_DOWN\n"
74+
"Pin IO modes are: pyb.Pin.IN, pyb.Pin.OUT, pyb.Pin.OPEN_DRAIN\n"
75+
"Pin pull modes are: None, pyb.Pin.PULL_UP, pyb.Pin.PULL_DOWN\n"
7476
"Additional serial bus objects: pyb.I2C(n), pyb.SPI(n), pyb.UART(n)\n"
7577
"\n"
7678
"Control commands:\n"

0 commit comments

Comments
 (0)