Coding > Matrix Designer für Neopixel und e-Textilien

Neopixel Matrix Designer für e-Textilien, Möbel und Objekte

Eine Neopixel Matrix ist ideal, um mit leuchtenden Mustern, Farben und Animationen zu spielen. Vor allem mit e-Textilien aber auch Möbeln oder einfachen Objekten, lassen sich effektvolle Experimente machen. Die Neopixel Matrix ist leicht verständlich, wenn du davor mit klassischen Neopixeln ↗ gearbeitet hast.

Lass dich von unseren Beispielen und Ideen ↓ inspirieren und designe dein unverkennbares digitales Pixel-Tag!

Ideen für Projekte

Die 4x4 Matrix kann in 16 Millionen unterschiedlichen Farben leuchten. Obwohl sich damit nur einfachste Muster zeichnen lassen, sind Tags und Symbole mit einem hohen Wiedererkennungswert möglich (was ist ein Tag? ↗). Erweitere deine Ideen mit Zweifarbigkeit, Überblendungen oder einfachen Animationen - aber aufgepasst; oft ist weniger mehr ;-)

Ideen für Matrix-Projekte mit oder ohne e-Textilien:

Neopixel Matrix Designer Ideen

Wie funktioniert der Matrix Code Generator?

So geht's: Zeichne in der Matrix ein Muster, indem du in das Feld eine '1' einträgst. Lösche mit einer '0'.

  1. Lade eines dieser Beispielprogramme in den Editor ↗
  2. Füge dann den Dezimal-Code aus deiner Matrix dort ein

>Mit der Teacher's Box: Matrix Designer hier herunterladen

>Lerne hier die Grundlagen von Neopixeln ↗ kennen

>Nice to know: mit einer 4x4 Matrix sind 65'535 verschiedene Pixel-Tags möglich

Beispiel Sketches für Neopixel Matrix 4x4

1. Einfache Matrix

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="229" y="-580"><field name="COMMENT">4x4 Matrix Muster-Designer</field></block><block type="basic_comment" id=",f7jQ@:EbC3i]KssdY@`" x="229" y="-535"><field name="COMMENT">Beispiel Sketch 1: Einfaches Muster&amp;#10;*******************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="230" y="-421"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="230" y="-364"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="9ZF*g[_C]{MWii;muwUJ" x="-249" y="-253"><field name="COMMENT">Unterprogramme zur Übersetzung der Dezimalcodes in Muster</field></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">50</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-250" y="-202"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="233" y="-184"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="procedures_callnoreturn" id="~b6jcth_xo,cjUgdqTQ/"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="_jAlVj%Cwab0GZQ*86D|"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="3J%[LQRqz2ijtl|:zD44"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="Nx};^lc_=oD)59DI3EG6"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="shx?V~;rEMaS6qPzV!_G"><field name="NUM">100</field></block></value></block></statement></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-249" y="-155"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_comment" id="WA6.5pY|ZB^).:S@?GMM" x="598" y="-96"><field name="COMMENT">Hier Dezimalcode einfügen</field></block></xml>

2. Blinkende Matrix

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="227" y="-582"><field name="COMMENT">4x4 Matrix Designer</field></block><block type="basic_comment" id="Ul}Rt_[f}ob-tIKHYP-v" x="226" y="-538"><field name="COMMENT">Beispiel Sketch 2: Blinkende Muster&amp;#10;*******************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="230" y="-421"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="230" y="-364"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="9ZF*g[_C]{MWii;muwUJ" x="-249" y="-253"><field name="COMMENT">Unterprogramme zur Übersetzung der Dezimalcodes in Muster</field></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">50</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-250" y="-202"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="233" y="-184"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="procedures_callnoreturn" id="~b6jcth_xo,cjUgdqTQ/"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="_jAlVj%Cwab0GZQ*86D|"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="3J%[LQRqz2ijtl|:zD44"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="Nx};^lc_=oD)59DI3EG6"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="shx?V~;rEMaS6qPzV!_G"><field name="NUM">100</field></block></value><next><block type="flow_delay" id="bSNz?}0Mxw_:B^:-?d8T"><value name="DELAY"><block type="math_number" id="CVU#M}d}Qm#s=?|f~SG/"><field name="NUM">1000</field></block></value><next><block type="procedures_callnoreturn" id="`HTcA7P5Uz`N2yvi[F0J"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="g~83=[L5z_IimNd=w`=n"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="wx.,|i1/w+$0#qgHr6W="><field name="NUM">150</field></block></value><value name="ARG2"><block type="math_number" id="tl/PUCOXTANyO8K[OYo)"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="88Bnb/rGfu)@-J/ZyHEl"><field name="NUM">100</field></block></value><next><block type="flow_delay" id="b1*C3~_LjZfPpE?hommL"><value name="DELAY"><block type="math_number" id=":iD,C6EpcNK6iZyXrg^E"><field name="NUM">1000</field></block></value></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-249" y="-155"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_comment" id="gZ+(3oPT,ZfYGk_C]nrU" x="602" y="-18"><field name="COMMENT">Hier Dezimalcode einfügen</field></block></xml>

3. Mehrfarbige Matrix

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="228" y="-818"><field name="COMMENT">4x4 Matrix Designer</field></block><block type="basic_comment" id="R1ZmmG.4O+q6cPjBZu*m" x="229" y="-772"><field name="COMMENT">Beispiel Sketch 3: Zweifarbiges Muster&amp;#10;**********************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="232" y="-614"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="231" y="-568"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id=":^;sI05C.Q@YW;ikDcwf" x="233" y="-474"><field name="COMMENT">2. Block für mehrere Muster die übereinander gelegt werden (erweitert)</field></block><block type="procedures_callnoreturn" id="_zTDCr{z!)nU.G}8(phZ" x="235" y="-427"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="T:@V})6X9TY~3^0q1v|."><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="kr^.DF(zbDr7t5/x0v6F"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id=":k(N%kOw([ujjCjOqC%/"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="@oB6LF!@kPG}-s!*dUC:"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="9ZF*g[_C]{MWii;muwUJ" x="-249" y="-253"><field name="COMMENT">Unterprogramme zur Übersetzung der Dezimalcodes in Muster</field></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">50</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-250" y="-202"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="233" y="-184"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="procedures_callnoreturn" id="+W(|Bg;p-;eimz=Qa+As"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="*(D-y,l8R$7sF/:dWN=G"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="Da1MFZ$3AajT~.n$--Xw"><field name="NUM">5</field></block></value><value name="ARG2"><block type="math_number" id="(1nRqV,W9_$!Px#VuOHz"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="W|=z#c~RBd3y(GfB)(=`"><field name="NUM">100</field></block></value><next><block type="procedures_callnoreturn" id="tx/rQ-b!MUk[B$L|)cMi"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="tB~g}wz)[@xk-)sKJ^5{"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="P4t,dwRIEwMLKyG~kgS]"><field name="NUM">200</field></block></value><value name="ARG2"><block type="math_number" id="I%gBLRh:!!6$bWR?4H3M"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="jC#D;dGX/td.r$4MmhE."><field name="NUM">100</field></block></value><next><block type="fast_led" id="1lxh-tXUmLufl](t[pbv"></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-249" y="-155"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_comment" id="$WU6l4hkCA#`H_=$t-~J" x="1250" y="-151"><field name="COMMENT">Hintergrund Matrix</field></block><block type="basic_comment" id="x^^4J9oF^Wv%{O7jQxp:" x="1247" y="-108"><field name="COMMENT">Vordergrund Matrix</field></block><block type="basic_comment" id="=J/+4/g3^VUVflxCth_c" x="736" y="-67"><field name="COMMENT">Hier Dezimalcodes einfügen</field></block></xml>

