From 42a4401f8fd7218adca0856b379d021f9200ad7d Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 7 Aug 2017 11:54:24 -0700 Subject: [PATCH] updated ledBrightness block template --- libs/core/_locales/core-strings.json | 2 +- libs/core/led.cpp | 2 +- libs/core/shims.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/core/_locales/core-strings.json b/libs/core/_locales/core-strings.json index 9640a34b..016bcd1a 100644 --- a/libs/core/_locales/core-strings.json +++ b/libs/core/_locales/core-strings.json @@ -264,7 +264,7 @@ "led.brightness|block": "brightness", "led.enable|block": "led enable %on", "led.plotBarGraph|block": "plot bar graph of %value |up to %high", - "led.plotBrightness|block": "plot|x %x|y %y|value %brightness", + "led.plotBrightness|block": "plot|x %x|y %y|brightness %brightness", "led.plot|block": "plot|x %x|y %y", "led.point|block": "point|x %x|y %y", "led.setBrightness|block": "set brightness %value", diff --git a/libs/core/led.cpp b/libs/core/led.cpp index ea560626..d432b7ee 100644 --- a/libs/core/led.cpp +++ b/libs/core/led.cpp @@ -31,7 +31,7 @@ namespace led { * @param brightness the brightness from 0 (off) to 255 (bright), eg:255 */ //% help=led/plot weight=78 - //% blockId=device_plot_brightness block="plot|x %x|y %y|value %brightness" blockGap=8 + //% blockId=device_plot_brightness block="plot|x %x|y %y|brightness %brightness" blockGap=8 //% parts="ledmatrix" //% x.min=0 x.max=4 y.min=0 y.max=4 brightness.min=0 brightness.max=255 //% advanced=true diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index b9e8c82e..92fd810a 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -457,7 +457,7 @@ declare namespace led { * @param brightness the brightness from 0 (off) to 255 (bright), eg:255 */ //% help=led/plot weight=78 - //% blockId=device_plot_brightness block="plot|x %x|y %y|value %brightness" blockGap=8 + //% blockId=device_plot_brightness block="plot|x %x|y %y|brightness %brightness" blockGap=8 //% parts="ledmatrix" //% x.min=0 x.max=4 y.min=0 y.max=4 brightness.min=0 brightness.max=255 //% advanced=true shim=led::plotBrightness