@@ -21,21 +21,20 @@ STATIC const char *help_text =
2121" pyb.switch(f) -- call the given function when the switch is pressed\n"
2222" pyb.Led(n) -- create Led object for LED n (n=1,2,3,4)\n"
2323" Led methods: on(), off(), toggle(), intensity(<n>)\n"
24+ " pyb.Pin(pin) -- get a pin\n"
25+ " pyb.Pin(pin, m, [p]) -- get a pin and configure it for IO mode m, pull mode p\n"
26+ " Pin methods: value([v]), high(), low()\n"
2427" pyb.Servo(n) -- create Servo object for servo n (n=1,2,3,4)\n"
2528" Servo methods: calibrate(...), pulse_width([p]), angle([x, [t]]), speed([x, [t]])\n"
2629" pyb.Accel() -- create an Accelerometer object\n"
2730" Accelerometer methods: x(), y(), z(), tilt(), filtered_xyz()\n"
2831" pyb.rng() -- get a 30-bit hardware random number\n"
29- " pyb.gpio_in(port, [m]) -- set IO port to input, mode m\n"
30- " pyb.gpio_out(port, [m]) -- set IO port to output, mode m\n"
31- " pyb.gpio(port) -- get digital port value\n"
32- " pyb.gpio(port, val) -- set digital port value, True or False, 1 or 0\n"
3332" pyb.ADC(port) -- make an analog port object\n"
3433" ADC methods: read()\n"
3534"\n"
3635"Ports are numbered X1-X12, X17-X22, Y1-Y12, or by their MCU name\n"
37- "Port input modes are: pyb.PULL_NONE , pyb.PULL_UP , pyb.PULL_DOWN \n"
38- "Port output modes are: pyb.PUSH_PULL , pyb.OPEN_DRAIN \n"
36+ "Port IO modes are: pyb.Pin.IN , pyb.Pin.OUT_PP , pyb.Pin.OUT_OD \n"
37+ "Port pull modes are: pyb.Pin.PULL_NONE , pyb.Pin.PULL_UP, pyb.Pin.PULL_DOWN \n"
3938"\n"
4039"Control commands:\n"
4140" CTRL-A -- on a blank line, enter raw REPL mode\n"
0 commit comments