-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreensaver.m5f
More file actions
1 lines (1 loc) · 12.4 KB
/
Copy pathScreensaver.m5f
File metadata and controls
1 lines (1 loc) · 12.4 KB
1
{"components":[{"id":"_coretwoscreen","createTime":1611687975705,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#FFFFFF","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1611687975705,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1611687975705,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1611687975705,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"8&hDk5JnEn=D`N^k","createTime":1611688050914,"name":"slider0","x":45,"y":150,"width":200,"height":12,"minValue":0,"maxValue":100,"backgroundColor":"#a0a0a0","trackColor":"#08A2B0","handleColor":"#08A2B0","type":"slider","layer":12},{"id":"pU@luibrr39YWk1Y","createTime":1617383598137,"isCoreTwo":true,"name":"screensaver_time","x":139,"y":73,"color":"#000","text":"xx","font":"FONT_MONT_14","rotation":0,"type":"label","layer":149},{"id":"P1_jG0LFdySZ%P%@","createTime":1617383617361,"name":"ss_time_dec","x":44,"y":66,"width":70,"height":30,"r":50,"text":"-","font":"FONT_MONT_14","color":"#000000","borderColor":"#01a2b1","backgroundColor":"#FFFFFF","type":"touch_button","layer":150},{"id":"fzy`Uu0C4A6Q9t-Z","createTime":1617383619750,"name":"ss_time_inc","x":187,"y":68,"width":70,"height":30,"r":50,"text":"+","font":"FONT_MONT_14","color":"#000000","borderColor":"#01a2b1","backgroundColor":"#FFFFFF","type":"touch_button","layer":151}],"type":"core2","versions":"Beta","units":[],"hats":[],"blockly":"<variables><variable id=\"E;w{rT@XMB%R1n3/AiM.\">prev_brightness</variable><variable id=\"t@j/#w$wxl6;W#9,dyfL\">interval</variable><variable id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</variable><variable id=\"/8vA53zJg3|#Gk9]nt;G\">prevmillis</variable><variable id=\"/@Nz){P~a~hQIHwWj*~D\">currentmillis</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"179\" y=\"137\"><next><block type=\"variables_set\" id=\";uphEsSg!J;8_iXT31^V\"><field name=\"VAR\" id=\"E;w{rT@XMB%R1n3/AiM.\">prev_brightness</field><value name=\"VALUE\"><block type=\"math_number\" id=\"A@7g8trURD6urNd{PFfP\"><field name=\"NUM\">100</field></block></value><next><block type=\"variables_set\" id=\"L#]7Iv-;7Cm6T?jc92Y/\"><field name=\"VAR\" id=\"/8vA53zJg3|#Gk9]nt;G\">prevmillis</field><value name=\"VALUE\"><block type=\"math_number\" id=\"e.4}%Gj9IV;)/r;%{eqs\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"AQ_(GalVfVRAIaa4zE@]\"><field name=\"VAR\" id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</field><value name=\"VALUE\"><block type=\"math_number\" id=\";f?7m8~Fq4*@j81p{Z+W\"><field name=\"NUM\">100</field></block></value><next><block type=\"variables_set\" id=\"f`8o2L2ppWIgA(lDv?{S\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Pb]Y)zqYVVn@ro,R==K!\"><field name=\"NUM\">5000</field></block></value><next><block type=\"slider_set_value\" id=\"uk+}snC67Z9Hx(,Z~d@:\"><field name=\"COMPONENT\">slider0</field><value name=\"value\"><shadow type=\"math_number\" id=\"!DfXhL;I!_3%7g^iyq;M\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"basic_on_loop\" id=\"B=l4:Arl/Wm7I{Ke}N!1\"><statement name=\"LOOP\"><block type=\"variables_set\" id=\"2;[J-S#=SG[n@(yITry9\"><field name=\"VAR\" id=\"/@Nz){P~a~hQIHwWj*~D\">currentmillis</field><value name=\"VALUE\"><block type=\"timer_get_ms\" id=\"F:7FDXmD!g.re~_Z1!*@\"></block></value><next><block type=\"controls_if\" id=\"dSUZW,NI:Ekb0}S-S;r=\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"HGwb^#2jisNMWUtk3MH}\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"touch_status\" id=\"lXFDVe`Lew03Pg$Y+t:6\"></block></value><value name=\"B\"><block type=\"math_number\" id=\"gYttV:!^WtZFeLB8VTY8\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"5v_wK]-aLL?i}Q^OS.D)\"><field name=\"VAR\" id=\"/8vA53zJg3|#Gk9]nt;G\">prevmillis</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"ra[j$)XCEbqEKjgpwnx3\"><field name=\"VAR\" id=\"/@Nz){P~a~hQIHwWj*~D\">currentmillis</field></block></value><next><block type=\"screen_set_brightness\" id=\"|zZkXVWpNP_@h#ObDtl/\"><value name=\"BRIGHTNESS\"><shadow type=\"math_number\" id=\"cs}7%~2P|+Hy2#]QgB=F\"><field name=\"NUM\">30</field></shadow><block type=\"slider_get_value\" id=\"?3[_J]{#)erWIoD0JFn3\"><field name=\"COMPONENT\">slider0</field></block></value><next><block type=\"slider_set_value\" id=\"Ytb]j3(ojL0QX9M_3ApY\"><field name=\"COMPONENT\">slider0</field><value name=\"value\"><shadow type=\"math_number\" id=\"X53}+m[%N3KLt?PZWHE3\"><field name=\"NUM\">30</field></shadow><block type=\"variables_get\" id=\"HlG:O@=[j5Hhba!+UxTJ\"><field name=\"VAR\" id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</field></block></value></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"DU0CgNFGFueWpWQYyN]J\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"[cLVH_;dwXP+Rqi4oRI@\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"jLMH^(U{e+zqKOLJL0}J\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"variables_get\" id=\"W.9OWA9AXeT;i`iv#NW1\"><field name=\"VAR\" id=\"/@Nz){P~a~hQIHwWj*~D\">currentmillis</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"a+5.{Qa^6cN_sBM#%W.)\"><field name=\"VAR\" id=\"/8vA53zJg3|#Gk9]nt;G\">prevmillis</field></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"4z=I%Yv)-%f[IplPm/.`\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"mKQNa]2zj_v|g(]xVI5~\"><field name=\"VAR\" id=\"/8vA53zJg3|#Gk9]nt;G\">prevmillis</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"1#Zo[%k$J^+^QplP{2wF\"><field name=\"VAR\" id=\"/@Nz){P~a~hQIHwWj*~D\">currentmillis</field></block></value><next><block type=\"controls_if\" id=\"JW+ZJ^ZgJ(qP8PrZc*U.\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"V_([ui0WjeUy;Ev2J-k?\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"touch_status\" id=\"CeCm/wre2y=}R,jZ3Z)u\"></block></value><value name=\"B\"><block type=\"math_number\" id=\"fE}yQm!`eVYLWGO0`tMC\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"screen_set_brightness\" id=\"%PF?IAR14HD4BWbF@zZ3\"><value name=\"BRIGHTNESS\"><shadow type=\"math_number\" id=\"x?3me@.k61]-ND|rETYr\"><field name=\"NUM\">10</field></shadow></value><next><block type=\"slider_set_value\" id=\"IK7cp5*:*|r__uSnpI#W\"><field name=\"COMPONENT\">slider0</field><value name=\"value\"><shadow type=\"math_number\" id=\"KP_epuBh@HIr](s2ZrYi\"><field name=\"NUM\">10</field></shadow></value></block></next></block></statement></block></next></block></statement><next><block type=\"controls_if\" id=\"REeUk`L$fpIM3w],X}a:\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"nG;DyIqJ3S~vdAyFuIOD\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"variables_get\" id=\"g*VTjg)TV[9E.Cp|Cl*r\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"5Z}~It{pLVtoaD:wFjVd\"><field name=\"NUM\">5000</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"z^Ns-Hwn4J/$dLhY}|VF\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field><value name=\"VALUE\"><block type=\"math_number\" id=\"3z,LHJKUk|VK1N`$#lsC\"><field name=\"NUM\">5000</field></block></value></block></statement><next><block type=\"controls_if\" id=\"O29wBFYh3uf4{*|3P,Eq\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Gq|bW$B-zPhj-%aJ.9PQ\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"variables_get\" id=\"nL.Hp%7,u)tx1f9Bq0gS\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"FIaDr:{eyLz!q_!uWAJt\"><field name=\"NUM\">60000</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"L5WehtQGUi=bIs{00Op|\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field><value name=\"VALUE\"><block type=\"math_number\" id=\"SwMPn:eQtU/$ja)+i8=C\"><field name=\"NUM\">60000</field></block></value></block></statement><next><block type=\"label_set_text\" id=\"cWqSL;mD7sVd]Hba/,1X\"><field name=\"COMPONENT\">screensaver_time</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Vgd_WT{]gv}7Oo~Clh8_\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"jjV+5vPN^CV~9W2rBzNn\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"slider_set_cb\" id=\"3Z%u@ZfP~Aw+g[BxZ]Zm\" x=\"550\" y=\"190\"><field name=\"COMPONENT\">slider0</field><field name=\"value\" id=\"E;w{rT@XMB%R1n3/AiM.\">prev_brightness</field><statement name=\"FUNC\"><block type=\"screen_set_brightness\" id=\"E``baK]kEXr/bG+LLdLU\"><value name=\"BRIGHTNESS\"><shadow type=\"math_number\" id=\"8[bh+6X8od1h)AW[aL$m\"><field name=\"NUM\">100</field></shadow><block type=\"slider_get_value\" id=\"EDRk,BuJvs/hvdSosl{Q\"><field name=\"COMPONENT\">slider0</field></block></value><next><block type=\"variables_set\" id=\"lQ-=sN=wG/^,^?]5PLja\"><field name=\"VAR\" id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</field><value name=\"VALUE\"><block type=\"slider_get_value\" id=\"6i)M(~qZ!=_v~7Ih|f}?\"><field name=\"COMPONENT\">slider0</field></block></value><next><block type=\"slider_set_value\" id=\":vO9CvLBOq9L=3bp`DXB\"><field name=\"COMPONENT\">slider0</field><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">30</field></shadow><block type=\"variables_get\" id=\"hjyA|;w0/Kx=Txv?bCjE\"><field name=\"VAR\" id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</field></block></value></block></next></block></next></block></statement></block><block type=\"button_set_cb\" id=\"xxCh%/fS!V}n##.S|p5n\" x=\"730\" y=\"470\"><field name=\"COMPONENT\">ss_time_inc</field><field name=\"EVENT\">pressed</field><statement name=\"FUNC\"><block type=\"math_change\" id=\":}BS7kwMB@NiBUkbMzGr\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"H|0`i;zKAkG[.,}_?%/R\"><field name=\"NUM\">1000</field></shadow></value><next><block type=\"slider_set_value\" id=\"NcLBZCBA$)DHE^k9^b{:\"><field name=\"COMPONENT\">slider0</field><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">30</field></shadow><block type=\"variables_get\" id=\"Yd@?;l|5lJ`S.C2:IpbJ\"><field name=\"VAR\" id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</field></block></value><next><block type=\"screen_set_brightness\" id=\"Yex38L~-$hqkecTf4.LP\"><value name=\"BRIGHTNESS\"><shadow type=\"math_number\"><field name=\"NUM\">30</field></shadow><block type=\"slider_get_value\" id=\"*dy,VA}6VMt_DVGY%B-]\"><field name=\"COMPONENT\">slider0</field></block></value></block></next></block></next></block></statement></block><block type=\"button_set_cb\" id=\"Dh-_aK;l)@!+L5?bvBW;\" x=\"730\" y=\"630\"><field name=\"COMPONENT\">ss_time_dec</field><field name=\"EVENT\">pressed</field><statement name=\"FUNC\"><block type=\"math_change\" id=\"_mK7TR=GaH{|?$p{0/.P\"><field name=\"VAR\" id=\"t@j/#w$wxl6;W#9,dyfL\">interval</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"lf+45dR.)A!S{C*UA5}u\"><field name=\"NUM\">-1000</field></shadow></value><next><block type=\"slider_set_value\" id=\"e_E.Ta?6z!L8L%{cpsa=\"><field name=\"COMPONENT\">slider0</field><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">30</field></shadow><block type=\"variables_get\" id=\"8X%MU::GDdR5*_[EcyXT\"><field name=\"VAR\" id=\"#Mz3*t_oIjl8:[?5=hNu\">brightness</field></block></value><next><block type=\"screen_set_brightness\" id=\"$fDL@NF;UCM*Ev#$?r2!\"><value name=\"BRIGHTNESS\"><shadow type=\"math_number\"><field name=\"NUM\">30</field></shadow><block type=\"slider_get_value\" id=\"(A5OWgj=(X:srQqn7{6B\"><field name=\"COMPONENT\">slider0</field></block></value></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"modules":["touch","imu"]}