Merge pull request #2582 from dhalbert/palette-color-list-tuple
allow tuple or list for Palette color
This commit is contained in:
commit
c10479f2bb
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -1845,7 +1845,7 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -1821,7 +1821,7 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||||
"Last-Translator: Pascal Deneaux\n"
|
"Last-Translator: Pascal Deneaux\n"
|
||||||
"Language-Team: Sebastian Plamauer, Pascal Deneaux\n"
|
"Language-Team: Sebastian Plamauer, Pascal Deneaux\n"
|
||||||
|
@ -1849,8 +1849,8 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr "Farbpuffer muss 3 Bytes (RGB) oder 4 Bytes (RGB + pad byte) sein"
|
msgstr "Farbpuffer muss 3 Bytes (RGB) oder 4 Bytes (RGB + pad byte) sein"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr "Farbpuffer muss ein Puffer oder ein int sein"
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
|
@ -2853,7 +2853,6 @@ msgstr ""
|
||||||
#~ msgid "C-level assert"
|
#~ msgid "C-level assert"
|
||||||
#~ msgstr "C-Level Assert"
|
#~ msgstr "C-Level Assert"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "Can not use dotstar with %s"
|
#~ msgid "Can not use dotstar with %s"
|
||||||
#~ msgstr "Kann dotstar nicht mit %s verwenden"
|
#~ msgstr "Kann dotstar nicht mit %s verwenden"
|
||||||
|
|
||||||
|
@ -3167,17 +3166,18 @@ msgstr ""
|
||||||
#~ "Sie laufen im abgesicherten Modus, was bedeutet, dass etwas Unerwartetes "
|
#~ "Sie laufen im abgesicherten Modus, was bedeutet, dass etwas Unerwartetes "
|
||||||
#~ "passiert ist.\n"
|
#~ "passiert ist.\n"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "buf is too small. need %d bytes"
|
#~ msgid "buf is too small. need %d bytes"
|
||||||
#~ msgstr "buf ist zu klein. brauche %d Bytes"
|
#~ msgstr "buf ist zu klein. brauche %d Bytes"
|
||||||
|
|
||||||
#~ msgid "buffer too long"
|
#~ msgid "buffer too long"
|
||||||
#~ msgstr "Buffer zu lang"
|
#~ msgstr "Buffer zu lang"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
||||||
#~ msgstr "byteorder ist keine Instanz von ByteOrder (%s erhalten)"
|
#~ msgstr "byteorder ist keine Instanz von ByteOrder (%s erhalten)"
|
||||||
|
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "Farbpuffer muss ein Puffer oder ein int sein"
|
||||||
|
|
||||||
#~ msgid "expected a DigitalInOut"
|
#~ msgid "expected a DigitalInOut"
|
||||||
#~ msgstr "erwarte DigitalInOut"
|
#~ msgstr "erwarte DigitalInOut"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -1821,7 +1821,7 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: @sommersoft, @MrCertainly\n"
|
"Language-Team: @sommersoft, @MrCertainly\n"
|
||||||
|
@ -1825,7 +1825,7 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
|
|
14
locale/es.po
14
locale/es.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-08-24 22:56-0500\n"
|
"PO-Revision-Date: 2018-08-24 22:56-0500\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -1850,8 +1850,8 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr "color buffer debe ser 3 bytes (RGB) ó 4 bytes (RGB + pad byte)"
|
msgstr "color buffer debe ser 3 bytes (RGB) ó 4 bytes (RGB + pad byte)"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr "color buffer deber ser un buffer o un int"
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
|
@ -2853,7 +2853,6 @@ msgstr "paso cero"
|
||||||
#~ "Intento de allocation de heap cuando la VM de MicroPython no estaba "
|
#~ "Intento de allocation de heap cuando la VM de MicroPython no estaba "
|
||||||
#~ "corriendo.\n"
|
#~ "corriendo.\n"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "Can not use dotstar with %s"
|
#~ msgid "Can not use dotstar with %s"
|
||||||
#~ msgstr "No se puede usar dotstar con %s"
|
#~ msgstr "No se puede usar dotstar con %s"
|
||||||
|
|
||||||
|
@ -3194,14 +3193,12 @@ msgstr "paso cero"
|
||||||
#~ msgid "bad GATT role"
|
#~ msgid "bad GATT role"
|
||||||
#~ msgstr "mal GATT role"
|
#~ msgstr "mal GATT role"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "buf is too small. need %d bytes"
|
#~ msgid "buf is too small. need %d bytes"
|
||||||
#~ msgstr "buf es demasiado pequeño. necesita %d bytes"
|
#~ msgstr "buf es demasiado pequeño. necesita %d bytes"
|
||||||
|
|
||||||
#~ msgid "buffer too long"
|
#~ msgid "buffer too long"
|
||||||
#~ msgstr "buffer demasiado largo"
|
#~ msgstr "buffer demasiado largo"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
||||||
#~ msgstr "byteorder no es instancia de ByteOrder (encontarmos un %s)"
|
#~ msgstr "byteorder no es instancia de ByteOrder (encontarmos un %s)"
|
||||||
|
|
||||||
|
@ -3223,6 +3220,9 @@ msgstr "paso cero"
|
||||||
#~ msgid "characteristics includes an object that is not a Characteristic"
|
#~ msgid "characteristics includes an object that is not a Characteristic"
|
||||||
#~ msgstr "characteristics incluye un objeto que no es una Characteristica"
|
#~ msgstr "characteristics incluye un objeto que no es una Characteristica"
|
||||||
|
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "color buffer deber ser un buffer o un int"
|
||||||
|
|
||||||
#~ msgid "either pos or kw args are allowed"
|
#~ msgid "either pos or kw args are allowed"
|
||||||
#~ msgstr "ya sea pos o kw args son permitidos"
|
#~ msgstr "ya sea pos o kw args son permitidos"
|
||||||
|
|
||||||
|
@ -3312,11 +3312,9 @@ msgstr "paso cero"
|
||||||
#~ msgid "unknown config param"
|
#~ msgid "unknown config param"
|
||||||
#~ msgstr "parámetro config desconocido"
|
#~ msgstr "parámetro config desconocido"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'float'"
|
#~ msgid "unknown format code '%c' for object of type 'float'"
|
||||||
#~ msgstr "codigo format desconocido '%c' para el typo de objeto 'float'"
|
#~ msgstr "codigo format desconocido '%c' para el typo de objeto 'float'"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'str'"
|
#~ msgid "unknown format code '%c' for object of type 'str'"
|
||||||
#~ msgstr "codigo format desconocido '%c' para objeto de tipo 'str'"
|
#~ msgstr "codigo format desconocido '%c' para objeto de tipo 'str'"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-12-20 22:15-0800\n"
|
"PO-Revision-Date: 2018-12-20 22:15-0800\n"
|
||||||
"Last-Translator: Timothy <me@timothygarcia.ca>\n"
|
"Last-Translator: Timothy <me@timothygarcia.ca>\n"
|
||||||
"Language-Team: fil\n"
|
"Language-Team: fil\n"
|
||||||
|
@ -1861,8 +1861,8 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr "color buffer ay dapat na 3 bytes (RGB) o 4 bytes (RGB + pad byte)"
|
msgstr "color buffer ay dapat na 3 bytes (RGB) o 4 bytes (RGB + pad byte)"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr "color buffer ay dapat buffer or int"
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
|
@ -3176,6 +3176,9 @@ msgstr "zero step"
|
||||||
#~ msgid "can't set STA config"
|
#~ msgid "can't set STA config"
|
||||||
#~ msgstr "hindi makuha ang STA config"
|
#~ msgstr "hindi makuha ang STA config"
|
||||||
|
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "color buffer ay dapat buffer or int"
|
||||||
|
|
||||||
#~ msgid "either pos or kw args are allowed"
|
#~ msgid "either pos or kw args are allowed"
|
||||||
#~ msgstr "pos o kw args ang pinahihintulutan"
|
#~ msgstr "pos o kw args ang pinahihintulutan"
|
||||||
|
|
||||||
|
@ -3254,11 +3257,9 @@ msgstr "zero step"
|
||||||
#~ msgid "unknown config param"
|
#~ msgid "unknown config param"
|
||||||
#~ msgstr "hindi alam na config param"
|
#~ msgstr "hindi alam na config param"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'float'"
|
#~ msgid "unknown format code '%c' for object of type 'float'"
|
||||||
#~ msgstr "hindi alam ang format code '%c' sa object na ang type ay 'float'"
|
#~ msgstr "hindi alam ang format code '%c' sa object na ang type ay 'float'"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'str'"
|
#~ msgid "unknown format code '%c' for object of type 'str'"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "hindi alam ang format ng code na '%c' para sa object ng type ay 'str'"
|
#~ "hindi alam ang format ng code na '%c' para sa object ng type ay 'str'"
|
||||||
|
|
16
locale/fr.po
16
locale/fr.po
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 0.1\n"
|
"Project-Id-Version: 0.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2019-04-14 20:05+0100\n"
|
"PO-Revision-Date: 2019-04-14 20:05+0100\n"
|
||||||
"Last-Translator: Pierrick Couturier <arofarn@arofarn.info>\n"
|
"Last-Translator: Pierrick Couturier <arofarn@arofarn.info>\n"
|
||||||
"Language-Team: fr\n"
|
"Language-Team: fr\n"
|
||||||
|
@ -1884,9 +1884,8 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr "le tampon de couleur doit faire 3 octets (RVB) ou 4 (RVB + pad byte)"
|
msgstr "le tampon de couleur doit faire 3 octets (RVB) ou 4 (RVB + pad byte)"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
#, fuzzy
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgid "color buffer must be a buffer or int"
|
msgstr ""
|
||||||
msgstr "le tampon de couleur doit être un tampon ou un entier 'int'"
|
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
|
@ -2903,7 +2902,6 @@ msgstr "'step' nul"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Tentative d'allocation de tas alors que la VM MicroPython ne tourne pas.\n"
|
#~ "Tentative d'allocation de tas alors que la VM MicroPython ne tourne pas.\n"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "Can not use dotstar with %s"
|
#~ msgid "Can not use dotstar with %s"
|
||||||
#~ msgstr "Impossible d'utiliser 'dotstar' avec %s"
|
#~ msgstr "Impossible d'utiliser 'dotstar' avec %s"
|
||||||
|
|
||||||
|
@ -3253,14 +3251,12 @@ msgstr "'step' nul"
|
||||||
#~ msgid "bad GATT role"
|
#~ msgid "bad GATT role"
|
||||||
#~ msgstr "mauvais rôle GATT"
|
#~ msgstr "mauvais rôle GATT"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "buf is too small. need %d bytes"
|
#~ msgid "buf is too small. need %d bytes"
|
||||||
#~ msgstr "'buf' est trop petit. Besoin de %d octets"
|
#~ msgstr "'buf' est trop petit. Besoin de %d octets"
|
||||||
|
|
||||||
#~ msgid "buffer too long"
|
#~ msgid "buffer too long"
|
||||||
#~ msgstr "tampon trop long"
|
#~ msgstr "tampon trop long"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
||||||
#~ msgstr "'byteorder' n'est pas une instance de ByteOrder (reçu un %s)"
|
#~ msgstr "'byteorder' n'est pas une instance de ByteOrder (reçu un %s)"
|
||||||
|
|
||||||
|
@ -3283,6 +3279,10 @@ msgstr "'step' nul"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "'characteristics' inclut un objet qui n'est pas une 'Characteristic'"
|
#~ "'characteristics' inclut un objet qui n'est pas une 'Characteristic'"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "le tampon de couleur doit être un tampon ou un entier 'int'"
|
||||||
|
|
||||||
#~ msgid "either pos or kw args are allowed"
|
#~ msgid "either pos or kw args are allowed"
|
||||||
#~ msgstr "soit 'pos', soit 'kw' est permis en argument"
|
#~ msgstr "soit 'pos', soit 'kw' est permis en argument"
|
||||||
|
|
||||||
|
@ -3368,11 +3368,9 @@ msgstr "'step' nul"
|
||||||
#~ msgid "unknown config param"
|
#~ msgid "unknown config param"
|
||||||
#~ msgstr "paramètre de config. inconnu"
|
#~ msgstr "paramètre de config. inconnu"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'float'"
|
#~ msgid "unknown format code '%c' for object of type 'float'"
|
||||||
#~ msgstr "code de format '%c' inconnu pour un objet de type 'float'"
|
#~ msgstr "code de format '%c' inconnu pour un objet de type 'float'"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'str'"
|
#~ msgid "unknown format code '%c' for object of type 'str'"
|
||||||
#~ msgstr "code de format '%c' inconnu pour un objet de type 'str'"
|
#~ msgstr "code de format '%c' inconnu pour un objet de type 'str'"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
|
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
|
||||||
"Last-Translator: Enrico Paganin <enrico.paganin@mail.com>\n"
|
"Last-Translator: Enrico Paganin <enrico.paganin@mail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -1862,8 +1862,8 @@ msgstr ""
|
||||||
"il buffer del colore deve esseer di 3 byte (RGB) o 4 byte (RGB + pad byte)"
|
"il buffer del colore deve esseer di 3 byte (RGB) o 4 byte (RGB + pad byte)"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr "il buffer del colore deve essere un buffer o un int"
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
|
@ -2870,7 +2870,6 @@ msgstr "zero step"
|
||||||
#~ msgid "C-level assert"
|
#~ msgid "C-level assert"
|
||||||
#~ msgstr "assert a livello C"
|
#~ msgstr "assert a livello C"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "Can not use dotstar with %s"
|
#~ msgid "Can not use dotstar with %s"
|
||||||
#~ msgstr "dotstar non può essere usato con %s"
|
#~ msgstr "dotstar non può essere usato con %s"
|
||||||
|
|
||||||
|
@ -3166,6 +3165,9 @@ msgstr "zero step"
|
||||||
#~ msgid "can't set STA config"
|
#~ msgid "can't set STA config"
|
||||||
#~ msgstr "impossibile impostare le configurazioni della STA"
|
#~ msgstr "impossibile impostare le configurazioni della STA"
|
||||||
|
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "il buffer del colore deve essere un buffer o un int"
|
||||||
|
|
||||||
#~ msgid "either pos or kw args are allowed"
|
#~ msgid "either pos or kw args are allowed"
|
||||||
#~ msgstr "sono permesse solo gli argomenti pos o kw"
|
#~ msgstr "sono permesse solo gli argomenti pos o kw"
|
||||||
|
|
||||||
|
@ -3241,12 +3243,10 @@ msgstr "zero step"
|
||||||
#~ msgid "unknown config param"
|
#~ msgid "unknown config param"
|
||||||
#~ msgstr "parametro di configurazione sconosciuto"
|
#~ msgstr "parametro di configurazione sconosciuto"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'float'"
|
#~ msgid "unknown format code '%c' for object of type 'float'"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "codice di formattazione '%c' sconosciuto per oggetto di tipo 'float'"
|
#~ "codice di formattazione '%c' sconosciuto per oggetto di tipo 'float'"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'str'"
|
#~ msgid "unknown format code '%c' for object of type 'str'"
|
||||||
#~ msgstr "codice di formattazione '%c' sconosciuto per oggetto di tipo 'str'"
|
#~ msgstr "codice di formattazione '%c' sconosciuto per oggetto di tipo 'str'"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2019-05-06 14:22-0700\n"
|
"PO-Revision-Date: 2019-05-06 14:22-0700\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -1826,7 +1826,7 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
|
|
14
locale/pl.po
14
locale/pl.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2019-03-19 18:37-0700\n"
|
"PO-Revision-Date: 2019-03-19 18:37-0700\n"
|
||||||
"Last-Translator: Radomir Dopieralski <circuitpython@sheep.art.pl>\n"
|
"Last-Translator: Radomir Dopieralski <circuitpython@sheep.art.pl>\n"
|
||||||
"Language-Team: pl\n"
|
"Language-Team: pl\n"
|
||||||
|
@ -1829,8 +1829,8 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr "bufor kolorów musi nieć 3 bajty (RGB) lub 4 bajty (RGB + wypełnienie)"
|
msgstr "bufor kolorów musi nieć 3 bajty (RGB) lub 4 bajty (RGB + wypełnienie)"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr "bufor kolorów musi być typu buffer lub int"
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
|
@ -2816,7 +2816,6 @@ msgstr "zerowy krok"
|
||||||
#~ msgid "Attempted heap allocation when MicroPython VM not running.\n"
|
#~ msgid "Attempted heap allocation when MicroPython VM not running.\n"
|
||||||
#~ msgstr "Próba alokacji pamięci na stercie gdy VM nie działa.\n"
|
#~ msgstr "Próba alokacji pamięci na stercie gdy VM nie działa.\n"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "Can not use dotstar with %s"
|
#~ msgid "Can not use dotstar with %s"
|
||||||
#~ msgstr "Nie można używać dotstar z %s"
|
#~ msgstr "Nie można używać dotstar z %s"
|
||||||
|
|
||||||
|
@ -3035,11 +3034,9 @@ msgstr "zerowy krok"
|
||||||
#~ msgid "bad GATT role"
|
#~ msgid "bad GATT role"
|
||||||
#~ msgstr "zła rola GATT"
|
#~ msgstr "zła rola GATT"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "buf is too small. need %d bytes"
|
#~ msgid "buf is too small. need %d bytes"
|
||||||
#~ msgstr "buf zbyt mały. Wymagane %d bajtów"
|
#~ msgstr "buf zbyt mały. Wymagane %d bajtów"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
||||||
#~ msgstr "byteorder musi być typu ByteOrder (jest %s)"
|
#~ msgstr "byteorder musi być typu ByteOrder (jest %s)"
|
||||||
|
|
||||||
|
@ -3047,6 +3044,9 @@ msgstr "zerowy krok"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "charakterystyki zawierają obiekt, który nie jest typu Characteristic"
|
#~ "charakterystyki zawierają obiekt, który nie jest typu Characteristic"
|
||||||
|
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "bufor kolorów musi być typu buffer lub int"
|
||||||
|
|
||||||
#~ msgid "interval not in range 0.0020 to 10.24"
|
#~ msgid "interval not in range 0.0020 to 10.24"
|
||||||
#~ msgstr "przedział poza zakresem 0.0020 do 10.24"
|
#~ msgstr "przedział poza zakresem 0.0020 do 10.24"
|
||||||
|
|
||||||
|
@ -3068,11 +3068,9 @@ msgstr "zerowy krok"
|
||||||
#~ msgid "timeout >100 (units are now seconds, not msecs)"
|
#~ msgid "timeout >100 (units are now seconds, not msecs)"
|
||||||
#~ msgstr "timeout > 100 (jednostkami są sekundy)"
|
#~ msgstr "timeout > 100 (jednostkami są sekundy)"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'float'"
|
#~ msgid "unknown format code '%c' for object of type 'float'"
|
||||||
#~ msgstr "zły kod foratowania '%c' dla obiektu typu 'float'"
|
#~ msgstr "zły kod foratowania '%c' dla obiektu typu 'float'"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'str'"
|
#~ msgid "unknown format code '%c' for object of type 'str'"
|
||||||
#~ msgstr "zły kod formatowania '%c' dla obiektu typu 'str'"
|
#~ msgstr "zły kod formatowania '%c' dla obiektu typu 'str'"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
|
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -1842,7 +1842,7 @@ msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: circuitpython-cn\n"
|
"Project-Id-Version: circuitpython-cn\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
|
"POT-Creation-Date: 2020-02-03 23:41-0500\n"
|
||||||
"PO-Revision-Date: 2019-04-13 10:10-0700\n"
|
"PO-Revision-Date: 2019-04-13 10:10-0700\n"
|
||||||
"Last-Translator: hexthat\n"
|
"Last-Translator: hexthat\n"
|
||||||
"Language-Team: Chinese Hanyu Pinyin\n"
|
"Language-Team: Chinese Hanyu Pinyin\n"
|
||||||
|
@ -1839,8 +1839,8 @@ msgstr ""
|
||||||
"yánsè huǎnchōng qū bìxū wèi 3 zì jié (RGB) huò 4 zì jié (RGB + pad zì jié)"
|
"yánsè huǎnchōng qū bìxū wèi 3 zì jié (RGB) huò 4 zì jié (RGB + pad zì jié)"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer, tuple, list, or int"
|
||||||
msgstr "yánsè huǎnchōng qū bìxū shì huǎnchōng qū huò zhěngshù"
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
|
@ -2829,7 +2829,6 @@ msgstr "líng bù"
|
||||||
#~ msgid "Attempted heap allocation when MicroPython VM not running.\n"
|
#~ msgid "Attempted heap allocation when MicroPython VM not running.\n"
|
||||||
#~ msgstr "MicroPython VM wèi yùnxíng shí chángshì duī fēnpèi.\n"
|
#~ msgstr "MicroPython VM wèi yùnxíng shí chángshì duī fēnpèi.\n"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "Can not use dotstar with %s"
|
#~ msgid "Can not use dotstar with %s"
|
||||||
#~ msgstr "Wúfǎ yǔ dotstar yīqǐ shǐyòng %s"
|
#~ msgstr "Wúfǎ yǔ dotstar yīqǐ shǐyòng %s"
|
||||||
|
|
||||||
|
@ -3091,17 +3090,18 @@ msgstr "líng bù"
|
||||||
#~ msgid "bad GATT role"
|
#~ msgid "bad GATT role"
|
||||||
#~ msgstr "zǒng xiédìng de bùliáng juésè"
|
#~ msgstr "zǒng xiédìng de bùliáng juésè"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "buf is too small. need %d bytes"
|
#~ msgid "buf is too small. need %d bytes"
|
||||||
#~ msgstr "huǎnchōng tài xiǎo. Xūyào%d zì jié"
|
#~ msgstr "huǎnchōng tài xiǎo. Xūyào%d zì jié"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
#~ msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
||||||
#~ msgstr "zì jié bùshì zì jié xù shílì (yǒu %s)"
|
#~ msgstr "zì jié bùshì zì jié xù shílì (yǒu %s)"
|
||||||
|
|
||||||
#~ msgid "characteristics includes an object that is not a Characteristic"
|
#~ msgid "characteristics includes an object that is not a Characteristic"
|
||||||
#~ msgstr "tèxìng bāokuò bùshì zìfú de wùtǐ"
|
#~ msgstr "tèxìng bāokuò bùshì zìfú de wùtǐ"
|
||||||
|
|
||||||
|
#~ msgid "color buffer must be a buffer or int"
|
||||||
|
#~ msgstr "yánsè huǎnchōng qū bìxū shì huǎnchōng qū huò zhěngshù"
|
||||||
|
|
||||||
#~ msgid "expected a DigitalInOut"
|
#~ msgid "expected a DigitalInOut"
|
||||||
#~ msgstr "qídài de DigitalInOut"
|
#~ msgstr "qídài de DigitalInOut"
|
||||||
|
|
||||||
|
@ -3132,11 +3132,9 @@ msgstr "líng bù"
|
||||||
#~ msgid "too many arguments"
|
#~ msgid "too many arguments"
|
||||||
#~ msgstr "tài duō cānshù"
|
#~ msgstr "tài duō cānshù"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'float'"
|
#~ msgid "unknown format code '%c' for object of type 'float'"
|
||||||
#~ msgstr "lèixíng 'float' duìxiàng wèizhī de géshì dàimǎ '%c'"
|
#~ msgstr "lèixíng 'float' duìxiàng wèizhī de géshì dàimǎ '%c'"
|
||||||
|
|
||||||
#, c-format
|
|
||||||
#~ msgid "unknown format code '%c' for object of type 'str'"
|
#~ msgid "unknown format code '%c' for object of type 'str'"
|
||||||
#~ msgstr "lèixíng 'str' duìxiàng wèizhī de géshì dàimǎ '%c'"
|
#~ msgstr "lèixíng 'str' duìxiàng wèizhī de géshì dàimǎ '%c'"
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@ INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
CIRCUITPY_SMALL_BUILD = 1
|
CIRCUITPY_SMALL_BUILD = 1
|
||||||
|
# TODO: Turn off analogio for now for space reasons, but restore it
|
||||||
|
# when frozen module gets smaller.
|
||||||
|
CIRCUITPY_ANALOGIO = 0
|
||||||
CIRCUITPY_AUDIOBUSIO = 0
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
CIRCUITPY_BITBANGIO = 0
|
CIRCUITPY_BITBANGIO = 0
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
CIRCUITPY_FREQUENCYIO = 0
|
||||||
|
|
|
@ -86,7 +86,8 @@ STATIC mp_obj_t group_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
|
||||||
//| Sets the pixel color at the given index. The index should be an integer in the range 0 to color_count-1.
|
//| Sets the pixel color at the given index. The index should be an integer in the range 0 to color_count-1.
|
||||||
//|
|
//|
|
||||||
//| The value argument represents a color, and can be from 0x000000 to 0xFFFFFF (to represent an RGB value).
|
//| The value argument represents a color, and can be from 0x000000 to 0xFFFFFF (to represent an RGB value).
|
||||||
//| Value can be an int, bytes (3 bytes (RGB) or 4 bytes (RGB + pad byte)), or bytearray.
|
//| Value can be an int, bytes (3 bytes (RGB) or 4 bytes (RGB + pad byte)), bytearray,
|
||||||
|
//| or a tuple or list of 3 integers.
|
||||||
//|
|
//|
|
||||||
//| This allows you to::
|
//| This allows you to::
|
||||||
//|
|
//|
|
||||||
|
@ -94,6 +95,7 @@ STATIC mp_obj_t group_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
|
||||||
//| palette[1] = b'\xff\xff\x00' # set using 3 bytes
|
//| palette[1] = b'\xff\xff\x00' # set using 3 bytes
|
||||||
//| palette[2] = b'\xff\xff\x00\x00' # set using 4 bytes
|
//| palette[2] = b'\xff\xff\x00\x00' # set using 4 bytes
|
||||||
//| palette[3] = bytearray(b'\x00\x00\xFF') # set using a bytearay of 3 or 4 bytes
|
//| palette[3] = bytearray(b'\x00\x00\xFF') # set using a bytearay of 3 or 4 bytes
|
||||||
|
//| palette[4] = (10, 20, 30) # set using a tuple of 3 integers
|
||||||
//|
|
//|
|
||||||
STATIC mp_obj_t palette_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) {
|
STATIC mp_obj_t palette_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) {
|
||||||
if (value == MP_OBJ_NULL) {
|
if (value == MP_OBJ_NULL) {
|
||||||
|
@ -111,6 +113,12 @@ STATIC mp_obj_t palette_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t val
|
||||||
return MP_OBJ_NEW_SMALL_INT(common_hal_displayio_palette_get_color(self, index));
|
return MP_OBJ_NEW_SMALL_INT(common_hal_displayio_palette_get_color(self, index));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert a tuple or list to a bytearray.
|
||||||
|
if (MP_OBJ_IS_TYPE(value, &mp_type_tuple) ||
|
||||||
|
MP_OBJ_IS_TYPE(value, &mp_type_list)) {
|
||||||
|
value = mp_type_bytes.make_new(&mp_type_bytes, 1, &value, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t color;
|
uint32_t color;
|
||||||
mp_int_t int_value;
|
mp_int_t int_value;
|
||||||
mp_buffer_info_t bufinfo;
|
mp_buffer_info_t bufinfo;
|
||||||
|
@ -130,7 +138,7 @@ STATIC mp_obj_t palette_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t val
|
||||||
}
|
}
|
||||||
color = int_value;
|
color = int_value;
|
||||||
} else {
|
} else {
|
||||||
mp_raise_TypeError(translate("color buffer must be a buffer or int"));
|
mp_raise_TypeError(translate("color buffer must be a buffer, tuple, list, or int"));
|
||||||
}
|
}
|
||||||
common_hal_displayio_palette_set_color(self, index, color);
|
common_hal_displayio_palette_set_color(self, index, color);
|
||||||
return mp_const_none;
|
return mp_const_none;
|
||||||
|
|
Loading…
Reference in New Issue