1 line
7.1 KiB
XML
1 line
7.1 KiB
XML
<xml version=\"4Teaile-V1.5.4\" board=\"MicroPython[K210_AIBIT]\" xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"factory_block_notes\" id=\"FX/U^w](]M`f|hj~z.!Y\" x=\"181\" y=\"177\"><field name=\"VALUE\">APDS9960 \u624B\u52BF\u8BC6\u522B_\u624B\u52BF\u8BC6\u522B\u63A7\u5236\u706F\u4EAE\u5EA6</field><next><block type=\"factory_block_notes\" id=\"Geo!/f@YlOt8fXBN,iK?\"><field name=\"VALUE\">\u8FD4\u56DE\uFF1A0:NONE,1:LEFT,2:RIGHT,3:UP,4:DOWN,5:NEAR,6:FAR,7:ALL</field><next><block type=\"communicate_i2c_init\" id=\"?7GnIc_o{@UOUH,J4Y|,\"><value name=\"SUB\"><shadow type=\"variables_get\" id=\"v7gbru.0flV[7?Ob|`i|\"><field name=\"VAR\">i2c</field></shadow></value><value name=\"freq\"><shadow type=\"math_number\" id=\"hYqz~tWUi#Yva0^Adr7h\"><field name=\"NUM\">400000</field></shadow></value><next><block type=\"sensor_apds9960_init\" id=\"b$P-t_?{bhOT[CZMl*.x\"><field name=\"TYPE\">1</field><value name=\"SUB\"><shadow type=\"variables_get\" id=\"S-._HE#;g#d@cq-aq@:;\"><field name=\"VAR\">APDS</field></shadow></value><value name=\"SUBI2C\"><shadow type=\"variables_get\" id=\"^;d.ovp/=U2C7.oh7Cr;\"><field name=\"VAR\">i2c</field></shadow></value><next><block type=\"variables_set\" id=\"L]=jZ:7]uSvLuF;FxmrM\"><field name=\"VAR\">light</field><value name=\"VALUE\"><block type=\"math_number\" id=\"AS14,3qhHi-)JgR:n/!5\"><field name=\"NUM\">0</field></block></value><next><block type=\"actuator_led_PWMinit\" id=\"ahsJt4^UmtP[i=55%nEq\"><next><block type=\"controls_whileUntil\" id=\"/q}A:PyOYRcU?!^*O2-#\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><shadow type=\"logic_boolean\" id=\"{C|3Gv]tv*m@Y^_Q:7l3\"><field name=\"BOOL\">TRUE</field></shadow></value><statement name=\"DO\"><block type=\"variables_set\" id=\",q3:AK@,W:U4B=gow1)t\"><field name=\"VAR\">Gesture</field><value name=\"VALUE\"><block type=\"sensor_apds9960_readGesture\" id=\"w,p;oIxFJvh!h9,qhf#m\"><value name=\"SUB\"><shadow type=\"variables_get\" id=\"?jb?V00ozmt%u5Ho6vHT\"><field name=\"VAR\">APDS</field></shadow></value></block></value><next><block type=\"system_print\" id=\"7CMERh9]wd(Y,%7I|4OB\"><value name=\"VAR\"><shadow type=\"text\" id=\"X6t@.-}S,PZyq]J;lqsR\"><field name=\"TEXT\">Mixly</field></shadow><block type=\"variables_get\" id=\"rv-RDg;|8u1cp!@;8w+i\"><field name=\"VAR\">Gesture</field></block></value><next><block type=\"controls_delay\" id=\"/:9nu!ke`Th2y{WrA?Hu\"><field name=\"Time\">ms</field><value name=\"DELAY_TIME\"><shadow type=\"math_number\" id=\"!r66]ZS/E~vi[hp}+SmT\"><field name=\"NUM\">200</field></shadow></value><next><block type=\"controls_if\" id=\"CaMY#rY{^vw^5P=K+Fx8\"><mutation elseif=\"3\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"CBPDrT27,5;^e~(}kgTd\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"?U||yU=-E,Fj^/4b.,_I\"><field name=\"VAR\">Gesture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\";.D#h](bAieMibVM6Nb{\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"11r9NK(odD(d;SkrC?q}\"><field name=\"VAR\">light</field><value name=\"VALUE\"><block type=\"math_number\" id=\"r{CN;kS2MoKt=/fzJoN$\"><field name=\"NUM\">100</field></block></value></block></statement><value name=\"IF1\"><block type=\"logic_compare\" id=\"M$}7Vy2l7yLJ6doF9:Xh\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"P%Pd#2nn+/)a[U,*L-Nq\"><field name=\"VAR\">Gesture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"Aw24kSh~U`f+nha;H`7M\"><field name=\"NUM\">2</field></block></value></block></value><statement name=\"DO1\"><block type=\"variables_set\" id=\"p_vpc)1vTE[5*%I/]vQ#\"><field name=\"VAR\">light</field><value name=\"VALUE\"><block type=\"math_number\" id=\"TxANcG/^|!)|SG`6yM`[\"><field name=\"NUM\">0</field></block></value></block></statement><value name=\"IF2\"><block type=\"logic_compare\" id=\":oT2VaE(.}HzHe3f[hYz\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"H.cHYj1iKIsKeem@uIgc\"><field name=\"VAR\">Gesture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"~NK;uccZ9w2vltx:_g#{\"><field name=\"NUM\">3</field></block></value></block></value><statement name=\"DO2\"><block type=\"variables_set\" id=\"z_u$S`F0}pX)lnxA9YT/\"><field name=\"VAR\">light</field><value name=\"VALUE\"><block type=\"math_constrain\" id=\"7@=Exu=FZq?lJf-9F*Oc\"><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lw6g/{M);r+|kT+zNQE3\"><field name=\"NUM\">1000</field></shadow><block type=\"math_arithmetic\" id=\"jRq,j74};1c8qO/cViJE\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"A{xbe7?1G1Kz]47W;Z)K\"><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"fI|fqPkQUPOG1R}e3PH[\"><field name=\"VAR\">light</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"iHI?I8gi,vvz/f[:WY+B\"><field name=\"NUM\">20</field></shadow></value></block></value><value name=\"LOW\"><shadow type=\"math_number\" id=\"b9P/kQWO-S]chc}JbI%I\"><field name=\"NUM\">0</field></shadow></value><value name=\"HIGH\"><shadow type=\"math_number\" id=\"y--#ZZQL2cpfYon2rZLQ\"><field name=\"NUM\">100</field></shadow></value></block></value></block></statement><value name=\"IF3\"><block type=\"logic_compare\" id=\"X*9?-#FXeZP29pH`WcHK\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"%Lr7XOdAS~Ry*6}9y$az\"><field name=\"VAR\">Gesture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"sECNdD9m^/ZNR#0LQUo`\"><field name=\"NUM\">4</field></block></value></block></value><statement name=\"DO3\"><block type=\"variables_set\" id=\"Ef/DF5URHMlHN4mh[bk0\"><field name=\"VAR\">light</field><value name=\"VALUE\"><block type=\"math_constrain\" id=\".N%iV%V~{h]?k6}6bw0E\"><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lw6g/{M);r+|kT+zNQE3\"><field name=\"NUM\">1000</field></shadow><block type=\"math_arithmetic\" id=\"C35k:q=Ys~)owB)R$`98\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"A{xbe7?1G1Kz]47W;Z)K\"><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"cJU`2`O|mV,i?[$fnjMW\"><field name=\"VAR\">light</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"FBiju:7i=Rq4rwnQEmYl\"><field name=\"NUM\">20</field></shadow></value></block></value><value name=\"LOW\"><shadow type=\"math_number\" id=\"zLp_9F](xmB@84~63J8#\"><field name=\"NUM\">0</field></shadow></value><value name=\"HIGH\"><shadow type=\"math_number\" id=\"4bug:qly?#SB47immZJq\"><field name=\"NUM\">100</field></shadow></value></block></value></block></statement><next><block type=\"actuator_led_PWM\" id=\"ou#C3UwTllU~W%}MdP^z\"><value name=\"bright\"><shadow type=\"math_number\" id=\"gluRTEO+=Rf@IOV[4sbv\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"brxr1Qc[]|n+8j]wO+xL\"><field name=\"VAR\">light</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></xml> |