Files
hlym123 e099fc94c2 board: Add StackChan board support.
Signed-off-by: hlym123 <lwylwt@qq.com>
2026-05-09 15:33:17 +08:00

1 line
11 KiB
Plaintext

{"version":"V2.0","versionNumber":"V2.4.4","type":"stack-chan","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__stack-chan_screen","createTime":1776324027476,"x":0,"y":0,"width":320,"height":239.99999999999997,"backgroundColor":"#000000","size":0,"isSelected":true},{"name":"label_title","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"h_oE+1wR_ikbsgj$","createTime":1776324114066,"x":41,"y":5,"color":"#0dc9f4","backgroundColor":"#000000","text":"IR TX & RX Example","font":"Widgets.FONTS.Montserrat24","rotation":0,"isSelected":false},{"name":"label_tx_addr","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"iQWK#Bro+BPBK^2S","createTime":1776324190642,"x":9,"y":59,"color":"#ffffff","backgroundColor":"#000000","text":"TX Addr:","font":"Widgets.FONTS.Montserrat18","rotation":0,"isSelected":false},{"name":"label_tx_data","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"aYwo-St@*wA$EvMb","createTime":1776324190642,"x":170,"y":59,"color":"#ffffff","backgroundColor":"#000000","text":"TX Data:","font":"Widgets.FONTS.Montserrat18","rotation":0,"isSelected":false},{"name":"label_rx_addr","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"kc#rfv`-OpPke&Vb","createTime":1776324190642,"x":10,"y":100,"color":"#ffffff","backgroundColor":"#000000","text":"RX Addr:","font":"Widgets.FONTS.Montserrat18","rotation":0,"isSelected":false},{"name":"label_rx_data","type":"label","layer":5,"screenId":"builtin","screenName":"","id":"bMdSGWct&il*@Lqe","createTime":1776324190642,"x":170,"y":100,"color":"#ffffff","backgroundColor":"#000000","text":"RX Data:","font":"Widgets.FONTS.Montserrat18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","rgb","speaker","touch","als","ir","mic","touchpad","hardware_servo","sdcard"]}],"units":[],"hats":[],"caps":[],"chains":[],"bases":[],"plcmodules":[],"i2cs":[],"chainBus":[],"blockly":"<variables><variable id=\"o*R1/S38[8CR8#6I[a|D\">ir_data</variable><variable id=\"~3$0/*{uz,9x,hPt{Exj\">ir_addr</variable><variable id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</variable><variable id=\"F^gs7g2;:#.ewF6[O~F,\">ir_tx</variable><variable id=\"9/#MgYp|=RN#4Gs%ShvW\">tx_addr</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"-50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"1|p)0ijN7c3tDeV@f+#m\"><next><block type=\"system_stackchan_init\" id=\"M?M%HRez#(%m#-N]3Z{$\"><field name=\"I2C\">1</field><field name=\"UART\">1</field><next><block type=\"ir_init\" id=\"4Ev=]lxSsF]?o{|q{$P6\"><next><block type=\"variables_set\" id=\"II],*w42f_M1C(^wwC!0\"><field name=\"VAR\" id=\"9/#MgYp|=RN#4Gs%ShvW\">tx_addr</field><value name=\"VALUE\"><block type=\"math_number\" id=\"8KUXM$abi!=WgfRG?Zk:\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value><next><block type=\"variables_set\" id=\")HqN436p0v[dZ%Y%jwmt\"><field name=\"VAR\" id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</field><value name=\"VALUE\"><block type=\"math_number\" id=\"E8j93sZ@HOIgQ(oQ:%pi\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"speaker_begin\" id=\"wPen*Irzp8W^ZO3Qco0-\"><next><block type=\"speaker_set_volume_percentage\" id=\"`M=V%]TxKp}*}%,PI0+a\"><value name=\"VOLUME\"><shadow type=\"math_slider\" id=\"AI3-~UXQf@R1gTF,vw3x\"><mutation max=\"100\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">50</field></shadow></value><next><block type=\"label_set_text\" id=\"8yVX@@CJD9*,b1{p-:.a\"><field name=\"NAME\">label_tx_addr</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/`[J[,y5,HTdLr7(T:Y}\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"`Y{B)_brAhbq_VJT(pfW\"><value name=\"VALUE1\"><shadow type=\"text\" id=\",a+?h$j_xsGDn_T{2:8E\"><field name=\"TEXT\">TX Addr: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"d/M;`3hJrg}N*{#t228w\"><field name=\"VAR\" id=\"9/#MgYp|=RN#4Gs%ShvW\">tx_addr</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"610\" y=\"-10\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"x%c/?BQeSK%)^g7zr2eg\"><next><block type=\"controls_if\" id=\"qlPik)7E?Qw7gD$N6B2.\"><value name=\"IF0\"><block type=\"variables_get\" id=\"Av!4|P{HCZm7ZgMx]nZ:\"><field name=\"VAR\" id=\"F^gs7g2;:#.ewF6[O~F,\">ir_tx</field></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"6^cOKm|x|(tsUppF7a/z\"><field name=\"VAR\" id=\"F^gs7g2;:#.ewF6[O~F,\">ir_tx</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"UlIBHpz}!-);@J201=OE\"><field name=\"BOOL\">FALSE</field></block></value></block></statement></block></next></block></statement></block><block type=\"ir_callback\" id=\"Ecc_8!rj{zLLqL{zIL/@\" x=\"50\" y=\"350\"><value name=\"DATA\"><block type=\"variables_get\" id=\"{MpJ{}}s4ZtqCu)x30k,\"><field name=\"VAR\" id=\"o*R1/S38[8CR8#6I[a|D\">ir_data</field></block></value><value name=\"ADDR\"><block type=\"variables_get\" id=\"Kx}FJqq[aaBg7sy~Qw#?\"><field name=\"VAR\" id=\"~3$0/*{uz,9x,hPt{Exj\">ir_addr</field></block></value><statement name=\"FUNC\"><block type=\"label_set_text\" id=\"_s?,/mTFq8_P%sGht34t\"><field name=\"NAME\">label_rx_addr</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/`[J[,y5,HTdLr7(T:Y}\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\")e8ik+!){u#]:H7G;|D-\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"}1#9VTOod%SCK]O}$/77\"><field name=\"TEXT\">RX Addr: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"Cp0=Mg/Q;cZgGC$rJw#?\"><field name=\"VAR\" id=\"~3$0/*{uz,9x,hPt{Exj\">ir_addr</field></block></value></block></value><next><block type=\"label_set_text\" id=\"Xn|n7*2W|Z0mA.GFkB*a\"><field name=\"NAME\">label_rx_data</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/`[J[,y5,HTdLr7(T:Y}\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"^^,sa36aLIV3?=Sx4a3O\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"k$|2Q)*mh.km4]QhqxL+\"><field name=\"TEXT\">RX Data: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"F{DQ/a76Cwove#Yk4%k7\"><field name=\"VAR\" id=\"o*R1/S38[8CR8#6I[a|D\">ir_data</field></block></value></block></value><next><block type=\"speaker_tone\" id=\"f2eqtGeQjr*ts!j$P5tz\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"wlST1C{k6Azf#up$nsj6\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">700</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"mEIj1ef-8Preuz|()TE.\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value></block></next></block></next></block></statement></block><block type=\"button_callback\" id=\"eSzC.91,e@J@JiJ/veDr\" x=\"50\" y=\"610\"><field name=\"NAME\">BtnPWR</field><field name=\"TYPE\">WAS_CLICKED</field><statement name=\"FUNC\"><block type=\"math_change\" id=\"gk~F]-)J)N6^^/TH=(;O\"><field name=\"VAR\" id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"R4Bwjl^N+x~%.cTj+eng\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_if\" id=\"#tJAwI*3bm]%a$$s(o2S\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"#~AI=Y:8G_:m)N3iFC25\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"{R3$h^w$*Kf?pm1qVW3@\"><field name=\"VAR\" id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"gC3!)5LX,*xdWM[WNwYB\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">255</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"LoK%1v!=PV*eJ;0zby`j\"><field name=\"VAR\" id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</field><value name=\"VALUE\"><block type=\"math_number\" id=\"N-1=6(-f.+R_pm*`Ue7N\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></statement><next><block type=\"ir_send_data\" id=\"|,?$(^qt^CgEKnM%go-C\"><value name=\"ADDR\"><shadow type=\"math_slider\" id=\"YHEu!iAy]Hd?StTh:V+X\" disabled=\"true\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"E2(anBY3P:8%5.WsRKZJ\"><field name=\"VAR\" id=\"9/#MgYp|=RN#4Gs%ShvW\">tx_addr</field></block></value><value name=\"DATA\"><shadow type=\"math_slider\" id=\"vlb?ES!5C.G90^Cm%{0K\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"}Y,bB;8v^BBNTyc?mb4L\"><field name=\"VAR\" id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</field></block></value><next><block type=\"label_set_text\" id=\"qVD)Pj$%/hA,#_z%!K-f\"><field name=\"NAME\">label_tx_addr</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/`[J[,y5,HTdLr7(T:Y}\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"_j19T*$4*JEyyl*Q2Ym.\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"lGDb~JVUL0#qxN%q_aY-\"><field name=\"TEXT\">TX Addr: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"RwzW2CEznEIMzT;,g;|f\"><field name=\"VAR\" id=\"9/#MgYp|=RN#4Gs%ShvW\">tx_addr</field></block></value></block></value><next><block type=\"label_set_text\" id=\"IXY;X4c)_S^j*yvJ*}gG\"><field name=\"NAME\">label_tx_data</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/`[J[,y5,HTdLr7(T:Y}\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"}t+pZ$BE?S/i`zCLJV+w\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"M;6fgH6CIfK#Xji}$LU)\"><field name=\"TEXT\">TX Data: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"FCJM9QK4t0K4}!4b88ig\"><field name=\"VAR\" id=\"9`D9O]_+bGD{0I]Ry5Yp\">tx_data</field></block></value></block></value></block></next></block></next></block></next></block></next></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":239.99999999999997,"scale":0.63,"screenName":"","blockId":"","screenColorType":0,"rotation":1,"id":"builtin","createTime":1776323044736}],"logicWhenNum":0,"customList":[]}