PGLU > TTG Projekt > Neopixel MATRIX > Coding

Neopixel Matrix Designer für Spiel mit Licht oder e-Textilien

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!

Das brauchst du zum Arbeiten

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 Designer?

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 Grundsketches in den Editor ↗
  2. Füge dann den Dezimal-Code aus deiner Matrix dort ein

>Lerne hier die Grundlagen von Neopixeln ↗ kennen

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

> Empfohlen zum Arbeiten mit der Teacher's Box:  Matrix Designer hier herunterladen ⤓

Grundsketches für Matrix-Designer

Lade einen dieser Sketches in den Editor und gebe dort den Dezimalcode deiner Matrix ein. Weitere Infos dazu findest du auch in den Aufgaben 10 - 15 ↑.

1. Einfache Matrix

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

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Dezimalcode</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe°</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit %</variable><variable id="/qKL*;/x!%R,!Ovhh3ZU">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">Pause ms</variable><variable id="?K7eWV.aphZ(1PnR%k@g">FV°</variable><variable id="/0y_uI4Jv4bU)cSDh7)J">FH°</variable><variable id="-f{zBV=w=olsvW#/PEGZ">HV%</variable><variable id="Gegiis%pZIy4H8~8b)IO">HH%</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="5X]|a^.WwR,P~/FMKj|U" x="233" y="-382"><field name="COMMENT">MATRIX DESIGNER - einfache Matrix</field></block><block type="basic_comment" id="Px[3;=!KpZjLoreb6zz;" x="232" y="-333"><field name="COMMENT">Trage in das Feld "Dezimalcode" eine Zahl aus dem Matrix-Designer ein</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">100</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="Dezimalcode" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe°" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte 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">Dezimalcode</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°</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 %</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 %</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="Dezimalcode" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe°" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Matrix in Zwischenspeicher</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">Dezimalcode</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°</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 %</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 %</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="|D7Q%!P]H0]FsT.8:pYa"><mutation name="Leuchte Matrix"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="math_number" id="Pau%qs!l5IV$?$.O+bE_"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="vSqt,LVFZ^#Cq6Sg!5-e"><field name="NUM">120</field></block></value><value name="ARG2"><block type="math_number" id="6[-BIsVr:iDg}gQ(pS?)"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="q|H8MlNFnIE}1hM%E=OE"><field name="NUM">100</field></block></value></block></statement></block><block type="procedures_defnoreturn" id="2~?vi.;+.rR/Lo^Ss;oc" collapsed="true" x="-248" y="-107"><mutation><arg name="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="Pause ms" varid="ATZ]^Dr%JzgVl(W,w9RE"></arg><arg name="FV°" varid="?K7eWV.aphZ(1PnR%k@g"></arg><arg name="FH°" varid="/0y_uI4Jv4bU)cSDh7)J"></arg><arg name="HV%" varid="-f{zBV=w=olsvW#/PEGZ"></arg><arg name="HH%" varid="Gegiis%pZIy4H8~8b)IO"></arg></mutation><field name="NAME">Leuchte Animation</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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="x.[+RdA(*n-du0xqJ_0z"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="variables_get" id="^vv;Rc7^BnaD2^]jLSo;"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="KqWQH@K_n2jX+~IFerFc"><next><block type="logic_if" id="QU:XnpF[HS,SY7%+#!/%"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="*+Rj=qi|dw)ysh.-%C=,"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=":Z_l?uc_C4ERn|M_,C#K"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">1</field></block></value><value name="B"><block type="math_number" id="hC=$oCiLpG[ZsB@d53Y~"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="qCGcnIl)9V?Yvo,s%GY1"><value name="DELAY"><block type="variables_get" id="iWp-AxU;^+w_*ryrYvSZ"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="g,XT1axi%;TSyOzXeov("><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id=":;5l]Wu@-D/LksS#`Qia"><next><block type="logic_if" id="|aNH!5]0B!@8ANO9-N3}"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="fN3kE`liSZ;5zY$5~t[%"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="tG=KnlUMGxIGgc/*P+{K"><field name="VAR" id="_TR;_OGyXAX;pZu;tDJf">2</field></block></value><value name="B"><block type="math_number" id="#FL9,9T[KC|JUPCe%xx."><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="!jtg/+qHMO.[7xDA,8%+"><value name="DELAY"><block type="variables_get" id="l2qsyAyJEls{YkA_Zs4P"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="HMev=9FHKyJ%14Y?{sO1"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="@nT_WSlY`q^eIq[i5%NK"><next><block type="logic_if" id="{BK.V(g6w@9[rz=;RtIB"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="kC~=Qk%H~08xetx!Tr--"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="}t/:mj0Wr(.=LcP/1IkV"><field name="VAR" id="X8=}?3D]2x5*$N3/w!,k">3</field></block></value><value name="B"><block type="math_number" id="QT-_o;{h!YSnLvFca^|V"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="|yY^F2gUhdbS,x?AzHoR"><value name="DELAY"><block type="variables_get" id="[K[}3DqWVb}NeTmbg|2%"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="kq~Kq(gIbM!X*@VxG)wH"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="SH+foN.vEP*zWfzH4P*A"><next><block type="logic_if" id="a*S`R)G$?knkPgcQ`|sM"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="x?GvH?5o^]mZ,~^H(|VP"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="niTuT0N}Q_3.)82e#)#N"><field name="VAR" id="QE/jr0[0w5lKSW{oYgNL">4</field></block></value><value name="B"><block type="math_number" id="8gnM8Ss9ZnZ37t7%mC$4"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="8!@WHQC^[-gKehLdzD$q"><value name="DELAY"><block type="variables_get" id="8y^38y+WpV8Ug{_Wjm0u"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement></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></xml>

2. Mehrfarbige Matrix

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

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Dezimalcode</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe°</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit %</variable><variable id="/qKL*;/x!%R,!Ovhh3ZU">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">Pause ms</variable><variable id="?K7eWV.aphZ(1PnR%k@g">FV°</variable><variable id="/0y_uI4Jv4bU)cSDh7)J">FH°</variable><variable id="-f{zBV=w=olsvW#/PEGZ">HV%</variable><variable id="Gegiis%pZIy4H8~8b)IO">HH%</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="5X]|a^.WwR,P~/FMKj|U" x="231" y="-467"><field name="COMMENT">MATRIX DESIGNER - mehrfarbige Matrix</field></block><block type="basic_comment" id="Px[3;=!KpZjLoreb6zz;" x="229" y="-411"><field name="COMMENT">Ähnlich wie bei Photoshop-Ebenen, werden hier mehrere Matrizen übereinander gelegt. &amp;#10;Weist eine Matrix transparente Pixel auf, ist darunter liegende Matrix sichtbar.&amp;#10;&amp;#10;Im Gegensatz zu Photoshop werden die Ebenen aber von unten her "gedacht". &amp;#10;Matrix 3 überdeckt Matrix 2 und diese wiederum überdeckt Matrix 1</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">100</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="Dezimalcode" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe°" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte 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">Dezimalcode</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°</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 %</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 %</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="Dezimalcode" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe°" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Matrix in Zwischenspeicher</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">Dezimalcode</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°</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 %</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 %</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="Uq.!w|dyJg.*XXlS}X*J"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="math_number" id="Cs/N8#M)IW$-),lR9LhJ"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="WHQZ-GO@)6y?SlI!c[%M"><field name="NUM">120</field></block></value><value name="ARG2"><block type="math_number" id="IH8Px(f7l(g!W{nNe1=X"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="II#d+`y,`Dr2h;)kaBOE"><field name="NUM">100</field></block></value><next><block type="procedures_callnoreturn" id="T,t4N?nE^7^F[d?vnz:{"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="math_number" id="{*!p632oV^]nT:q;L{/Q"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id="4.8u]w-Gx@US;M@%VJd1"><field name="NUM">225</field></block></value><value name="ARG2"><block type="math_number" id="t06lD8%3_EW-Sz?bX^QC"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id="!)A|I5Mxp5O;^]$o,KD6"><field name="NUM">100</field></block></value><next><block type="procedures_callnoreturn" id="jH3@W$kZwbYxK*7[g;U3"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="math_number" id="P7c]QxdO/F]j}ML%.nU0"><field name="NUM">0</field></block></value><value name="ARG1"><block type="math_number" id=".n2:]]jv5fKZ{rQZQwli"><field name="NUM">300</field></block></value><value name="ARG2"><block type="math_number" id="Jkwwy}xm%22ngVf=8Glf"><field name="NUM">100</field></block></value><value name="ARG3"><block type="math_number" id=",PvaTyBx`aWa=s8TOdRy"><field name="NUM">100</field></block></value><next><block type="fast_led" id="5wq!y*TrRzh0H,SYP{r5"></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="2~?vi.;+.rR/Lo^Ss;oc" collapsed="true" x="-251" y="-107"><mutation><arg name="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="Pause ms" varid="ATZ]^Dr%JzgVl(W,w9RE"></arg><arg name="FV°" varid="?K7eWV.aphZ(1PnR%k@g"></arg><arg name="FH°" varid="/0y_uI4Jv4bU)cSDh7)J"></arg><arg name="HV%" varid="-f{zBV=w=olsvW#/PEGZ"></arg><arg name="HH%" varid="Gegiis%pZIy4H8~8b)IO"></arg></mutation><field name="NAME">Leuchte Animation</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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="x.[+RdA(*n-du0xqJ_0z"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="variables_get" id="^vv;Rc7^BnaD2^]jLSo;"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="KqWQH@K_n2jX+~IFerFc"><next><block type="logic_if" id="QU:XnpF[HS,SY7%+#!/%"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="*+Rj=qi|dw)ysh.-%C=,"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=":Z_l?uc_C4ERn|M_,C#K"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">1</field></block></value><value name="B"><block type="math_number" id="hC=$oCiLpG[ZsB@d53Y~"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="qCGcnIl)9V?Yvo,s%GY1"><value name="DELAY"><block type="variables_get" id="iWp-AxU;^+w_*ryrYvSZ"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="g,XT1axi%;TSyOzXeov("><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id=":;5l]Wu@-D/LksS#`Qia"><next><block type="logic_if" id="|aNH!5]0B!@8ANO9-N3}"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="fN3kE`liSZ;5zY$5~t[%"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="tG=KnlUMGxIGgc/*P+{K"><field name="VAR" id="_TR;_OGyXAX;pZu;tDJf">2</field></block></value><value name="B"><block type="math_number" id="#FL9,9T[KC|JUPCe%xx."><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="!jtg/+qHMO.[7xDA,8%+"><value name="DELAY"><block type="variables_get" id="l2qsyAyJEls{YkA_Zs4P"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="HMev=9FHKyJ%14Y?{sO1"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="@nT_WSlY`q^eIq[i5%NK"><next><block type="logic_if" id="{BK.V(g6w@9[rz=;RtIB"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="kC~=Qk%H~08xetx!Tr--"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="}t/:mj0Wr(.=LcP/1IkV"><field name="VAR" id="X8=}?3D]2x5*$N3/w!,k">3</field></block></value><value name="B"><block type="math_number" id="QT-_o;{h!YSnLvFca^|V"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="|yY^F2gUhdbS,x?AzHoR"><value name="DELAY"><block type="variables_get" id="[K[}3DqWVb}NeTmbg|2%"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="kq~Kq(gIbM!X*@VxG)wH"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="SH+foN.vEP*zWfzH4P*A"><next><block type="logic_if" id="a*S`R)G$?knkPgcQ`|sM"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="x?GvH?5o^]mZ,~^H(|VP"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="niTuT0N}Q_3.)82e#)#N"><field name="VAR" id="QE/jr0[0w5lKSW{oYgNL">4</field></block></value><value name="B"><block type="math_number" id="8gnM8Ss9ZnZ37t7%mC$4"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="8!@WHQC^[-gKehLdzD$q"><value name="DELAY"><block type="variables_get" id="8y^38y+WpV8Ug{_Wjm0u"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement></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="9;ZNbyfaxu%3O,IFTV]`" x="1062" y="-103"><field name="COMMENT">Matrix 1</field></block><block type="basic_comment" id="#[xLxIM`0USG{rn^UXC:" x="1063" y="-62"><field name="COMMENT">Matrix 2</field></block><block type="basic_comment" id="r0W5mA(Ze?PXiKf@{ne+" x="1064" y="-22"><field name="COMMENT">Matrix 3</field></block><block type="basic_comment" id="~$=k)XyR(Nmj3[a^CX)3" x="608" y="25"><field name="COMMENT">Hier Dezimalcodes einfügen</field></block><block type="basic_comment" id="aeu,c]T9KX._}y/U}`/d" x="1063" y="20"><field name="COMMENT">Matrix...</field></block></xml>

3. Animation mit vier Matrizen

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

<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n/_%;f5mNS1Ev%_YDewY">Dezimalcode</variable><variable id="w*31~?|+c#PT^JI#`;G1">Farbe°</variable><variable id=".+_,gCEH:Q9W:j!A62*0">Sättigung %</variable><variable id="Kd8KnJ-r3g|d~PHtEiY6">Helligkeit %</variable><variable id="/qKL*;/x!%R,!Ovhh3ZU">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">Pause ms</variable><variable id="?K7eWV.aphZ(1PnR%k@g">FV°</variable><variable id="-f{zBV=w=olsvW#/PEGZ">HV%</variable><variable id="/0y_uI4Jv4bU)cSDh7)J">FH°</variable><variable id="Gegiis%pZIy4H8~8b)IO">HH%</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="5X]|a^.WwR,P~/FMKj|U" x="230" y="-646"><field name="COMMENT">MATRIX DESIGNER - Animator</field></block><block type="basic_comment" id="5tm*rj`Tn^aH.(5k*dvv" x="230" y="-596"><field name="COMMENT">Zeichne einfache Animationen, indem du die Matrizen 1,2,3 und 4 mit Dezimalcodes füllst</field></block><block type="basic_comment" id="]]2z1+Su6{V_8vx5/{k^" x="229" y="-545"><field name="COMMENT">&gt; FV° = Farbe Vordergrund in °&amp;#10;&gt; HV% = Helligkeit Vordergrund in %&amp;#10;&amp;#10;&gt; FH° = Farbe Hintergrund in °&amp;#10;&gt; HH% = Helligkeit Hintergrund in %&amp;#10;&amp;#10;&gt; Pause = Pause zwischen zwei Matrizen in ms&amp;#10;&gt; Dezimalcode = 0: Matrix wird übersprungen</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">100</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="Dezimalcode" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe°" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Leuchte 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">Dezimalcode</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°</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 %</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 %</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="Dezimalcode" varid="n/_%;f5mNS1Ev%_YDewY"></arg><arg name="Farbe°" varid="w*31~?|+c#PT^JI#`;G1"></arg><arg name="Sättigung %" varid=".+_,gCEH:Q9W:j!A62*0"></arg><arg name="Helligkeit %" varid="Kd8KnJ-r3g|d~PHtEiY6"></arg></mutation><field name="NAME">Speichere Matrix in Zwischenspeicher</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">Dezimalcode</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°</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 %</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 %</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"><arg name="1"></arg><arg name="2"></arg><arg name="3"></arg><arg name="4"></arg><arg name="Pause ms"></arg><arg name="FV°"></arg><arg name="HV%"></arg><arg name="FH°"></arg><arg name="HH%"></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">20</field></block></value><value name="ARG6"><block type="math_number" id="Ilje|qsm(Mlu|t@Z{*/M"><field name="NUM">100</field></block></value><value name="ARG7"><block type="math_number" id="T{`p,^`~JZO*/lI-3c,b"><field name="NUM">225</field></block></value><value name="ARG8"><block type="math_number" id="KXj0y9(#OxNbGEY48kVS"><field name="NUM">20</field></block></value></block></statement></block><block type="procedures_defnoreturn" id="2~?vi.;+.rR/Lo^Ss;oc" collapsed="true" x="-251" y="-107"><mutation><arg name="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="Pause ms" varid="ATZ]^Dr%JzgVl(W,w9RE"></arg><arg name="FV°" varid="?K7eWV.aphZ(1PnR%k@g"></arg><arg name="HV%" varid="-f{zBV=w=olsvW#/PEGZ"></arg><arg name="FH°" varid="/0y_uI4Jv4bU)cSDh7)J"></arg><arg name="HH%" varid="Gegiis%pZIy4H8~8b)IO"></arg></mutation><field name="NAME">Leuchte Animation</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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="x.[+RdA(*n-du0xqJ_0z"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></arg></mutation><value name="ARG0"><block type="variables_get" id="^vv;Rc7^BnaD2^]jLSo;"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="KqWQH@K_n2jX+~IFerFc"><next><block type="logic_if" id="QU:XnpF[HS,SY7%+#!/%"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="*+Rj=qi|dw)ysh.-%C=,"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=":Z_l?uc_C4ERn|M_,C#K"><field name="VAR" id="/qKL*;/x!%R,!Ovhh3ZU">1</field></block></value><value name="B"><block type="math_number" id="hC=$oCiLpG[ZsB@d53Y~"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="qCGcnIl)9V?Yvo,s%GY1"><value name="DELAY"><block type="variables_get" id="iWp-AxU;^+w_*ryrYvSZ"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="g,XT1axi%;TSyOzXeov("><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id=":;5l]Wu@-D/LksS#`Qia"><next><block type="logic_if" id="|aNH!5]0B!@8ANO9-N3}"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="fN3kE`liSZ;5zY$5~t[%"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="tG=KnlUMGxIGgc/*P+{K"><field name="VAR" id="_TR;_OGyXAX;pZu;tDJf">2</field></block></value><value name="B"><block type="math_number" id="#FL9,9T[KC|JUPCe%xx."><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="!jtg/+qHMO.[7xDA,8%+"><value name="DELAY"><block type="variables_get" id="l2qsyAyJEls{YkA_Zs4P"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="HMev=9FHKyJ%14Y?{sO1"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="@nT_WSlY`q^eIq[i5%NK"><next><block type="logic_if" id="{BK.V(g6w@9[rz=;RtIB"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="kC~=Qk%H~08xetx!Tr--"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="}t/:mj0Wr(.=LcP/1IkV"><field name="VAR" id="X8=}?3D]2x5*$N3/w!,k">3</field></block></value><value name="B"><block type="math_number" id="QT-_o;{h!YSnLvFca^|V"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="|yY^F2gUhdbS,x?AzHoR"><value name="DELAY"><block type="variables_get" id="[K[}3DqWVb}NeTmbg|2%"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement><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">FH°</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">HH%</field></block></value><next><block type="procedures_callnoreturn" id="kq~Kq(gIbM!X*@VxG)wH"><mutation name="Speichere Matrix in Zwischenspeicher"><arg name="Dezimalcode"></arg><arg name="Farbe°"></arg><arg name="Sättigung %"></arg><arg name="Helligkeit %"></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">FV°</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">HV%</field></block></value><next><block type="fast_led" id="SH+foN.vEP*zWfzH4P*A"><next><block type="logic_if" id="a*S`R)G$?knkPgcQ`|sM"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="x?GvH?5o^]mZ,~^H(|VP"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="niTuT0N}Q_3.)82e#)#N"><field name="VAR" id="QE/jr0[0w5lKSW{oYgNL">4</field></block></value><value name="B"><block type="math_number" id="8gnM8Ss9ZnZ37t7%mC$4"><field name="NUM">0</field></block></value></block></value><statement name="ELSE"><block type="flow_delay" id="8!@WHQC^[-gKehLdzD$q"><value name="DELAY"><block type="variables_get" id="8y^38y+WpV8Ug{_Wjm0u"><field name="VAR" id="ATZ]^Dr%JzgVl(W,w9RE">Pause ms</field></block></value></block></statement></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="435" y="-42"><field name="COMMENT">Hier Dezimalcodes einfügen</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

Ideensuche für Matrix-Projekte mit KI (Künstliche intelligenz)

Künstliche Intelligenz ist in aller Munde, aber kann man sie im Unterricht auch einsetzen? Wir haben den Test gemacht!

Die folgenden Bilder zeigen keine tatsächlichen PGLU-Projekte, sondern eine Ideensammlung mit Skizzen, die von künstlicher Intelligenz (KI) in unserem Auftrag erzeugt wurden. Dazu haben wir den Text-zu-Bild Generator von DALL-E verwendet. Nutze unsere Bilder als Ausgangslage für eigene Matrix-Ideen. Viel Spass beim Stöbern!

Wenn du mit deiner Maus über die Bilder fährst, erfährst du, mit welchen Texten wir die Bilder erzeugt haben. Du möchtest selber Bildideen mit künstlicher Intelligenz herstellen? Hier geht's zu DALL·E 🡥

Schülerarbeiten, Storys und Neuentwicklungen