diff --git a/libs/core/_locales/core-strings.json b/libs/core/_locales/core-strings.json index 2eff208c..264fced3 100644 --- a/libs/core/_locales/core-strings.json +++ b/libs/core/_locales/core-strings.json @@ -131,6 +131,7 @@ "input.temperature|block": "temperature (°C)", "input|block": "input", "led.brightness|block": "brightness", + "led.enable|block": "led enable %on", "led.plotBarGraph|block": "plot bar graph of %value |up to %high", "led.plot|block": "plot|x %x|y %y", "led.point|block": "point|x %x|y %y", diff --git a/libs/core/led.cpp b/libs/core/led.cpp index a0046c65..3666fe3e 100644 --- a/libs/core/led.cpp +++ b/libs/core/led.cpp @@ -95,7 +95,7 @@ namespace led { /** * Turns on or off the display */ - //% help=led/enable blockId=device_led_enable icon="\uf04d" + //% help=led/enable blockId=device_led_enable block="led enable %on" icon="\uf04d" //% advanced=true parts="ledmatrix" void enable(bool on) { if (on) uBit.display.enable(); diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 5eca9bc8..ea74ac63 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -497,7 +497,7 @@ declare namespace led { /** * Turns on or off the display */ - //% help=led/enable blockId=device_led_enable icon="\uf04d" + //% help=led/enable blockId=device_led_enable block="led enable %on" icon="\uf04d" //% advanced=true parts="ledmatrix" shim=led::enable function enable(on: boolean): void;