4. Überblendung von zwei Matrizen

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="229" y="-769"><field name="COMMENT">4x4 Matrix Muster-Designer</field></block><block type="basic_comment" id="kV7DcU:yxtf1}Z+:rQBM" x="230" y="-725"><field name="COMMENT">Beispiel Sketch 4: Überblendung von zwei Mustern&amp;#10;********************************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="232" y="-614"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="231" y="-568"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id=":^;sI05C.Q@YW;ikDcwf" x="233" y="-474"><field name="COMMENT">2. Block für mehrere Muster die übereinander gelegt werden (erweitert)</field></block><block type="procedures_callnoreturn" id="_zTDCr{z!)nU.G}8(phZ" x="235" y="-427"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="T:@V})6X9TY~3^0q1v|."><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="kr^.DF(zbDr7t5/x0v6F"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id=":k(N%kOw([ujjCjOqC%/"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="@oB6LF!@kPG}-s!*dUC:"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="9ZF*g[_C]{MWii;muwUJ" x="-249" y="-253"><field name="COMMENT">Unterprogramme zur Übersetzung der Dezimalcodes in Muster</field></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">50</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-250" y="-202"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="233" y="-184"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="flow_for" id=")KQocE9rfEx4IdKESD51"><field name="VAR" id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</field><value name="FROM"><block type="math_number" id="pP(cfsk@bjL2=Pv7L(sy"><field name="NUM">0</field></block></value><value name="TO"><block type="math_number" id="n.zu||u3//96MB45ybXg"><field name="NUM">100</field></block></value><value name="BY"><block type="math_number" id="@%ydXq7W[YB;g$!tZSK7"><field name="NUM">1</field></block></value><statement name="DO"><block type="procedures_callnoreturn" id="+W(|Bg;p-;eimz=Qa+As"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="*(D-y,l8R$7sF/:dWN=G"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="Da1MFZ$3AajT~.n$--Xw"><field name="NUM">5</field></block></value><value name="ARG2"><block type="math_number" id="(1nRqV,W9_$!Px#VuOHz"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="jcYO%5Y#^]U?DD[u#Hv,"><field name="VAR" id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</field></block></value><next><block type="procedures_callnoreturn" id="tx/rQ-b!MUk[B$L|)cMi"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="tB~g}wz)[@xk-)sKJ^5{"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="P4t,dwRIEwMLKyG~kgS]"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id="I%gBLRh:!!6$bWR?4H3M"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_arithmetic" id="8r,^nj$%Zsv_|Hm1nHFJ"><field name="OP">MINUS</field><value name="A"><block type="math_number" id="jC#D;dGX/td.r$4MmhE."><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="-5Ki!d4O/zA0ZQe9gKQR"><field name="VAR" id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</field></block></value></block></value><next><block type="flow_delay" id="FU,yY44DCdU?t`i-n:;w"><value name="DELAY"><block type="math_number" id="!GB|pu,!@iJ[)eNwE$T%"><field name="NUM">15</field></block></value><next><block type="fast_led" id="]WDimZ|-^jB`N~3[8lw9"></block></next></block></next></block></next></block></statement><next><block type="flow_for" id="VE~.{9}L[fllj7HVxq3C"><field name="VAR" id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</field><value name="FROM"><block type="math_number" id="}Bio1KTp1qZ*rG6r$RS2"><field name="NUM">100</field></block></value><value name="TO"><block type="math_number" id="KFAuD2/sX~8Ep/J7w[=k"><field name="NUM">0</field></block></value><value name="BY"><block type="math_number" id="zXk6a`2GS0~G.{.?%l)D"><field name="NUM">1</field></block></value><statement name="DO"><block type="procedures_callnoreturn" id="K*rmF};R-h/o$O2J5Frq"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="!;WNsVUv7#[c@$5x)%r:"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="S(3Y{4JyKh{7;Xme0Gg{"><field name="NUM">5</field></block></value><value name="ARG2"><block type="math_number" id="NS-KKFFX%b[%h/8n7kxg"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="+OZ{q|Q#1rBv/V+Eas9,"><field name="VAR" id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</field></block></value><next><block type="procedures_callnoreturn" id="j)RGTm;|RxA#,HA)*ufK"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="CQ$D$}9q_K,$B5dzY|,I"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="J3{}BNb)t^jc9$~z7eaE"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id=";@Al/]FQQL[pS`.IX=+|"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_arithmetic" id="1xBaZ:RwfrL)s+JhjpK#"><field name="OP">MINUS</field><value name="A"><block type="math_number" id="t@0D0Xi(S6j5Nu$yJG^^"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="vD)BhAPnu0%xvz=WcehG"><field name="VAR" id="3lW6UzBq[hUZwO2-~@w{">Helligkeit</field></block></value></block></value><next><block type="flow_delay" id="~g3D:]+A3=2q23aK|N,P"><value name="DELAY"><block type="math_number" id="t{^pf;cJ)3:E#0^kWs{5"><field name="NUM">15</field></block></value><next><block type="fast_led" id="9`A;4aLpGatV7k8:oRk)"></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-249" y="-155"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_comment" id="~$=k)XyR(Nmj3[a^CX)3" x="755" y="-157"><field name="COMMENT">Hier Dezimalcode einfügen</field></block><block type="basic_comment" id="[LP01{]s%cx`058,`5u)" x="1443" y="-111"><field name="COMMENT">Hintergrund Matrix</field></block><block type="basic_comment" id="^kH(MvF=/T9t]wV/xo49" x="1433" y="-58"><field name="COMMENT">Überdeckende Matrix</field></block><block type="basic_comment" id="J9u@~jmKaEgLB+:ir6;x" x="758" y="65"><field name="COMMENT">Hier Dezimalcode einfügen</field></block></xml>

