From 90b09cb204f0d9cda135e6d039e4e5290c1d98bb Mon Sep 17 00:00:00 2001 From: KroxCZ Date: Mon, 19 Aug 2024 18:53:26 +0200 Subject: [PATCH 1/4] Create neopixel-strings.json --- _locales/cs/neopixel-strings.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 _locales/cs/neopixel-strings.json diff --git a/_locales/cs/neopixel-strings.json b/_locales/cs/neopixel-strings.json new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/_locales/cs/neopixel-strings.json @@ -0,0 +1 @@ + From 9df4f0716c1321b7fc7def1ee917ec51ecd0b274 Mon Sep 17 00:00:00 2001 From: KroxCZ Date: Mon, 19 Aug 2024 18:54:45 +0200 Subject: [PATCH 2/4] Update neopixel-strings.json --- _locales/cs/neopixel-strings.json | 38 ++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/_locales/cs/neopixel-strings.json b/_locales/cs/neopixel-strings.json index 8b13789..b0ff1f3 100644 --- a/_locales/cs/neopixel-strings.json +++ b/_locales/cs/neopixel-strings.json @@ -1 +1,37 @@ - +{ + "NeoPixelColors.Black|block": "černá", + "NeoPixelColors.Blue|block": "modrá", + "NeoPixelColors.Green|block": "zelená", + "NeoPixelColors.Indigo|block": "zelenomodrá", + "NeoPixelColors.Orange|block": "oranžová", + "NeoPixelColors.Purple|block": "růžová", + "NeoPixelColors.Red|block": "červená", + "NeoPixelColors.Violet|block": "fialová", + "NeoPixelColors.White|block": "bílá", + "NeoPixelColors.Yellow|block": "žlutá", + "NeoPixelMode.RGBW|block": "RGB+W", + "NeoPixelMode.RGB_RGB|block": "RGB (RGB mód)", + "NeoPixelMode.RGB|block": "RGB (GRB mód)", + "neopixel.Strip.clear|block": "%strip|vymaž", + "neopixel.Strip.easeBrightness|block": "%strip|zmírni jas", + "neopixel.Strip.length|block": "%strip|délka", + "neopixel.Strip.power|block": "%strip|proud (mA)", + "neopixel.Strip.range|block": "%strip|rozsah %start|z %length|LED", + "neopixel.Strip.rotate|block": "%strip|posuň pixel o %offset", + "neopixel.Strip.setBrightness|block": "%strip|nastav jas %brightness", + "neopixel.Strip.setMatrixColor|block": "%strip|nastav matici barev x %x|y %y|na %rgb=neopixel_colors", + "neopixel.Strip.setMatrixWidth|block": "%strip|nastav šířku matice %width", + "neopixel.Strip.setPixelColor|block": "%strip|nastav barvu pixelu %pixeloffset|na %rgb=neopixel_colors", + "neopixel.Strip.setPixelWhiteLED|block": "%strip|nastav bílý LED pixel od %pixeloffset|do %white", + "neopixel.Strip.shift|block": "%strip|posuň pixely o %offset", + "neopixel.Strip.showBarGraph|block": "%strip|ukaž čárový graf od %value|do %high", + "neopixel.Strip.showColor|block": "%strip|ukaž barvu %rgb=neopixel_colors", + "neopixel.Strip.showRainbow|block": "%strip|ukaž duhu od %startHue|do %endHue", + "neopixel.Strip.show|block": "%strip|ukaž", + "neopixel.colors|block": "%color", + "neopixel.create|block": "NeoPixel na pinu %pin|pásek s %numleds|ks LED v módu %mode", + "neopixel.hsl|block": "odstín %h|saturace %s|jas %l", + "neopixel.rgb|block": "červená %red|zelená %green|modrá %blue", + "neopixel|block": "neopixel", + "{id:category}Neopixel": "Neopixel" +} From e5e630ca6567bcdab22222e6bce8fad68319219f Mon Sep 17 00:00:00 2001 From: KroxCZ Date: Mon, 19 Aug 2024 18:55:35 +0200 Subject: [PATCH 3/4] Update pxt.json --- pxt.json | 1 + 1 file changed, 1 insertion(+) diff --git a/pxt.json b/pxt.json index c1c2709..ea128c2 100644 --- a/pxt.json +++ b/pxt.json @@ -10,6 +10,7 @@ "files": [ "README.md", "neopixel.ts", + "_locales/cs/neopixel-strings.json", "_locales/ja/neopixel-strings.json", "_locales/de/neopixel-strings.json", "_locales/de/neopixel-jsdoc-strings.json", From 6b6e8a54a53258f58be34e7cae8c093d3852fd62 Mon Sep 17 00:00:00 2001 From: KroxCZ Date: Thu, 3 Oct 2024 05:47:01 +0200 Subject: [PATCH 4/4] Add files via upload --- _locales/cs/neopixel-jsdoc-strings.json | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 _locales/cs/neopixel-jsdoc-strings.json diff --git a/_locales/cs/neopixel-jsdoc-strings.json b/_locales/cs/neopixel-jsdoc-strings.json new file mode 100644 index 0000000..4b9073a --- /dev/null +++ b/_locales/cs/neopixel-jsdoc-strings.json @@ -0,0 +1,53 @@ +{ + "NeoPixelColors": "Well known colors for a NeoPixel strip", + "NeoPixelMode": "Different modes for RGB or RGB+W NeoPixel strips", + "neopixel": "Functions to operate NeoPixel strips.", + "neopixel.Strip": "A NeoPixel strip", + "neopixel.Strip.clear": "Turn off all LEDs.\nYou need to call ``show`` to make the changes visible.", + "neopixel.Strip.easeBrightness": "Apply brightness to current colors using a quadratic easing function.", + "neopixel.Strip.length": "Gets the number of pixels declared on the strip", + "neopixel.Strip.power": "Estimates the electrical current (mA) consumed by the current light configuration.", + "neopixel.Strip.range": "Create a range of LEDs.", + "neopixel.Strip.range|param|length": "number of LEDs in the range. eg: 4", + "neopixel.Strip.range|param|start": "offset in the LED strip to start the range", + "neopixel.Strip.rotate": "Rotate LEDs forward.\nYou need to call ``show`` to make the changes visible.", + "neopixel.Strip.rotate|param|offset": "number of pixels to rotate forward, eg: 1", + "neopixel.Strip.setBrightness": "Set the brightness of the strip. This flag only applies to future operation.", + "neopixel.Strip.setBrightness|param|brightness": "a measure of LED brightness in 0-255. eg: 255", + "neopixel.Strip.setMatrixColor": "Set LED to a given color (range 0-255 for r, g, b) in a matrix shaped strip \nYou need to call ``show`` to make the changes visible.", + "neopixel.Strip.setMatrixColor|param|rgb": "RGB color of the LED", + "neopixel.Strip.setMatrixColor|param|x": "horizontal position", + "neopixel.Strip.setMatrixColor|param|y": "horizontal position", + "neopixel.Strip.setMatrixWidth": "Sets the number of pixels in a matrix shaped strip", + "neopixel.Strip.setMatrixWidth|param|width": "number of pixels in a row", + "neopixel.Strip.setPin": "Set the pin where the neopixel is connected, defaults to P0.", + "neopixel.Strip.setPixelColor": "Set LED to a given color (range 0-255 for r, g, b). \nYou need to call ``show`` to make the changes visible.", + "neopixel.Strip.setPixelColor|param|pixeloffset": "position of the NeoPixel in the strip", + "neopixel.Strip.setPixelColor|param|rgb": "RGB color of the LED", + "neopixel.Strip.setPixelWhiteLED": "For NeoPixels with RGB+W LEDs, set the white LED brightness. This only works for RGB+W NeoPixels.", + "neopixel.Strip.setPixelWhiteLED|param|pixeloffset": "position of the LED in the strip", + "neopixel.Strip.setPixelWhiteLED|param|white": "brightness of the white LED", + "neopixel.Strip.shift": "Shift LEDs forward and clear with zeros.\nYou need to call ``show`` to make the changes visible.", + "neopixel.Strip.shift|param|offset": "number of pixels to shift forward, eg: 1", + "neopixel.Strip.show": "Send all the changes to the strip.", + "neopixel.Strip.showBarGraph": "Displays a vertical bar graph based on the `value` and `high` value.\nIf `high` is 0, the chart gets adjusted automatically.", + "neopixel.Strip.showBarGraph|param|high": "maximum value, eg: 255", + "neopixel.Strip.showBarGraph|param|value": "current value to plot", + "neopixel.Strip.showColor": "Shows all LEDs to a given color (range 0-255 for r, g, b).", + "neopixel.Strip.showColor|param|rgb": "RGB color of the LED", + "neopixel.Strip.showRainbow": "Shows a rainbow pattern on all LEDs.", + "neopixel.Strip.showRainbow|param|endHue": "the end hue value for the rainbow, eg: 360", + "neopixel.Strip.showRainbow|param|startHue": "the start hue value for the rainbow, eg: 1", + "neopixel.colors": "Gets the RGB value of a known color", + "neopixel.create": "Create a new NeoPixel driver for `numleds` LEDs.", + "neopixel.create|param|numleds": "number of leds in the strip, eg: 24,30,60,64", + "neopixel.create|param|pin": "the pin where the neopixel is connected.", + "neopixel.hsl": "Converts a hue saturation luminosity value into a RGB color", + "neopixel.hsl|param|h": "hue from 0 to 360", + "neopixel.hsl|param|l": "luminosity from 0 to 99", + "neopixel.hsl|param|s": "saturation from 0 to 99", + "neopixel.rgb": "Converts red, green, blue channels into a RGB color", + "neopixel.rgb|param|blue": "value of the blue channel between 0 and 255. eg: 255", + "neopixel.rgb|param|green": "value of the green channel between 0 and 255. eg: 255", + "neopixel.rgb|param|red": "value of the red channel between 0 and 255. eg: 255" +} \ No newline at end of file