Merge pull request #173 from gingemonster/master
fixing more help broken links
This commit is contained in:
commit
dd94442555
@ -284,7 +284,7 @@ namespace input {
|
|||||||
* Sets the accelerometer sample range in gravities.
|
* Sets the accelerometer sample range in gravities.
|
||||||
* @param range a value describe the maximum strengh of acceleration measured
|
* @param range a value describe the maximum strengh of acceleration measured
|
||||||
*/
|
*/
|
||||||
//% help=input/set-accelerator-range
|
//% help=input/set-accelerometer-range
|
||||||
//% blockId=device_set_accelerometer_range block="set accelerometer|range %range" icon="\uf135"
|
//% blockId=device_set_accelerometer_range block="set accelerometer|range %range" icon="\uf135"
|
||||||
//% weight=5
|
//% weight=5
|
||||||
void setAccelerometerRange(AcceleratorRange range) {
|
void setAccelerometerRange(AcceleratorRange range) {
|
||||||
|
@ -159,7 +159,7 @@ namespace pins {
|
|||||||
/**
|
/**
|
||||||
* Gets the duration of the last pulse in micro-seconds. This function should be called from a ``onPulsed`` handler.
|
* Gets the duration of the last pulse in micro-seconds. This function should be called from a ``onPulsed`` handler.
|
||||||
*/
|
*/
|
||||||
//% help=pins/pulse-micros
|
//% help=pins/pulse-duration
|
||||||
//% blockId=pins_pulse_duration block="pulse duration (µs)"
|
//% blockId=pins_pulse_duration block="pulse duration (µs)"
|
||||||
//% weight=21
|
//% weight=21
|
||||||
int pulseDuration() {
|
int pulseDuration() {
|
||||||
|
@ -61,11 +61,11 @@ namespace serial {
|
|||||||
* @param baud the new baud rate. eg: 115200
|
* @param baud the new baud rate. eg: 115200
|
||||||
*/
|
*/
|
||||||
//% weight=10
|
//% weight=10
|
||||||
//% help=serial/redirect
|
//% help=serial/redirect-to
|
||||||
//% blockId=serial_redirect block="serial redirect to|TX %tx|RX %rx|at baud rate %rate"
|
//% blockId=serial_redirect block="serial redirect to|TX %tx|RX %rx|at baud rate %rate"
|
||||||
//% blockExternalInputs=1
|
//% blockExternalInputs=1
|
||||||
void redirect(SerialPin tx, SerialPin rx, BaudRate rate) {
|
void redirect(SerialPin tx, SerialPin rx, BaudRate rate) {
|
||||||
uBit.serial.redirect((PinName)tx, (PinName)rx);
|
uBit.serial.redirect((PinName)tx, (PinName)rx);
|
||||||
uBit.serial.baud((int)rate);
|
uBit.serial.baud((int)rate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user