5. Animation mit 2x4 Matrizen

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="/qKL*;/x!%R,!Ovhh3ZU">Muster 1</variable><variable id="_TR;_OGyXAX;pZu;tDJf">2</variable><variable id="X8=}?3D]2x5*$N3/w!,k">3</variable><variable id="QE/jr0[0w5lKSW{oYgNL">4</variable><variable id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</variable><variable id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</variable><variable id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</variable><variable id="-f{zBV=w=olsvW#/PEGZ">He V in %</variable><variable id="Gegiis%pZIy4H8~8b)IO">He H in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="233" y="-864"><field name="COMMENT">4x4 Matrix Designer</field></block><block type="basic_comment" id="kV7DcU:yxtf1}Z+:rQBM" x="231" y="-818"><field name="COMMENT">Beispiel Sketch 5: Animation mit 3x4 Mustern&amp;#10;***************************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="231" y="-727"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="231" y="-678"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id=":^;sI05C.Q@YW;ikDcwf" x="232" y="-586"><field name="COMMENT">2. Block für mehrere Muster die übereinander gelegt werden (zus. Block 'Sende Zwischenspeicher an LED-Strip' notwendig)</field></block><block type="procedures_callnoreturn" id="_zTDCr{z!)nU.G}8(phZ" x="232" y="-542"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="T:@V})6X9TY~3^0q1v|."><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="kr^.DF(zbDr7t5/x0v6F"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id=":k(N%kOw([ujjCjOqC%/"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="@oB6LF!@kPG}-s!*dUC:"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="n,CnXM%12(ms5m!?|`)3" x="234" y="-459"><field name="COMMENT">3. Block für Animation mit 4 Mustern (erweitert)</field></block><block type="procedures_callnoreturn" id="32|9ijkVz=lT!|*Q[6dI" x="234" y="-413"><mutation name="Leuchte Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="DJ2vLbk%Iipn)?vp{7ET"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="uSh_;6P2SB8$kA.sXdMV"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="|57!R+[=kaCnDlG]v#f4"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="YZ/]=8+JQ[.hzJVXj}RN"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="Vy{G6oJ/S2|[G3X/44UK"><field name="NUM">100</field></block></value><value name="ARG5"><block type="math_number" id="!E;7GOpiI0QEVrlIZuq/"><field name="NUM">160</field></block></value><value name="ARG6"><block type="math_number" id="QCD+Q_G|}Hl,^^|EV:My"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="d9qnzuDi*cV9j=uRSFJS"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="kRKx!6pt#aUohRRp,SB9"><field name="NUM">0</field></block></value></block><block type="basic_comment" id="`=xqkO.P=gzh=RPDUU0l" x="994" y="-449"><field name="COMMENT">Farbe Vordergrund</field></block><block type="basic_comment" id="IUK09?ZX.V5lu2O/[u15" x="1239" y="-449"><field name="COMMENT">Helligkeit Vordergrund</field></block><block type="basic_comment" id="(3j@B`@SQ_)$mP$TPt|V" x="1108" y="-367"><field name="COMMENT">Farbe Hintergrund</field></block><block type="basic_comment" id="!DUL@^z!ks/PhhNi+cp9" x="1365" y="-368"><field name="COMMENT">Helligkeit Hintergrund</field></block><block type="basic_comment" id="9ZF*g[_C]{MWii;muwUJ" x="-249" y="-253"><field name="COMMENT">Unterprogramme zur Übersetzung der Dezimalcodes in Muster</field></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">30</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-250" y="-202"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-249" y="-155"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="227" y="-138"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="procedures_callnoreturn" id="3Gx%OZ7@mLNnpz|M?tFz"><mutation name="Leuchte Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="^G:X*[:Pj=wfTnGle-.6"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="r8j[hPGnguCg,cmI[7yg"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="M/G]1@Pe~-c*X[--lGBc"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="0T_w8J+62t!/KEW3my~,"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="M:%zWuRcyp!G.SoF(MkA"><field name="NUM">50</field></block></value><value name="ARG5"><block type="math_number" id="VuvDfX}_DRL5@5jwiXQ/"><field name="NUM">160</field></block></value><value name="ARG6"><block type="math_number" id="T{`p,^`~JZO*/lI-3c,b"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="Ilje|qsm(Mlu|t@Z{*/M"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="KXj0y9(#OxNbGEY48kVS"><field name="NUM">0</field></block></value><next><block type="procedures_callnoreturn" id="V.D0V=tTlIlR%.lROFRZ"><mutation name="Leuchte Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="`gIiZXp7YIY2?-8a={2j"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="Cd-%K)Kr`8]qQWp1xJI}"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="Z+R[;#g?;caOD~dHouF."><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="NOaO@hIo=GDj{g#R[.|c"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="(W!l@/rlt)Y$JNp|1q($"><field name="NUM">50</field></block></value><value name="ARG5"><block type="math_number" id="(*/nQ6AxmF*Ba|v+uwQk"><field name="NUM">160</field></block></value><value name="ARG6"><block type="math_number" id="!vh2E?(Sep/25!Tk+CX#"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="8`[3^Aqa[O]P=0b-|!U/"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="00FyKC$Xj)q12$?*NtCR"><field name="NUM">0</field></block></value></block></next></block></statement></block><block type="procedures_defnoreturn" id="2~?vi.;+.rR/Lo^Ss;oc" collapsed="true" x="-249" y="-109"><mutation><arg name="Muster 1" varid="/qKL*;/x!%R,!Ovhh3ZU"></arg><arg name="2" varid="_TR;_OGyXAX;pZu;tDJf"></arg><arg name="3" varid="X8=}?3D]2x5*$N3/w!,k"></arg><arg name="4" varid="QE/jr0[0w5lKSW{oYgNL"></arg><arg name="Tempo in ms" varid="ATZ]^Dr%JzgVl(W,w9RE"></arg><arg name="Fa V in °" varid="?K7eWV.aphZ(1PnR%k@g"></arg><arg name="Fa H in °" varid="/0y_uI4Jv4bU)cSDh7)J"></arg><arg name="He V in %" varid="-f{zBV=w=olsvW#/PEGZ"></arg><arg name="He H in %" varid="Gegiis%pZIy4H8~8b)IO"></arg></mutation><field name="NAME">Leuchte Animation mit 4 Mustern</field><statement name="STACK"><block type="set_pixel_color" id="j.T}l0y2IkJcjQ3X?8C("><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="4Z9YjZOk!3w([+b2OZJ2"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="n]{(sq0jRF1?|gQK+mTG"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id=".i[q0%-VK$`i)xZWzMG]"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="ju5Cl)(x5}L6H~JKnrt+"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="EN//9MUQIKn0-U5Ol=d%"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="x.[+RdA(*n-du0xqJ_0z"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="^vv;Rc7^BnaD2^]jLSo;"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">Muster 1</field></block></value><value name="ARG1"><block type="variables_get" id="ey%ZNsrR$EQJ;FHT-UZ_"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="QA9sfiigN3o=XYJa:O?w"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="S1VOf|)Wb;pV|W8Q,MGK"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="KqWQH@K_n2jX+~IFerFc"><next><block type="flow_delay" id="ElF0q|V8@FCn?rRm)y0k"><value name="DELAY"><block type="variables_get" id="(tiq@{,heI2~NpEU,xQJ"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="a#aJl5xEbHa3BpeX2g)Q"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="`kk7cin#bu4CV)9e]AY+"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="$ZbzfeX`KcK4@!g!0$~7"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="Jz!ck1ta,_8sTk;Zr(_^"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="`}q)jggpDy]St{EJ_9D."><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="]4,l%tvX!0,=CO{r1x*g"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="g,XT1axi%;TSyOzXeov("><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="$i.tqgFcz+/sHly=SJvZ"><field name="VAR" id="_TR;_OGyXAX;pZu;tDJf">2</field></block></value><value name="ARG1"><block type="variables_get" id="3Ct/_!.V=,*/EI!/D3pf"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="EB+Ga%c+RRj8%$Qn-v0m"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="^1yo-JZ%E{w-6luLgI@7"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id=":;5l]Wu@-D/LksS#`Qia"><next><block type="flow_delay" id="/6sWF-3vTZoIrVw~n#7W"><value name="DELAY"><block type="variables_get" id="OCfZxZ`Jd#}zI{%[P%n`"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="AW7^3ZZgsSFt3H^%gCw^"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="u.87N3sZceOZi6E6!6pz"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="u|Ok^so8HySs0iNxxKs8"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="rX]+L^eeY/bXvpeOpd9p"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="YaqUu!CL^vzX9YtxEb+W"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="`AU;T$p.AsQMB3UB2g/q"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="HMev=9FHKyJ%14Y?{sO1"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="iG@=8@VDuzb*]`E,9cjQ"><field name="VAR" id="X8=}?3D]2x5*$N3/w!,k">3</field></block></value><value name="ARG1"><block type="variables_get" id="*`]^tzI$Pl^P@)uJI0mJ"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="]H=$ULoQ;5R}fnb%A9^#"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="KY}HkMO4D:t@61gAA%1="><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="@nT_WSlY`q^eIq[i5%NK"><next><block type="flow_delay" id="!@P(q_pCaK2-q|JG@~8K"><value name="DELAY"><block type="variables_get" id="yyRri^lu/l`IxDh`.|/|"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="DaXXVX#N}LW@jg)p;zzz"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id=";/5m8-DhHUg2~31ng!R?"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id=":6Tq.6Y%)XdxA[uGSzg:"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="M,Z2Q/M4;kU}+V@1BDGU"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="54uu6y~0-sssfuJb2x`o"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="]XL`aWJig?8HW[1WbO1u"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="kq~Kq(gIbM!X*@VxG)wH"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="4sV4kZ+gjLCo5UJSb3r("><field name="VAR" id="QE/jr0[0w5lKSW{oYgNL">4</field></block></value><value name="ARG1"><block type="variables_get" id="ZEbb@GVtW27T];{Xb-nK"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="Y=~4{=%(=mXBNN1hD^MV"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="V!qCf+K^9.c.Nra)3:Ct"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="SH+foN.vEP*zWfzH4P*A"><next><block type="flow_delay" id="Y0$R7%}pytu)]7F{YWML"><value name="DELAY"><block type="variables_get" id="Ya[qR/ZimDng/nGml;wr"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_comment" id="~$=k)XyR(Nmj3[a^CX)3" x="559" y="-19"><field name="COMMENT">Hier Dezimalcodes einfügen</field></block></xml>

