Skip to content

Commit

Permalink
add rgb led brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Nov 21, 2023
1 parent ce8dfb4 commit e891234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/core-mini-codal/_locales/core-mini-codal-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"WaveShape.Sine|block": "sine",
"WaveShape.Square|block": "square",
"WaveShape.Triangle|block": "triangle",
"basic.setLedColors|block": "set LED to %color1=colorNumberPicker %color2=colorNumberPicker %color3=colorNumberPicker",
"basic.setLedColors|block": "set LED to %color1=colorNumberPicker %color2=colorNumberPicker %color3=colorNumberPicker || brightness %brightness",
"basic|block": "basic",
"input.logoIsPressed|block": "logo is pressed",
"input.onLogoEvent|block": "on logo $action",
Expand Down
2 changes: 1 addition & 1 deletion libs/core-mini-codal/rgbled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace basic {
*/
//% help=basic/set-led-colors
//% blockId=device_set_led_colors
//% block="set LED to %color1=colorNumberPicker %color2=colorNumberPicker %color3=colorNumberPicker"
//% block="set LED to %color1=colorNumberPicker %color2=colorNumberPicker %color3=colorNumberPicker || brightness %brightness"
//% color1.defl=0xff0000
//% color2.defl=0xff0000
//% color3.defl=0xff0000
Expand Down

0 comments on commit e891234

Please sign in to comment.