diff --git a/docs/reference/pins.md b/docs/reference/pins.md index 7fece8ad..da664a89 100644 --- a/docs/reference/pins.md +++ b/docs/reference/pins.md @@ -17,6 +17,7 @@ pins.servoWritePin(AnalogPin.P0, 180); pins.servoSetPulse(AnalogPin.P0, 1500); pins.i2cReadNumber(0, NumberFormat.Int8LE); pins.i2cWriteNumber(0, 0, NumberFormat.Int8LE); +pins.setPull(DigitalPin.P0, PinPullMode.PullDown); pins.analogPitch(0, 0); pins.analogSetPitchPin(AnalogPin.P0); ``` diff --git a/libs/microbit/_locales/microbit-strings.json b/libs/microbit/_locales/microbit-strings.json index 4e362f31..90514785 100644 --- a/libs/microbit/_locales/microbit-strings.json +++ b/libs/microbit/_locales/microbit-strings.json @@ -81,6 +81,7 @@ "pins.pulseDuration": "Gets the duration of the last pulse in micro-seconds. This function should be called from a ``onPulsed`` handler.", "pins.servoSetPulse": "Configures this IO pin as an analog/pwm output, configures the period to be 20 ms, and sets the pulse width, based on the value it is given **microseconds** or `1/1000` milliseconds.", "pins.servoWritePin": "Writes a value to the servo, controlling the shaft accordingly. On a standard servo, this will set the angle of the shaft (in degrees), moving the shaft to that orientation. On a continuous rotation servo, this will set the speed of the servo (with ``0`` being full-speed in one direction, ``180`` being full speed in the other, and a value near ``90`` being no movement).", + "pins.setPull": "Configures the pull of this pin.", "serial": "Reading and writing data over a serial connection.", "serial.readLine": "Reads a line of text from the serial port.", "serial.redirect": "Dynamically configuring the serial instance to use pins other than USBTX and USBRX.",