6. Drei Matrizen mit Sound-Steuerung

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="/qKL*;/x!%R,!Ovhh3ZU">Muster 1</variable><variable id="_TR;_OGyXAX;pZu;tDJf">2</variable><variable id="X8=}?3D]2x5*$N3/w!,k">3</variable><variable id="QE/jr0[0w5lKSW{oYgNL">4</variable><variable id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</variable><variable id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</variable><variable id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</variable><variable id="-f{zBV=w=olsvW#/PEGZ">He V in %</variable><variable id="Gegiis%pZIy4H8~8b)IO">He H in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="QX4Q])M0CwkIfD}f[~9l">Sound</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="qE%P-A0MYd*NExEksrO!">Farbe</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="233" y="-864"><field name="COMMENT">4x4 Matrix Muster-Designer</field></block><block type="basic_comment" id="kV7DcU:yxtf1}Z+:rQBM" x="231" y="-818"><field name="COMMENT">Beispiel Sketch 6: Drei Muster mit Sound steuern&amp;#10;******************************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="231" y="-727"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="231" y="-678"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id=":^;sI05C.Q@YW;ikDcwf" x="232" y="-586"><field name="COMMENT">2. Block für mehrere Muster die übereinander gelegt werden (erweitert)</field></block><block type="procedures_callnoreturn" id="_zTDCr{z!)nU.G}8(phZ" x="232" y="-542"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="T:@V})6X9TY~3^0q1v|."><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="kr^.DF(zbDr7t5/x0v6F"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id=":k(N%kOw([ujjCjOqC%/"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="@oB6LF!@kPG}-s!*dUC:"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="n,CnXM%12(ms5m!?|`)3" x="234" y="-459"><field name="COMMENT">3. Block für Animation mit 4 Mustern (erweitert)</field></block><block type="basic_comment" id="8XlaHc-?%EU=+:Yq40sr" x="-509" y="-387"><field name="COMMENT">Unterprogramme nicht verändern</field></block><block type="procedures_callnoreturn" id="32|9ijkVz=lT!|*Q[6dI" x="234" y="-413"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="DJ2vLbk%Iipn)?vp{7ET"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="uSh_;6P2SB8$kA.sXdMV"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="|57!R+[=kaCnDlG]v#f4"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="YZ/]=8+JQ[.hzJVXj}RN"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="Vy{G6oJ/S2|[G3X/44UK"><field name="NUM">100</field></block></value><value name="ARG5"><block type="math_number" id="!E;7GOpiI0QEVrlIZuq/"><field name="NUM">160</field></block></value><value name="ARG6"><block type="math_number" id="QCD+Q_G|}Hl,^^|EV:My"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="d9qnzuDi*cV9j=uRSFJS"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="kRKx!6pt#aUohRRp,SB9"><field name="NUM">80</field></block></value></block><block type="basic_comment" id="`=xqkO.P=gzh=RPDUU0l" x="941" y="-447"><field name="COMMENT">Farbe Vordergrund</field></block><block type="basic_comment" id="IUK09?ZX.V5lu2O/[u15" x="1190" y="-448"><field name="COMMENT">Helligkeit Vordergrund</field></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-506" y="-332"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_comment" id="(3j@B`@SQ_)$mP$TPt|V" x="1059" y="-366"><field name="COMMENT">Farbe Hintergrund</field></block><block type="procedures_defnoreturn" id="2~?vi.;+.rR/Lo^Ss;oc" collapsed="true" x="-506" y="-282"><mutation><arg name="Muster 1" varid="/qKL*;/x!%R,!Ovhh3ZU"></arg><arg name="2" varid="_TR;_OGyXAX;pZu;tDJf"></arg><arg name="3" varid="X8=}?3D]2x5*$N3/w!,k"></arg><arg name="4" varid="QE/jr0[0w5lKSW{oYgNL"></arg><arg name="Tempo in ms" varid="ATZ]^Dr%JzgVl(W,w9RE"></arg><arg name="Fa V in °" varid="?K7eWV.aphZ(1PnR%k@g"></arg><arg name="Fa H in °" varid="/0y_uI4Jv4bU)cSDh7)J"></arg><arg name="He V in %" varid="-f{zBV=w=olsvW#/PEGZ"></arg><arg name="He H in %" varid="Gegiis%pZIy4H8~8b)IO"></arg></mutation><field name="NAME">Animation mit 4 Mustern</field><statement name="STACK"><block type="set_pixel_color" id="j.T}l0y2IkJcjQ3X?8C("><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="4Z9YjZOk!3w([+b2OZJ2"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="n]{(sq0jRF1?|gQK+mTG"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id=".i[q0%-VK$`i)xZWzMG]"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="ju5Cl)(x5}L6H~JKnrt+"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="EN//9MUQIKn0-U5Ol=d%"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="x.[+RdA(*n-du0xqJ_0z"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="^vv;Rc7^BnaD2^]jLSo;"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">Muster 1</field></block></value><value name="ARG1"><block type="variables_get" id="ey%ZNsrR$EQJ;FHT-UZ_"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="QA9sfiigN3o=XYJa:O?w"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="S1VOf|)Wb;pV|W8Q,MGK"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="KqWQH@K_n2jX+~IFerFc"><next><block type="flow_delay" id="ElF0q|V8@FCn?rRm)y0k"><value name="DELAY"><block type="variables_get" id="(tiq@{,heI2~NpEU,xQJ"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="a#aJl5xEbHa3BpeX2g)Q"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="`kk7cin#bu4CV)9e]AY+"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="$ZbzfeX`KcK4@!g!0$~7"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="Jz!ck1ta,_8sTk;Zr(_^"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="`}q)jggpDy]St{EJ_9D."><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="]4,l%tvX!0,=CO{r1x*g"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="g,XT1axi%;TSyOzXeov("><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="$i.tqgFcz+/sHly=SJvZ"><field name="VAR" id="_TR;_OGyXAX;pZu;tDJf">2</field></block></value><value name="ARG1"><block type="variables_get" id="3Ct/_!.V=,*/EI!/D3pf"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="EB+Ga%c+RRj8%$Qn-v0m"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="^1yo-JZ%E{w-6luLgI@7"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id=":;5l]Wu@-D/LksS#`Qia"><next><block type="flow_delay" id="/6sWF-3vTZoIrVw~n#7W"><value name="DELAY"><block type="variables_get" id="OCfZxZ`Jd#}zI{%[P%n`"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="AW7^3ZZgsSFt3H^%gCw^"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="u.87N3sZceOZi6E6!6pz"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="u|Ok^so8HySs0iNxxKs8"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="rX]+L^eeY/bXvpeOpd9p"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="YaqUu!CL^vzX9YtxEb+W"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="`AU;T$p.AsQMB3UB2g/q"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="HMev=9FHKyJ%14Y?{sO1"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="iG@=8@VDuzb*]`E,9cjQ"><field name="VAR" id="X8=}?3D]2x5*$N3/w!,k">3</field></block></value><value name="ARG1"><block type="variables_get" id="*`]^tzI$Pl^P@)uJI0mJ"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="]H=$ULoQ;5R}fnb%A9^#"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="KY}HkMO4D:t@61gAA%1="><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="@nT_WSlY`q^eIq[i5%NK"><next><block type="flow_delay" id="!@P(q_pCaK2-q|JG@~8K"><value name="DELAY"><block type="variables_get" id="yyRri^lu/l`IxDh`.|/|"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="DaXXVX#N}LW@jg)p;zzz"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id=";/5m8-DhHUg2~31ng!R?"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id=":6Tq.6Y%)XdxA[uGSzg:"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="M,Z2Q/M4;kU}+V@1BDGU"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="54uu6y~0-sssfuJb2x`o"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="]XL`aWJig?8HW[1WbO1u"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="kq~Kq(gIbM!X*@VxG)wH"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="4sV4kZ+gjLCo5UJSb3r("><field name="VAR" id="QE/jr0[0w5lKSW{oYgNL">4</field></block></value><value name="ARG1"><block type="variables_get" id="ZEbb@GVtW27T];{Xb-nK"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="Y=~4{=%(=mXBNN1hD^MV"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="V!qCf+K^9.c.Nra)3:Ct"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="SH+foN.vEP*zWfzH4P*A"><next><block type="flow_delay" id="Y0$R7%}pytu)]7F{YWML"><value name="DELAY"><block type="variables_get" id="Ya[qR/ZimDng/nGml;wr"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_comment" id="!DUL@^z!ks/PhhNi+cp9" x="1315" y="-367"><field name="COMMENT">Helligkeit Hintergrund</field></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-509" y="-230"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">30</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="227" y="-138"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="variables_set" id=".)FTK+bE[A.V{Ayk4~,?"><field name="VAR" id="QX4Q])M0CwkIfD}f[~9l">Sound</field><value name="VALUE"><block type="sensor_read_percentage" id="^g/T/MLg6KtT:hmK`o8G"><value name="SENSOR"><block type="sensor_pin" id="kj/z|?^$]1T2KfXsznbU"><field name="SENSOR">SENSOR3</field></block></value></block></value><next><block type="variables_set" id="3B?6O+:YA#~:ldwWV.Uk"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field><value name="VALUE"><block type="math_arithmetic" id="c00_Y0)D[sf*Ueme1.h)"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="ty^jnK{^DvO_PT1AX*z:"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="B"><block type="math_number" id="f`B8XO!.uEy7*Z$5U#}W"><field name="NUM">2</field></block></value></block></value><next><block type="logic_if" id="-G*![s/ayYT_pCWcbbvW"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1" else="1"></mutation><value name="IF0"><block type="logic_operation" id="IZ1EXB9K,9u(^=1%OAAl"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="nZC)9n{.?cf?:S;ge,yF"><field name="OP">GT</field><value name="A"><block type="variables_get" id="aX1++^57lNHD31hq;p=q"><field name="VAR" id="QX4Q])M0CwkIfD}f[~9l">Sound</field></block></value><value name="B"><block type="math_number" id="~Du93[|#}xB]cg_S~[=-"><field name="NUM">60</field></block></value></block></value><value name="B"><block type="logic_compare" id="(JMXkS~~4L@4RaO)^lII"><field name="OP">LT</field><value name="A"><block type="variables_get" id="R/=.K:wxh{6M)XMu[VKV"><field name="VAR" id="QX4Q])M0CwkIfD}f[~9l">Sound</field></block></value><value name="B"><block type="math_number" id=";9U{KW+B5@896/qn;{S~"><field name="NUM">70</field></block></value></block></value></block></value><statement name="DO0"><block type="procedures_callnoreturn" id="T/)H.pZW-vf)%}++k!GD"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id=";uT0~Z{HN!C3NYM{#[Sc"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="W0A0PPn67g:JTDM([z2)"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="E~OIV.;SU7J}zX/,KT`f"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="87)VbX_!RRx!+Q^;;wOT"><field name="NUM">100</field></block></value><next><block type="flow_delay" id="Wz@{s4^,Ld,[@=F?MCVv"><value name="DELAY"><block type="math_number" id="1$hr_W4N*YI}_ViUhO~9"><field name="NUM">200</field></block></value></block></next></block></statement><value name="IF1"><block type="logic_compare" id="MSqmU{7K[He{gI}H7:/I"><field name="OP">GT</field><value name="A"><block type="variables_get" id="lnD];[e+bxV*X.}[L@X,"><field name="VAR" id="QX4Q])M0CwkIfD}f[~9l">Sound</field></block></value><value name="B"><block type="math_number" id="+YQ2V[p?:Sr_+^6a?I[s"><field name="NUM">71</field></block></value></block></value><statement name="DO1"><block type="procedures_callnoreturn" id="7[:xw93S|VVC-WWSA%*!"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="0%EeCz*=qU`:)D(o%ZUP"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="giN]4Enh;~pnrptiw{Ps"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id=")JUAE}|!eg(`-Z?$^)H/"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="$bIfDpK8b_!0A-EX;N9J"><field name="NUM">100</field></block></value><next><block type="flow_delay" id="4(@dBD.bkHX0rvS#{yYe"><value name="DELAY"><block type="math_number" id="42AWJ{sD1`?A*^an|g{k"><field name="NUM">200</field></block></value></block></next></block></statement><statement name="ELSE"><block type="procedures_callnoreturn" id="~Gml}xSv_e;ptiJ+2LOX"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id=":Ohoy*1E3s63dzcNBg`["><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="*91+x=n/S$kr0ki7W;XQ"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="zv4-}nJ=^;u{:tx;r/ar"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="*BpiL8R/z~lMC;4A#,JO"><field name="NUM">100</field></block></value></block></statement></block></next></block></next></block></statement></block><block type="basic_comment" id="ZFd-ziwf849th7A#om]-" x="1143" y="35"><field name="COMMENT">Matrix für mittlere Musik</field></block><block type="basic_comment" id="#g`P;Z{J*Uo1`cfW`luE" x="1146" y="159"><field name="COMMENT">Matrix für laute Musik</field></block><block type="basic_comment" id="ai/4yg%oB7`kHH?LgHml" x="1143" y="257"><field name="COMMENT">Matrix für leise Musik</field></block></xml>

