You've already forked uiflow-micropython
mirror of
https://github.com/m5stack/uiflow-micropython.git
synced 2026-05-20 10:39:27 -07:00
5398fe6ab4
Signed-off-by: lbuque <lbuque@163.com>
1 line
4.6 KiB
Plaintext
1 line
4.6 KiB
Plaintext
{"version":"V2.0","versionNumber":"V2.2.0","type":"atom","components":[],"resources":[{"hardware":["hardware_button","hardware_pin_button","rgb","ir"]},{"base":["atom_socket"]}],"units":[],"hats":[],"bases":[{"type":"atom_socket","name":"atomsocket","id":"gnifJ3APbjbi#k6B","createTime":1735288539584,"initBlockType":"atom_socket_init","initBlockId":"~?0vHa{GUGC{nOd9VLD2"}],"i2cs":[],"blockly":"<variables><variable id=\"m2^uocT|EG9Ge=0Ui3hR\">as_voltage</variable><variable id=\"sD9T^iCY9CDrm]CT#WYH\">as_current</variable><variable id=\"]4;wk=lT,!r@mB$DH59B\">as_power</variable><variable id=\"{,M_1$+v:[0b,99ey{[H\">as_kwh</variable><variable id=\"e]snBZQd%r[Y{8sJhjif\">onoff</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-870\" y=\"-210\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"atom_socket_init\" id=\"~?0vHa{GUGC{nOd9VLD2\"><value name=\"TX\"><shadow type=\"math_number\" id=\"EJ^o_L5Pk+:y}`Y?-OE#\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">22</field></shadow></value><value name=\"RX\"><shadow type=\"math_number\" id=\"I9p_;@Qvp@TZg`8EsC*Q\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">33</field></shadow></value><value name=\"RELAY\"><shadow type=\"math_number\" id=\"z,Q8r)Q.t]}n$f/lq.WR\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">23</field></shadow></value><next><block type=\"variables_set\" id=\"Rv,Q0s(pktn6O:__3tS:\"><field name=\"VAR\" id=\"e]snBZQd%r[Y{8sJhjif\">onoff</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"xl#ujR[/GWNldAd]lA)x\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"atom_socket_set_relay\" id=\"lwMarrz|i~LTg,8%*F7+\"><field name=\"STATE\">False</field><next><block type=\"atom_socket_start_receive_data\" id=\"C;veDJ6wL^gXBssKGp(;\"></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"-850\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"></block></statement></block><block type=\"button_callback\" id=\"^tgjFjjD4?RMYrGC28)J\" x=\"-850\" y=\"170\"><field name=\"NAME\">BtnA</field><field name=\"TYPE\">WAS_CLICKED</field><statement name=\"FUNC\"><block type=\"variables_set\" id=\"|2B|r(~ufKX_Q:BCi+DS\"><field name=\"VAR\" id=\"e]snBZQd%r[Y{8sJhjif\">onoff</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"is%4zV-YNX])g|6(n,wF\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"[xA;Bl*JvYL.6QCb^tHd\"><field name=\"VAR\" id=\"e]snBZQd%r[Y{8sJhjif\">onoff</field></block></value></block></value><next><block type=\"controls_ifelse\" id=\"SrONxWfk*CK4:uOxysun\"><value name=\"IF0\"><block type=\"variables_get\" id=\"_$d`)bKRM}LiOQPZKw^t\"><field name=\"VAR\" id=\"e]snBZQd%r[Y{8sJhjif\">onoff</field></block></value><statement name=\"DO0\"><block type=\"atom_socket_set_relay\" id=\"F`oe]tDv(7WLv?MrS|S:\"><field name=\"STATE\">True</field></block></statement><statement name=\"ELSE\"><block type=\"atom_socket_set_relay\" id=\"C}4;a(YD?fZUxKIk7?d^\"><field name=\"STATE\">False</field></block></statement></block></next></block></statement></block><block type=\"atom_socket_receive_data_event\" id=\"ySqq:bNwW,mV#+lHvtni\" x=\"-856\" y=\"409\"><value name=\"VOLTAGE\"><block type=\"variables_get\" id=\"r@Py,bu07}?XATkR.Z0N\"><field name=\"VAR\" id=\"m2^uocT|EG9Ge=0Ui3hR\">as_voltage</field></block></value><value name=\"CURRENT\"><block type=\"variables_get\" id=\"Y[g^%i-V{w?WhG%KL!m/\"><field name=\"VAR\" id=\"sD9T^iCY9CDrm]CT#WYH\">as_current</field></block></value><value name=\"POWER\"><block type=\"variables_get\" id=\"Y^N~3Mi`96]:*@j46SSc\"><field name=\"VAR\" id=\"]4;wk=lT,!r@mB$DH59B\">as_power</field></block></value><value name=\"KWH\"><block type=\"variables_get\" id=\"-j5Bmp/;ehOSW#[@!ws|\"><field name=\"VAR\" id=\"{,M_1$+v:[0b,99ey{[H\">as_kwh</field></block></value><statement name=\"FUNC\"><block type=\"text_print\" id=\".*5u*-Fbt+r3SL[siPy9\"><value name=\"TEXT\"><shadow type=\"text\" id=\"P8)mqn9{4(J?f6bQoCVB\"><field name=\"TEXT\">hello M5</field></shadow></value><next><block type=\"text_print\" id=\"D=s_h9dsD{w(++AwD[*c\"><value name=\"TEXT\"><shadow type=\"text\" id=\"Yv]=d9`)f44I|Ua|},F$\"><field name=\"TEXT\">hello M5</field></shadow></value></block></next></block></statement></block>","screen":[],"logicWhenNum":0,"customList":[]} |