You've already forked M5-ProductExampleCodes
mirror of
https://github.com/m5stack/M5-ProductExampleCodes.git
synced 2026-05-20 10:24:10 -07:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"components":[{"id":"____screen","createTime":1549882926369,"name":"Screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#111111","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1549882926369,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1549882926369,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1549882926369,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"8AXRaYDSWYy+kVEJ","createTime":1578381857832,"name":"label0","x":7,"y":65,"color":"#FFFFFF","text":"UID","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":14,"width":null,"height":null,"radius":null},{"id":"NuEZiOXNVM7$bv_#","createTime":1578381874527,"name":"label1","x":77,"y":65,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":15,"width":null,"height":null,"radius":null},{"id":"ray^JL5p4vTnnX9$","createTime":1578381979387,"name":"title0","x":0,"y":0,"width":320,"height":20,"color":"#FFFFFF","backgroundColor":"#0000FF","text":"RFID","textOffset":"150","font":"lcd.FONT_Default","type":"title","layer":16,"radius":null}],"type":"core","versions":"Beta","units":[],"hats":[],"blockly":"<variables><variable type=\"\" id=\"G#rt$kaW5NmgQBYjs(WB\">i</variable><variable type=\"\" id=\"?1QXebaVPxGQ]flbqfm;\">n</variable><variable type=\"\" id=\"{[T6+|$(_p1fI4eclKQ/\">val</variable><variable type=\"\" id=\"KK`.@OY1.qXMmQ`#/Dh|\">key</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"basic_on_loop\" id=\"J4hn9@l:I*+T(1AV5]m+\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"y{7XcxN_KUh?qac_3$)Z\"><value name=\"IF0\"><block type=\"faces_rfid_cardOn\" id=\"~}_ei`TK:l8)+V?=#3iO\"></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"32jMib_#(ZSS+!:Y19M,\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"QU*|~BZETC{[3n/gSZ,s\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"faces_rfid_uid\" id=\"%%jbFQ001^Xb/g`LaG_r\"></block></value></block></statement></block></statement></block></next></block><block type=\"button_callback\" id=\"5oI[H;JDtpo=SE~/F}rn\" x=\"50\" y=\"210\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"faces_write_block\" id=\"-CMUd]gqzlt_0Pwq)HY^\"><value name=\"VALUE\"><shadow type=\"text\" id=\"-M|[pU/#XBv1Mv~Xyt!F\"><field name=\"TEXT\">ABCDEFG</field></shadow></value><value name=\"VALUE1\"><shadow type=\"math_number\" id=\"eRMsyWU~B=kM?}K35Dqz\"><field name=\"NUM\">1</field></shadow></value></block></statement></block><block type=\"button_callback\" id=\"5wKNW/(Aj:BHxI4Q`th:\" x=\"50\" y=\"310\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"label_set_text\" id=\"Q9|fGRJa#q=hhLl0[Uqn\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"QU*|~BZETC{[3n/gSZ,s\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"faces_rfid_readStr\" id=\"I$bGbT{+R*D!Kmg]%8`}\"><value name=\"VALUE\"><shadow type=\"math_number\" id=\"~1^t=ZTHs4y83jC/}8IA\"><field name=\"NUM\">1</field></shadow></value></block></value></block></statement></block><block type=\"button_callback\" id=\"NI|8i-tKKe8IapWfRwG_\" x=\"50\" y=\"970\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasReleased</field><statement name=\"FUNC\"><block type=\"variables_set\" id=\"P320na(MT90tx/tRggYB\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"D1}d+H6+1dBXJSJG[Lcz\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"variables_get\" id=\"B/*[0b;}p.;Ws{Uco^JF\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"${|k5HPc?7I@{J1#!f@a\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"timer_delay\" id=\"~]S.;]y*dqh)r`U%A7fy\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"!m2#pv1XS=+(N)JPf`Kl\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"label_set_mode\" id=\"Kx4nP|~yraX$I{*BS,}!\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"seUNX8e.]B:gAwRljuUg\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">hide</field><next><block type=\"variables_set\" id=\"+{;Stimj56QEpJ=pvGt1\"><field name=\"VAR\" id=\"?1QXebaVPxGQ]flbqfm;\" variabletype=\"\">n</field><value name=\"VALUE\"><block type=\"math_modulo\" id=\"1CRWl,^X3C-3Q#SeQ?jd\"><value name=\"DIVIDEND\"><block type=\"variables_get\" id=\"UpvD~Oai#}Q~Y+sjKt?q\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field></block></value><value name=\"DIVISOR\"><block type=\"math_number\" id=\"Dh4_2V;/V6,tx=32sSA!\"><field name=\"NUM\">13</field></block></value></block></value><next><block type=\"label_set_text\" id=\"(5o_y#afAINS8=`2Frh[\"><field name=\"COMPONENT\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Vfho8ZP.piFPLaX5Q5,}\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"lists_getIndex\" id=\"Xe~Q`bf:su/]YshB7jM[\"><mutation statement=\"false\" at=\"true\"></mutation><field name=\"MODE\">GET</field><field name=\"WHERE\">FROM_START</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"%_VFP;0=q3*)jc8*RCl4\"><field name=\"VAR\" id=\"KK`.@OY1.qXMmQ`#/Dh|\" variabletype=\"\">key</field></block></value><value name=\"AT\"><block type=\"variables_get\" id=\"Q.3]UnBGwgab(g*H=pjX\"><field name=\"VAR\" id=\"?1QXebaVPxGQ]flbqfm;\" variabletype=\"\">n</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"button_callback\" id=\"^[_iB1.O43J8Q.~J-#bJ\" x=\"510\" y=\"950\"><field name=\"BUTTON\">C</field><field name=\"EVENT\">wasReleased</field><statement name=\"FUNC\"><block type=\"variables_set\" id=\"-*!XWs^kr0.!mZ@d2h)B\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"u,HhC@@F}H/I~nobJ~m.\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get\" id=\"Cq{BgBuU.3zeFZjGKdbJ\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"{^v!F.9${8eod-S2@,8E\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"timer_delay\" id=\"_t?e6t(kdXi{BE;?0ly/\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"XU?gkN7lw22)b]hod(,x\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"label_set_mode\" id=\"46Pwd#T3t??J^(Od9/g$\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"r`LZ4RsbTOGp?LVzspna\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">hide</field><next><block type=\"variables_set\" id=\"LNzr=xd}N%K:lWM;$Wd7\"><field name=\"VAR\" id=\"?1QXebaVPxGQ]flbqfm;\" variabletype=\"\">n</field><value name=\"VALUE\"><block type=\"math_modulo\" id=\"Z=]VVuboK{X_2#T~Knq.\"><value name=\"DIVIDEND\"><block type=\"variables_get\" id=\"85[pg_a/,2ujS$E5AvuI\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field></block></value><value name=\"DIVISOR\"><block type=\"math_number\" id=\"TOof3MlBsJ_qQTI#,Mn)\"><field name=\"NUM\">13</field></block></value></block></value><next><block type=\"label_set_text\" id=\"piToFUZ~O1!aIO=LWZ15\"><field name=\"COMPONENT\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Vfho8ZP.piFPLaX5Q5,}\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"lists_getIndex\" id=\"#ktqM`L3HSavJO_gEPIi\"><mutation statement=\"false\" at=\"true\"></mutation><field name=\"MODE\">GET</field><field name=\"WHERE\">FROM_START</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"3N{xGa!SXLPd_+JrguQr\"><field name=\"VAR\" id=\"KK`.@OY1.qXMmQ`#/Dh|\" variabletype=\"\">key</field></block></value><value name=\"AT\"><block type=\"variables_get\" id=\"wpnSRR/JIA7Ow?L2QBAY\"><field name=\"VAR\" id=\"?1QXebaVPxGQ]flbqfm;\" variabletype=\"\">n</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"button_callback\" id=\"c32LPH9+tlI466AhVam;\" x=\"70\" y=\"1330\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"label_set_mode\" id=\"ul=@pCs#`eAc7i2.-@^7\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">hide</field><next><block type=\"label_set_mode\" id=\"T08qg=}[HZJ{.{I=IkZC\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">hide</field><next><block type=\"variables_set\" id=\"d,rxFAG:(QM04A(f69ks\"><field name=\"VAR\" id=\"?1QXebaVPxGQ]flbqfm;\" variabletype=\"\">n</field><value name=\"VALUE\"><block type=\"math_modulo\" id=\"qax$G~wkeHoyx}8.;r9J\"><value name=\"DIVIDEND\"><block type=\"variables_get\" id=\"!k_zUZ${i?rrP+t)jdaL\"><field name=\"VAR\" id=\"G#rt$kaW5NmgQBYjs(WB\" variabletype=\"\">i</field></block></value><value name=\"DIVISOR\"><block type=\"math_number\" id=\"WcPWEm5NI{eZ)gNJTl/[\"><field name=\"NUM\">13</field></block></value></block></value><next><block type=\"label_set_text\" id=\"nw7lZUG^ga4l)ZMWjRK[\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Vfho8ZP.piFPLaX5Q5,}\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"lists_getIndex\" id=\"UXL4T:rsGJ|#]mu9-@pI\"><mutation statement=\"false\" at=\"true\"></mutation><field name=\"MODE\">GET</field><field name=\"WHERE\">FROM_START</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"w#=;*NqC`kwemUlmq-eh\"><field name=\"VAR\" id=\"{[T6+|$(_p1fI4eclKQ/\" variabletype=\"\">val</field></block></value><value name=\"AT\"><block type=\"variables_get\" id=\"%dFMN,_(7jYYYF/W!rx@\"><field name=\"VAR\" id=\"?1QXebaVPxGQ]flbqfm;\" variabletype=\"\">n</field></block></value></block></value></block></next></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"modules":["imu"]} |