7. Drei Matrix-Animationen mit Sound-Steuerung

Füge diesen XML-Code mit Dreifachklick direkt in den PGLU-Editor ↗ ein:

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe in °</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</variable><variable id="/qKL*;/x!%R,!Ovhh3ZU">Muster 1</variable><variable id="_TR;_OGyXAX;pZu;tDJf">2</variable><variable id="X8=}?3D]2x5*$N3/w!,k">3</variable><variable id="QE/jr0[0w5lKSW{oYgNL">4</variable><variable id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</variable><variable id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</variable><variable id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</variable><variable id="-f{zBV=w=olsvW#/PEGZ">He V in %</variable><variable id="Gegiis%pZIy4H8~8b)IO">He H in %</variable><variable id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</variable><variable id="#bI4ov(rS`RxMd$x~mRD">BitNummer</variable><variable id="qE%P-A0MYd*NExEksrO!">Farbe</variable><variable id="l9Ei[B]UF0YL`FcrA^#|">Bit</variable></variables><block type="basic_comment" id="mmj%=nR2nmO/q]uf_.QN" x="233" y="-864"><field name="COMMENT">4x4 Matrix Muster-Designer</field></block><block type="basic_comment" id="kV7DcU:yxtf1}Z+:rQBM" x="231" y="-818"><field name="COMMENT">Beispiel Sketch 5: Animation mit 3x4 Mustern&amp;#10;***************************************&amp;#10;FÜGE DEN DEZIMAL-MATRIX-CODE VON pglu.ch/matrix/ HIER EIN</field></block><block type="basic_comment" id="l-u.Ve/Yuoxj)Yu#1Iqb" x="231" y="-727"><field name="COMMENT">1. Block zum direkten Zeigen eines Musters (simpel)</field></block><block type="procedures_callnoreturn" id="bYK)z}I4$b2Z(vXNhj7a" x="231" y="-678"><mutation name="Leuchte Muster mit Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="At+khMp}CBD^I,57EU@7"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="^3/!w`B!:_*9@M_C{e=J"><field name="NUM">20</field></block></value><value name="ARG2"><block type="math_number" id="cz-(=lF8]3X!*+h$1Sl{"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="3!Mg:OGk-0*)^QQF,PW~"><field name="NUM">100</field></block></value></block><block type="basic_comment" id=":^;sI05C.Q@YW;ikDcwf" x="232" y="-586"><field name="COMMENT">2. Block für mehrere Muster die übereinander gelegt werden (erweitert)</field></block><block type="procedures_callnoreturn" id="_zTDCr{z!)nU.G}8(phZ" x="232" y="-542"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="math_number" id="T:@V})6X9TY~3^0q1v|."><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="kr^.DF(zbDr7t5/x0v6F"><field name="NUM">80</field></block></value><value name="ARG2"><block type="math_number" id=":k(N%kOw([ujjCjOqC%/"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="@oB6LF!@kPG}-s!*dUC:"><field name="NUM">100</field></block></value></block><block type="basic_comment" id="n,CnXM%12(ms5m!?|`)3" x="234" y="-459"><field name="COMMENT">3. Block für Animation mit 4 Mustern (erweitert)</field></block><block type="basic_comment" id="9ZF*g[_C]{MWii;muwUJ" x="-510" y="-396"><field name="COMMENT">Unterprogramme zur Übersetzung der Dezimalcodes in Muster</field></block><block type="procedures_callnoreturn" id="32|9ijkVz=lT!|*Q[6dI" x="234" y="-413"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="DJ2vLbk%Iipn)?vp{7ET"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="uSh_;6P2SB8$kA.sXdMV"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="|57!R+[=kaCnDlG]v#f4"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="YZ/]=8+JQ[.hzJVXj}RN"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="Vy{G6oJ/S2|[G3X/44UK"><field name="NUM">100</field></block></value><value name="ARG5"><block type="math_number" id="!E;7GOpiI0QEVrlIZuq/"><field name="NUM">160</field></block></value><value name="ARG6"><block type="math_number" id="QCD+Q_G|}Hl,^^|EV:My"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="d9qnzuDi*cV9j=uRSFJS"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="kRKx!6pt#aUohRRp,SB9"><field name="NUM">80</field></block></value></block><block type="basic_comment" id="`=xqkO.P=gzh=RPDUU0l" x="946" y="-448"><field name="COMMENT">Farbe Vordergrund</field></block><block type="basic_comment" id="IUK09?ZX.V5lu2O/[u15" x="1190" y="-448"><field name="COMMENT">Helligkeit Vordergrund</field></block><block type="procedures_defnoreturn" id="6$rp,+Y.vfTX,NaHq+.W" collapsed="true" x="-510" y="-333"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Muster in Zwischenspeicher von Matrix</field><statement name="STACK"><block type="variables_set" id="?y9oNjpri~$yFa.J=6V."><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="x6:e40=EZIwLaz4j{bd#"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="?V(xw|0x7|u5ugnh*s/|"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="cncBR0?btec@:KJ:J8l9"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="bA~okUtsmIZI]|*Eh15-"><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="wV^}.ppGh/7M1fqy$r]T"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="3ATJ_3KO_h%R=t@YDDyq"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="MDsryqn5_G4:t`yV18A-"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="x^He%ACOq*%$E%`YuGFJ"><value name="VAL1"><block type="code_pin" id="5G1xdVEvlr32BBIaye}j"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="1B%746*%s`Q_qmQE-C/="><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id=":P/w(_K{o`6=Dl2%)7(y"><value name="IF0"><block type="logic_compare" id="RLj5tF+%[!FB#_+sYF8T"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="q,;9W%/=nlIc1hf=%Fj_"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="d9cn7z]yT$0j1bBp{C+n"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="_rdMpDld(l/zu([)T`mx"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="j$(f@c3fQ:fQB83P[T[7"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="$a$rKyRV$:l6*jDGvTBp"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="-VQY^!jWts!3a@3o5K:#"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="|yp|}`:Sp,FSGqV2n1G6"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="4:Vf_aRv4etcKB{44A=%"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="mZIPfzAybt@pcXh_(hDs"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="m@?RWh(,1jC`KhWo#?+n"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="~_$ic0xVH^s]_/ty}jzx"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="/p7$23-jN|$TOOZI)TB2"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="`Tx{7HeJxiGSj7p{Nwus"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="ulPf1p.p,K9.3*/{oWU0"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="code_input" id="_02ed-P{`s:iOb5A0^qD"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></statement></block><block type="basic_comment" id="(3j@B`@SQ_)$mP$TPt|V" x="1061" y="-367"><field name="COMMENT">Farbe Hintergrund</field></block><block type="procedures_defnoreturn" id="2~?vi.;+.rR/Lo^Ss;oc" collapsed="true" x="-511" y="-283"><mutation><arg name="Muster 1" varid="/qKL*;/x!%R,!Ovhh3ZU"></arg><arg name="2" varid="_TR;_OGyXAX;pZu;tDJf"></arg><arg name="3" varid="X8=}?3D]2x5*$N3/w!,k"></arg><arg name="4" varid="QE/jr0[0w5lKSW{oYgNL"></arg><arg name="Tempo in ms" varid="ATZ]^Dr%JzgVl(W,w9RE"></arg><arg name="Fa V in °" varid="?K7eWV.aphZ(1PnR%k@g"></arg><arg name="Fa H in °" varid="/0y_uI4Jv4bU)cSDh7)J"></arg><arg name="He V in %" varid="-f{zBV=w=olsvW#/PEGZ"></arg><arg name="He H in %" varid="Gegiis%pZIy4H8~8b)IO"></arg></mutation><field name="NAME">Animation mit 4 Mustern</field><statement name="STACK"><block type="set_pixel_color" id="j.T}l0y2IkJcjQ3X?8C("><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="4Z9YjZOk!3w([+b2OZJ2"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="n]{(sq0jRF1?|gQK+mTG"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id=".i[q0%-VK$`i)xZWzMG]"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="ju5Cl)(x5}L6H~JKnrt+"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="EN//9MUQIKn0-U5Ol=d%"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="x.[+RdA(*n-du0xqJ_0z"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="^vv;Rc7^BnaD2^]jLSo;"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">Muster 1</field></block></value><value name="ARG1"><block type="variables_get" id="ey%ZNsrR$EQJ;FHT-UZ_"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="QA9sfiigN3o=XYJa:O?w"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="S1VOf|)Wb;pV|W8Q,MGK"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="KqWQH@K_n2jX+~IFerFc"><next><block type="flow_delay" id="ElF0q|V8@FCn?rRm)y0k"><value name="DELAY"><block type="variables_get" id="(tiq@{,heI2~NpEU,xQJ"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="a#aJl5xEbHa3BpeX2g)Q"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="`kk7cin#bu4CV)9e]AY+"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="$ZbzfeX`KcK4@!g!0$~7"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="Jz!ck1ta,_8sTk;Zr(_^"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="`}q)jggpDy]St{EJ_9D."><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="]4,l%tvX!0,=CO{r1x*g"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="g,XT1axi%;TSyOzXeov("><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="$i.tqgFcz+/sHly=SJvZ"><field name="VAR" id="_TR;_OGyXAX;pZu;tDJf">2</field></block></value><value name="ARG1"><block type="variables_get" id="3Ct/_!.V=,*/EI!/D3pf"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="EB+Ga%c+RRj8%$Qn-v0m"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="^1yo-JZ%E{w-6luLgI@7"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id=":;5l]Wu@-D/LksS#`Qia"><next><block type="flow_delay" id="/6sWF-3vTZoIrVw~n#7W"><value name="DELAY"><block type="variables_get" id="OCfZxZ`Jd#}zI{%[P%n`"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="AW7^3ZZgsSFt3H^%gCw^"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id="u.87N3sZceOZi6E6!6pz"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="u|Ok^so8HySs0iNxxKs8"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="rX]+L^eeY/bXvpeOpd9p"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="YaqUu!CL^vzX9YtxEb+W"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="`AU;T$p.AsQMB3UB2g/q"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="HMev=9FHKyJ%14Y?{sO1"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="iG@=8@VDuzb*]`E,9cjQ"><field name="VAR" id="X8=}?3D]2x5*$N3/w!,k">3</field></block></value><value name="ARG1"><block type="variables_get" id="*`]^tzI$Pl^P@)uJI0mJ"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="]H=$ULoQ;5R}fnb%A9^#"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="KY}HkMO4D:t@61gAA%1="><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="@nT_WSlY`q^eIq[i5%NK"><next><block type="flow_delay" id="!@P(q_pCaK2-q|JG@~8K"><value name="DELAY"><block type="variables_get" id="yyRri^lu/l`IxDh`.|/|"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value><next><block type="set_pixel_color" id="DaXXVX#N}LW@jg)p;zzz"><field name="MODE">MODE2</field><value name="FROM"><block type="math_number" id=";/5m8-DhHUg2~31ng!R?"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id=":6Tq.6Y%)XdxA[uGSzg:"><field name="NUM">16</field></block></value><value name="H"><block type="variables_get" id="M,Z2Q/M4;kU}+V@1BDGU"><field name="VAR" id="/0y_uI4Jv4bU)cSDh7)J">Fa H in °</field></block></value><value name="S"><block type="math_number" id="54uu6y~0-sssfuJb2x`o"><field name="NUM">100</field></block></value><value name="B"><block type="variables_get" id="]XL`aWJig?8HW[1WbO1u"><field name="VAR" id="Gegiis%pZIy4H8~8b)IO">He H in %</field></block></value><next><block type="procedures_callnoreturn" id="kq~Kq(gIbM!X*@VxG)wH"><mutation name="Speichere Muster in Zwischenspeicher von Matrix"><arg name="Muster-dezimal-Code"></arg><arg name="Farbe in °"></arg><arg name="Sättigung in %"></arg><arg name="Helligkeit in %"></arg></mutation><value name="ARG0"><block type="variables_get" id="4sV4kZ+gjLCo5UJSb3r("><field name="VAR" id="QE/jr0[0w5lKSW{oYgNL">4</field></block></value><value name="ARG1"><block type="variables_get" id="ZEbb@GVtW27T];{Xb-nK"><field name="VAR" id="?K7eWV.aphZ(1PnR%k@g">Fa V in °</field></block></value><value name="ARG2"><block type="math_number" id="Y=~4{=%(=mXBNN1hD^MV"><field name="NUM">100</field></block></value><value name="ARG3"><block type="variables_get" id="V!qCf+K^9.c.Nra)3:Ct"><field name="VAR" id="-f{zBV=w=olsvW#/PEGZ">He V in %</field></block></value><next><block type="fast_led" id="SH+foN.vEP*zWfzH4P*A"><next><block type="flow_delay" id="Y0$R7%}pytu)]7F{YWML"><value name="DELAY"><block type="variables_get" id="Ya[qR/ZimDng/nGml;wr"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Tempo in ms</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="basic_comment" id="!DUL@^z!ks/PhhNi+cp9" x="1315" y="-369"><field name="COMMENT">Helligkeit Hintergrund</field></block><block type="procedures_defnoreturn" id="?SfC3CIs`::YLgrXY^Z5" collapsed="true" x="-515" y="-230"><mutation><arg name="Muster-dezimal-Code" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe in °" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung in %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit in %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte Muster mit Matrix</field><statement name="STACK"><block type="variables_set" id="(L(So~,eCHHb_b/3OX9A"><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="variables_get" id="!Kfm|d)H,cKeirrOZ+M5"><field name="VAR" id="n/_%;f5mNS1Ev%_YDewY">Muster-dezimal-Code</field></block></value><next><block type="flow_for" id="8?gOhI~8@8u4l^87u-Yr"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field><value name="FROM"><block type="math_number" id="(lCd}5y!ju,P8^BmhS];"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="@BS3]9]:}F|AC@=W]XW("><field name="NUM">16</field></block></value><value name="BY"><block type="math_number" id="gaY?_yHrFkqYJ~lm[F@^"><field name="NUM">1</field></block></value><statement name="DO"><block type="variables_set" id="/zOT=$D`MV0}qc`z#j$^"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field><value name="VALUE"><block type="math_single_basic" id="TP9!}zlsxKQsbZ!oJfb|"><field name="OP">ABS</field><value name="NUM"><block type="math_div" id="p%{):;Y_9HK7#H|u.tPf"><value name="VAL1"><block type="code_pin" id="{E^Qk`#Tn,9B}:Q[yYhm"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="VAL2"><block type="math_number" id="0NE.v8P$h11vxZ!:OlN7"><field name="NUM">2</field></block></value></block></value></block></value><next><block type="logic_if" id="t2rZ?)EmqvWv.,w1~/e|"><value name="IF0"><block type="logic_compare" id="~)%.^y+KcD3LZC,rL[sO"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=".=d+C=|eRc0R/$Oh|)o`"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="math_number" id="hk?`,Q#+kGHuwwG[,JwL"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="set_pixel_color" id="$#4sOy_I,5(dy=m(cOkm"><field name="MODE">MODE2</field><value name="FROM"><block type="variables_get" id="Uhhtqh~65_iF]Lk~*.a4"><field name="VAR" id="#bI4ov(rS`RxMd$x~mRD">BitNummer</field></block></value><value name="TO"><block type="math_number" id="sT4oR}=Ce3%o#W@wp-+S"><field name="NUM">1</field></block></value><value name="H"><block type="variables_get" id="nyVW[L}EH:~SZZ-_DYt9"><field name="VAR" id="w*31~?|+c#PT^JI#`;G1">Farbe in °</field></block></value><value name="S"><block type="variables_get" id="TGJh[{uS|xh;sEm[,}X|"><field name="VAR" id=".+_,gCEH:Q9W:j!A62*0">Sättigung in %</field></block></value><value name="B"><block type="math_arithmetic" id="!C_I~h|0MZ[+Ucm[nc1y"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get" id="T9vL:6K=*LM^L~I3Uypk"><field name="VAR" id="l9Ei[B]UF0YL`FcrA^#|">Bit</field></block></value><value name="B"><block type="variables_get" id="C5Lm0ef,_eshom*;2qot"><field name="VAR" id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit in %</field></block></value></block></value></block></statement><next><block type="variables_set" id="rGU1,%!=xQb.)$8CiLW["><field name="VAR" id="A3PF)7zzfI3ZS3bZ#rFM">Dividend</field><value name="VALUE"><block type="math_arithmetic" id="uqLLj.dio)oPT}s6!,DE"><field name="OP">DIVIDE</field><value name="A"><block type="code_pin" id="{~?eq1#)+JA~IgcB(GP,"><field name="CODE_PIN">(unsigned int)Dividend</field></block></value><value name="B"><block type="math_number" id="C=5L@PiuLJNsS1}*H#X$"><field name="NUM">2</field></block></value></block></value></block></next></block></next></block></statement><next><block type="fast_led" id="C!],#6%q_KagyLso%TZg"><next><block type="fast_led_clear" id="gCE0[S7l.=s;~RHk:oqI"><next><block type="code_input" id="`)?xI_O.mMs}vJF/s)tR"><field name="CODE_INPUT">// Lerne hier, wie eine Dezimalzahl in eine Binärzahl umgewandelt wird&amp;#10;// https://www.rapidtables.com/convert/number/decimal-to-binary.html?x=10</field></block></next></block></next></block></next></block></next></block></statement></block><block type="set_neo_pixel" id="bmw]#GEj(a2!6OWUx@(|" x="230" y="-257"><value name="NUM_LEDS"><block type="math_number" id=":`o#0|wMGz{4ui13Z!i["><field name="NUM">16</field></block></value><value name="BRIGHTNESS"><block type="math_number" id="?oeGzA+Ap#NUC{QOvgU("><field name="NUM">30</field></block></value><value name="OUTTURN"><block type="led_pin" id="@0xE:ifIn0bNeU*TR*/y"><field name="LED">LED1</field></block></value></block><block type="basic_main_loop" id="oh{4)]E/c6ZnlvMJU:hx" deletable="false" x="227" y="-138"><value name="BLINK"><block type="basic_blinkcode" id="30Q8]G`cyw:$0tmjHjkl"><field name="SHORT">1</field><field name="LONG">1</field></block></value><statement name="CODE"><block type="flow_repeat" id="w$2MQT=}aSgSnvayO9x1"><value name="REPEATS"><block type="math_random_int" id="{5Yi.HIg!hqNhJ#7t7dY"><value name="FROM"><block type="math_number" id=";*0FUZsa|J1%?hSl4D:g"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id=")yi$L/z(ZnB0#0Px,rog"><field name="NUM">4</field></block></value></block></value><statement name="DO"><block type="variables_set" id="PKCbYDVx4bbG9KWXve:k"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field><value name="VALUE"><block type="math_arithmetic" id="L}r`S;viR4;CnSY5ekww"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="*]YJ]#EKYs:r*~YW?*XO"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="B"><block type="math_number" id="T~{k;g)_}57e9n:Wdd)o"><field name="NUM">5</field></block></value></block></value><next><block type="flow_until" id="PhgsVLfj~_MqQrrN3un?"><value name="CONDITION"><block type="logic_compare" id="a[-rn8i0,L~KbWM`T6!C"><field name="OP">GT</field><value name="A"><block type="sensor_read_percentage" id="U|udh8A4j,!0Ce=WEzr)"><value name="SENSOR"><block type="sensor_pin" id="]jnVSOY!_SgA3%:-:lg|"><field name="SENSOR">SENSOR3</field></block></value></block></value><value name="B"><block type="math_number" id="8Evjd}atD5eKVo8aSh~8"><field name="NUM">70</field></block></value></block></value><next><block type="procedures_callnoreturn" id="bb.Vcv%]PPK7M=yd;:Qt"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="MPJ^Uc}tz;Ce)XE-w+cS"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="l|ss%f!}oAk(CIn;(N%W"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="Ul^~otIJH[I+p82#x5X*"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="JpQ9+38#A[l`Ub`%DwL#"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="VB!f8=l(#IQKQB#Bq^*("><field name="NUM">20</field></block></value><value name="ARG5"><block type="variables_get" id="v^8:,0e#m+a.L-vL*-!i"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="ARG6"><block type="math_number" id="vq6,;F:zs#{q{fWTxpw2"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="?}gm@BsM3-TJQ{3Y|WXZ"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="(VY@vh+,V+n=BKVFX(7`"><field name="NUM">0</field></block></value><next><block type="flow_delay" id="WxF.JcRWP,nka/vw/jr|"><value name="DELAY"><block type="math_number" id="t`#.OB`WOLAF!FQlNeE$"><field name="NUM">200</field></block></value><next><block type="flow_until" id="ri+ef[Ir8vB,W9osGL;5"><value name="CONDITION"><block type="logic_compare" id="9#PeoRvYpal$bAhF/R1B"><field name="OP">GT</field><value name="A"><block type="sensor_read_percentage" id="AE_X7,q}oCj]:;fij]AR"><value name="SENSOR"><block type="sensor_pin" id="ayoy0k6|PRZDq*B+KoAA"><field name="SENSOR">SENSOR3</field></block></value></block></value><value name="B"><block type="math_number" id="HDtUWHaX|_4(ROX6;53?"><field name="NUM">70</field></block></value></block></value><next><block type="procedures_callnoreturn" id="lu#6+T{JWL6@6Qtbm+5N"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="OtZ_fpq%jy(*^+@L3O7F"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="T%(HQW6s.Xfv0UhT(0[}"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="?zp~w0Vmw*SwvFupR^bj"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="cK^Rjpw$lz$[pP}tec0}"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="V4.G`oRiPseQ{B~C$GY|"><field name="NUM">20</field></block></value><value name="ARG5"><block type="variables_get" id="T$Zi`iXwg@Q)ler*e2nm"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="ARG6"><block type="math_number" id="Y%xLh`2aykHn2[ia-J;H"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="E(BHgUq{+!sp~X`~F7]q"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="qIT^pw)pr5%!Iu2hCL(]"><field name="NUM">0</field></block></value><next><block type="flow_delay" id="mWWTysd;Nvc]wQi*4iiY"><value name="DELAY"><block type="math_number" id=";M+w[HpTo:W$O}=3b_Y!"><field name="NUM">200</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type="flow_repeat" id="rB38AII9-fl4g`RxH(P^"><value name="REPEATS"><block type="math_random_int" id="QnC=yl$H{%X0-T|y``Hu"><value name="FROM"><block type="math_number" id="w`NM(lm.zS;iV[(:lyT@"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="8UhD375Tv0~o(suY*_wK"><field name="NUM">4</field></block></value></block></value><statement name="DO"><block type="variables_set" id="dqV2=W}_jM;9SEtJqrto"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field><value name="VALUE"><block type="math_arithmetic" id="}?I-G/Z!wGPd(~pRT!+}"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="l1^3A@}AqURoW3lW:qs7"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="B"><block type="math_number" id="cW+k;]|K8:G*Ibi6%@;]"><field name="NUM">5</field></block></value></block></value><next><block type="flow_until" id="*kjFyy%fYef:/3m;*-1l"><value name="CONDITION"><block type="logic_compare" id="ENK%BiH!C.S|To[(pSX|"><field name="OP">GT</field><value name="A"><block type="sensor_read_percentage" id="Kwo^;b-=,tE~Uhp7;Q(."><value name="SENSOR"><block type="sensor_pin" id="5k?.3KNYhg_-lT^i^qL7"><field name="SENSOR">SENSOR3</field></block></value></block></value><value name="B"><block type="math_number" id="|P5C5JTZh/6a=GB48Y;s"><field name="NUM">70</field></block></value></block></value><next><block type="procedures_callnoreturn" id="cvF*q2~hkd]IPw2!]%-="><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="41QQ9xY4:_p6Ll90rNp/"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="%ex8vlu]9Q!5vfne2BoG"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="1)=rX.hY:0e1v74_^Bh-"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="Txk-,PUAsWRD$7lz$2|0"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="#J9,lPQ+#RZ.O_?PpDP6"><field name="NUM">20</field></block></value><value name="ARG5"><block type="variables_get" id="Qk:z)(#|aGDM=Q6dK6}_"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="ARG6"><block type="math_number" id="a$!+Sv3`Vx@wH*6aa@b/"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="1;jW8kJ8aA*}^%A/arD["><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="O1?qG(F`j;NZu*DA/}vG"><field name="NUM">0</field></block></value><next><block type="flow_delay" id="bZm`:({cr?rA$NgM8e3Y"><value name="DELAY"><block type="math_number" id="I||[7C_Ib@2_mgw3Z1UG"><field name="NUM">200</field></block></value><next><block type="flow_until" id="p?Coq1B6sIGiHsT,w)zZ"><value name="CONDITION"><block type="logic_compare" id="Y|diFu`d/`K=4I(Zo:78"><field name="OP">GT</field><value name="A"><block type="sensor_read_percentage" id="*@r@$7c_=X`Xxvh_X=@%"><value name="SENSOR"><block type="sensor_pin" id="uaZ|A`9@[Oyvpk;=s2:^"><field name="SENSOR">SENSOR3</field></block></value></block></value><value name="B"><block type="math_number" id=")4@a?rD=g4zVWsy1;i/U"><field name="NUM">70</field></block></value></block></value><next><block type="procedures_callnoreturn" id="-k]^9.Xp_HsjQ7T8y`$T"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="L2W+dq_nWG3Rj4JB_ugx"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="p},%kze#wu!+D;y:CCsA"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="R?rG7]40$g,Ug8t![qf9"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="ng,}CoEFFCVF@%:5NIFD"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="3yZLef!~%|AmdVa82bi@"><field name="NUM">20</field></block></value><value name="ARG5"><block type="variables_get" id="5;0u-cXrPoPXhCw4nT#z"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="ARG6"><block type="math_number" id="JdDwO_y@Dibj[jL9xs3D"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="4KA=6TjAhPI-GXT5C{w3"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="EVW}O|}rl8jvdc0blcKz"><field name="NUM">0</field></block></value><next><block type="flow_delay" id="^rw.NcWAu):DK(O7)Gb]"><value name="DELAY"><block type="math_number" id="S/ncRExSpDB{x]oZMu9B"><field name="NUM">200</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type="flow_repeat" id="k.lu;Wlry$4.93BA6I-L"><value name="REPEATS"><block type="math_random_int" id="A1=:pnIPW/w%*ixtMgy{"><value name="FROM"><block type="math_number" id="-$olMxt8AIkws_uwx9,g"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="jA!yH+Y`_n9DYT6$vMmh"><field name="NUM">5</field></block></value></block></value><statement name="DO"><block type="variables_set" id="xAN2|tZ0ed(%1W-I2YOi"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field><value name="VALUE"><block type="math_arithmetic" id="*0*t1|2HEXHsZpH(`.U7"><field name="OP">ADD</field><value name="A"><block type="variables_get" id="t=$TQpmyt0zlX}Td}UNV"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="B"><block type="math_number" id="tzr(D3YZnMV17~Vz@)vZ"><field name="NUM">5</field></block></value></block></value><next><block type="flow_until" id="wdw0aI]lU)n8:~tfU@BU"><value name="CONDITION"><block type="logic_compare" id="EWXUe5x?aAPXY?ZUVa|K"><field name="OP">GT</field><value name="A"><block type="sensor_read_percentage" id="s^%o0**8dBGvPvUKX[A?"><value name="SENSOR"><block type="sensor_pin" id="2PD7Ydm8USBg;zE=r5uV"><field name="SENSOR">SENSOR3</field></block></value></block></value><value name="B"><block type="math_number" id="aclRW50Y0Sc^a0wiUb-!"><field name="NUM">70</field></block></value></block></value><next><block type="procedures_callnoreturn" id="/iu!Y?e,!$(Ati9,=Q$N"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="ktv;`T;*t9]Js8#Ecy@N"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="o~V)Zo}%8VC+Rqlg/BaW"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="17YRu;DUhn_%KNI}Y#c."><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="LJ2NQl:sMcZ?0!+Vd7lF"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="5rX^~2q#6|z9yU6cn%R:"><field name="NUM">20</field></block></value><value name="ARG5"><block type="variables_get" id="K;7jN?]?6)rUi5$|y=5a"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="ARG6"><block type="math_number" id="M!8w)JY4j9sIB(Vh2aSg"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="jo*N3,vdF}ksPd1n;Y0."><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="t[_h:-E=~#vwTJY8Z=Q}"><field name="NUM">0</field></block></value><next><block type="flow_delay" id="FRfU[hNdn)]biBrHs0|v"><value name="DELAY"><block type="math_number" id="@I(DtgsW6bp)9g~Vnl%I"><field name="NUM">200</field></block></value><next><block type="flow_until" id="X{Z.4u0I/zZ4R[@ijY+R"><value name="CONDITION"><block type="logic_compare" id="6q9jda!/EwWq6OLG5X}m"><field name="OP">GT</field><value name="A"><block type="sensor_read_percentage" id="]LKSd-r=,UEVZ*u5|;rk"><value name="SENSOR"><block type="sensor_pin" id="KLb:f!Ox/ONF:Jw?NF~k"><field name="SENSOR">SENSOR3</field></block></value></block></value><value name="B"><block type="math_number" id="boSF]1Jw!`)qn%6.%F]+"><field name="NUM">70</field></block></value></block></value><next><block type="procedures_callnoreturn" id="7hr#mY;JEOCcTgm_rSvW"><mutation name="Animation mit 4 Mustern"><arg name="Muster 1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Tempo in ms"></arg><arg name="Fa V in °"></arg><arg name="Fa H in °"></arg><arg name="He V in %"></arg><arg name="He H in %"></arg></mutation><value name="ARG0"><block type="math_number" id="B2bpE*)W-zn(0#L[PypJ"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id=")5%|/iMh)f].|0.2yY(+"><field name="NUM">0</field></block></value><value name="ARG2"><block type="math_number" id="AAQ8A;agl17|+%e*;i1+"><field name="NUM">0</field></block></value><value name="ARG3"><block type="math_number" id="dmv2r6oO9-ABF3V^$4UO"><field name="NUM">0</field></block></value><value name="ARG4"><block type="math_number" id="yaME:$R(TquD8TM/Io21"><field name="NUM">20</field></block></value><value name="ARG5"><block type="variables_get" id="mhS@*~5^=ze=PzC!~eMl"><field name="VAR" id="qE%P-A0MYd*NExEksrO!">Farbe</field></block></value><value name="ARG6"><block type="math_number" id="q7UAdB+o-IeeDm,Y6z!0"><field name="NUM">225</field></block></value><value name="ARG7"><block type="math_number" id="{b;aH6yu6^azjTD;u-}9"><field name="NUM">100</field></block></value><value name="ARG8"><block type="math_number" id="JZJ;L:?;j*hM(+u2!8RJ"><field name="NUM">0</field></block></value><next><block type="flow_delay" id="iZo(90:nuzQu|uFLpIyh"><value name="DELAY"><block type="math_number" id="hbr|h0*RI`7ay~Z=+mFG"><field name="NUM">200</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block><block type="basic_comment" id="3Vt-O~Da.q30B6!_$Tvl" x="76" y="76"><field name="COMMENT">Animation 1 (vor)</field></block><block type="basic_comment" id="B]?XO_uLPHJoHaP/?zZs" x="71" y="245"><field name="COMMENT">Animation 1 (rück)</field></block><block type="basic_comment" id="obJp8d5B9CV}Xz[lZ;Bn" x="80" y="522"><field name="COMMENT">Animation 2 (vor)</field></block><block type="basic_comment" id="Ir^WGG_6RFe%tvoIe$kc" x="76" y="685"><field name="COMMENT">Animation 2 (rück)</field></block><block type="basic_comment" id="E/G,*wDT:+OVS[,k)b[!" x="82" y="968"><field name="COMMENT">Animation 3 (vor)</field></block><block type="basic_comment" id="~vgao%KQme_A#Q!bF=^+" x="77" y="1128"><field name="COMMENT">Animation 3 (rück)</field></block></xml>

