move pins->map up in block list

This commit is contained in:
Peli de Halleux
2016-05-24 21:39:57 -07:00
parent d8c2d697b1
commit 1c8fa5eab6
3 changed files with 7 additions and 7 deletions

View File

@ -128,7 +128,7 @@ namespace pins {
* @param name analog pin to set period to
* @param micros period in micro seconds. eg:20000
*/
//% help=pins/analog-set-period weight=23
//% help=pins/analog-set-period weight=23 blockGap=8
//% blockId=device_set_analog_period block="analog set period|pin %pin|to (µs)%micros"
void analogSetPeriod(AnalogPin name, int micros) {
PINOP(setAnalogPeriodUs(micros));
@ -148,10 +148,10 @@ namespace pins {
}
/**
* Gets the duration of the last pulse in micro-seconds. This function should be called from a ``onPulse`` handler.
* Gets the duration of the last pulse in micro-seconds. This function should be called from a ``onPulsed`` handler.
*/
//% help=pins/pulse-micros
//% blockId=pins_pulse_duration block="pulse duration (us)"
//% blockId=pins_pulse_duration block="pulse duration (µs)"
//% weight=21
int pulseDuration() {
return pxt::lastEvent.timestamp;