Was sind e-Textilien?

e-Textilien in der Innenarchitektur

Leuchtende e-Textilien sind in der Innenarchitektur (interior design ↗) ein spannendes Gestaltungsmittel, denn textile Flächen eignen sich gut für stimmungsvolle Spielereien mit Licht. Sei es für Vorhänge, textile Wandverkleidungen oder einen besonderen Innenraum im Auto: mit LED-Textilien lassen sich Innenräume vielfältig gestalten.

Video: creationbaumann.com

Videos: mentor.de.com

e-Textilien in der Mode

In der Mode bilden leuchtende Textilien eine neue Möglichkeit, dezent-extravagante Kleidungsstücke für besondere Anlässe zu gestalten. Die in St. Gallen ansässige und traditionsreiche Stickerei Forster Rohner Gruppe, kleidet mit ihren Stickereien nicht nur Grössen wie Queen Elizabeth II., Anna Wintour oder Jennifer Lawrence ein, sondern entwickelt und produziert u.a. Leuchttextilien (e-broidery® Technologie).

Wer sich mit e-Textilien beschäftigt, merkt schnell, dass weniger oft mehr ist. Es braucht nicht viel, um mit der Magie des Lichts und schönen Stoffen faszinierende neue Mode zu erschaffen.

Videos: elektrocouture.com

Weitere Links zu e-Textilien

Schülerarbeiten, Storys und Neuentwicklungen