Ryota Ikeuchi
Published

Card Rush Button Bash

When the countdown finishes, start mashing the button as fast as you can. The more you mash, the more cards will appear on the screen.

BeginnerFull instructions provided66
Card Rush Button Bash

Things used in this project

Hardware components

M5StickC PLUS ESP32-PICO Mini IoT Development Kit
M5Stack M5StickC PLUS ESP32-PICO Mini IoT Development Kit
×1
M5Stack Unit Key
×1
M5Stack Servo Kit 360°
×1

Software apps and online services

M5Stack UIFlow 2.0

Story

Read more

Schematics

connection diagram

Code

card_feeder.m5f2

JSON
{"version":"V2.0","versionNumber":"V2.3.1","type":"stickc-plus","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__stickc-plus_screen","createTime":1748074664671,"x":0,"y":0,"width":135,"height":240,"backgroundColor":"#000000","size":0,"isSelected":true},{"name":"label0","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"lZ*aSMfv4FMs`nmW","createTime":1749387408088,"x":5,"y":221,"color":"#ffffff","backgroundColor":"#222222","text":"label0","font":"Widgets.FONTS.DejaVu9","rotation":0,"isSelected":false,"width":34,"height":12},{"name":"rect0","type":"rect","layer":2,"screenId":"builtin","screenName":"","id":"dfXE5dLKM#g#MKqL","createTime":1749387641837,"x":2,"y":0,"width":1,"height":1,"borderColor":"#ff0000","backgroundColor":"#ff0000","isSelected":false},{"name":"rect1","type":"rect","layer":3,"screenId":"builtin","screenName":"","id":"s&Yi-CMjK5ChC0SS","createTime":1749388160270,"x":0,"y":0,"width":1,"height":1,"borderColor":"#fb00ff","backgroundColor":"#ff81f5","isSelected":false},{"name":"image1","type":"image","layer":1,"screenId":"builtin","screenName":"","id":"v0_7uxIk2U8pU`2b","createTime":1750225666080,"x":0,"y":0,"imagePath":"renda.jpg","visibility":true,"scaleX":1,"scaleY":1,"isSelected":false}],"resources":[{"hardware":["pwm","hardware_button","hardware_pin_button","imu","speaker","ir"]},{"unit":["unit_key"]}],"units":[{"type":"unit_key","name":"key_0","portList":["A","Custom"],"portType":"A","userPort":[22,21],"id":"lV#3lJrGCeBHo#zS","createTime":1752650287384,"initBlockId":"Km_?O,|iu_(hpbBZ=Sks"}],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\"sonivwlhizaPsXg~YnN$\">image_files</variable><variable id=\"qkWuMC6V6p=7d,8Di]]w\">state</variable><variable id=\"(SC2i`,[,;d|9LwaO_fv\">k</variable><variable id=\")nJvR!8hh#e2,ErU`N:k\">duty</variable><variable id=\"D!6}jOb|K2J#![a}QjVq\">press_num</variable><variable id=\"ZEPQrp2N::Th5Qxm=xlL\">t_start</variable><variable id=\"lsqS4_48xP-;cx?Tj?Mt\">press_num_time_divisor</variable><variable id=\"u3ZiHmOcmTX627YHZ_`D\">press_num_rect_multiplier</variable><variable id=\"RRxbb*C#g*vo7^q#puo;\">remaining_time</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"70\" y=\"71\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"pwm_init_input\" id=\"Bp8Hz(=kP(qf/gRjlG$s\"><mutation duty=\"undefined\"></mutation><field name=\"DUTY_TYPE\">duty</field><value name=\"NAME\"><shadow type=\"math_number\" id=\"xa`l9/zrY3@M-{sSU~=d\"><mutation max=\"Infinity\" min=\"0\" precision=\"1\"></mutation><field name=\"NUM\">26</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_slider\" id=\"T9l-xu;,EdS+pJx2c,s/\"><mutation max=\"40000000\" min=\"1\" step=\"100\" precision=\"1\"></mutation><field name=\"NUM\">50</field></shadow></value><value name=\"DUTY\"><shadow type=\"math_slider\" id=\"_+Bp.hqs*ID{E/UQ-]1@\"><mutation max=\"1023\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"unit_key_init\" id=\"Km_?O,|iu_(hpbBZ=Sks\"><field name=\"NAME\">key_0</field><next><block type=\"variables_set\" id=\"mOKIL$pifVVs5p0WGRcu\"><field name=\"VAR\" id=\"qkWuMC6V6p=7d,8Di]]w\">state</field><value name=\"VALUE\"><block type=\"text\" id=\"+^:keq{j,[pJ$A*@-1GV\"><field name=\"TEXT\">stop</field></block></value><next><block type=\"variables_set\" id=\"wpQa8%XBc35J%DV,]w78\"><field name=\"VAR\" id=\")nJvR!8hh#e2,ErU`N:k\">duty</field><value name=\"VALUE\"><block type=\"math_number\" id=\"g~{9Ug[`7LalDDh!m:e7\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">70</field></block></value><next><block type=\"speaker_set_volume_percentage\" id=\"LsBp=RC/4!K{i1^z0HPW\"><value name=\"VOLUME\"><shadow type=\"math_slider\" id=\"Y%[Nd7?Ot,lC4$~pfrO}\"><mutation max=\"100\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">100</field></shadow></value><next><block type=\"variables_set\" id=\"rQPv[%6w.)/$-k5Hebwm\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field><value name=\"VALUE\"><block type=\"math_number\" id=\"6vC7N(|5DT(:!$nbzkP#\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"rect_set_size\" id=\"zjZWt8Gv;X$ym;9sT;XL\"><field name=\"NAME\">rect0</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\"%rSRHhI.yKyeC/.wW(}6\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"tM%X/kG1H2q!OCHm9l/8\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"rect_set_size\" id=\"RDo1tzP=dmCY*nx#16c%\"><field name=\"NAME\">rect1</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\"TG6;U~cy*wil`D?OarL=\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"CrfFUk_5+%L#`:1x=vh}\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_set\" id=\"cM{0?0u7MphUP%lR@!we\"><field name=\"VAR\" id=\"lsqS4_48xP-;cx?Tj?Mt\">press_num_time_divisor</field><value name=\"VALUE\"><block type=\"math_number\" id=\"|;JmbKt=MU/)Q^~BCovC\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">7</field></block></value><next><block type=\"variables_set\" id=\"ZkA7G;{uiRjPRuS5Uw1T\"><field name=\"VAR\" id=\"u3ZiHmOcmTX627YHZ_`D\">press_num_rect_multiplier</field><value name=\"VALUE\"><block type=\"math_number\" id=\"/4e+nVSjsr^9gprTxdH_\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">4</field></block></value><next><block type=\"image_set_file_name\" id=\"M1yrAcr7B5KY4y4=)dq0\"><field name=\"NAME\">image1</field><value name=\"IMAGE\"><shadow type=\"text\" id=\"]*2Mw/xP`lIx[u{,XbPn\"><field name=\"TEXT\">home2.jpg</field></shadow></value></block></next></block></next></block></next></block></next></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=\"721\" y=\"135\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"><next><block type=\"controls_if\" id=\"Wl2#Y#wL6m{qJ,tb%%pv\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"button_is_pressed\" id=\"2yMUtdS=eE`8nKf9^;k#\"><field name=\"NAME\">BtnA</field></block></value><statement name=\"DO0\"><block type=\"set_screen_color_multiple\" id=\")rBb]56%X,dCy+mhf[ZX\"><field name=\"SCREEN\">builtin</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"J,Ucm$Y$k)z*q1ZXz6Sd\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#000000</field></block></value><next><block type=\"procedures_callnoreturn\" id=\"ARnmShq@)q._POE[?t9|\"><mutation name=\"rotate_out\"></mutation></block></next></block></statement><statement name=\"ELSE\"><block type=\"procedures_callnoreturn\" id=\"yJsK](k;.T=V5nta1U;C\"><mutation name=\"stop\"></mutation></block></statement><next><block type=\"controls_if\" id=\"@8+No2)P(I,Zwj8oX~ZS\"><value name=\"IF0\"><block type=\"logic_negate\" id=\"c#=v]4:P:aL+#D]RcGF=\"><value name=\"BOOL\"><block type=\"unit_key_get_state\" id=\"]bsWJPfdGfX@,dm(oVz0\"><field name=\"NAME\">key_0</field></block></value></block></value><statement name=\"DO0\"><block type=\"procedures_callnoreturn\" id=\"?$uBKum]V*eR**.?W-^A\"><mutation name=\"three_count\"></mutation><next><block type=\"image_set_file_name\" id=\"xI?Z?rJ6K,:QR!5xsa1C\"><field name=\"NAME\">image1</field><value name=\"IMAGE\"><shadow type=\"text\" id=\",%#9LeoERlX_(:iXU#=u\"><field name=\"TEXT\">renda.jpg</field></shadow></value><next><block type=\"procedures_callnoreturn\" id=\"P]V(HF?+G`HI!_IKlN6v\"><mutation name=\"on_key_led_red\"></mutation><next><block type=\"speaker_tone\" id=\"zO}G[6:sMz9!1I`A-Y1v\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"/-,jKviZVWy=WNgSm|PX\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1046</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"rQ###%{h:)r.[=BK1hww\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">5000</field></shadow></value><next><block type=\"variables_set\" id=\"~@n`oOL}T~dP{#zF(|rS\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field><value name=\"VALUE\"><block type=\"math_number\" id=\"D6un`:;;#cN$.1_(iBST\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"j[{Km(VYN@-nyISQR^{B\"><field name=\"VAR\" id=\"ZEPQrp2N::Th5Qxm=xlL\">t_start</field><value name=\"VALUE\"><block type=\"time_get_ticks_ms\" id=\"aJJb820TQ/$l%/H|6V67\"></block></value><next><block type=\"controls_whileUntil\" id=\"RtAoy1Qai)%3:/7d@Yjl\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"wW`tb4o3U6b8OSfE@RYC\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"s*%t#Mo$QdA7,lC}o9Sg\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"q9@)l3(.HZ6CW@2-S,om\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"time_get_ticks_ms\" id=\"g4}C*3u5-nQ(yRq[Mv)5\"></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"4k0MjX`E-K$?@)];;.2J\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"^!m-4]vxOO:XSVG^a!Z1\"><field name=\"VAR\" id=\"ZEPQrp2N::Th5Qxm=xlL\">t_start</field></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"7bW_B@$|@HzNyS{zMohx\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">5000</field></block></value></block></value><statement name=\"DO\"><block type=\"controls_if\" id=\"8T[kr=+R{QtmHF?B/5Jd\"><value name=\"IF0\"><block type=\"logic_negate\" id=\"1h^I,XN=LOmv$7tB!ndv\"><value name=\"BOOL\"><block type=\"unit_key_get_state\" id=\"W-1mX/TEx,w7}WR~SO7-\"><field name=\"NAME\">key_0</field></block></value></block></value><statement name=\"DO0\"><block type=\"time_sleep_millisecond\" id=\"S!(V5vH^boMc5dH`!pGD\"><value name=\"MS\"><shadow type=\"math_number\" id=\"1x;]Tlcu#bm}V^i]c.xF\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">20</field></shadow></value><next><block type=\"controls_if\" id=\"Mu~my4I.D5Jy9n^34KNf\"><value name=\"IF0\"><block type=\"logic_negate\" id=\"h3*,8dhQtH_L_xq#B:*X\"><value name=\"BOOL\"><block type=\"unit_key_get_state\" id=\"`VaRLhMdIy5@.LEPufVc\"><field name=\"NAME\">key_0</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_whileUntil\" id=\"u4t7+h^A9*?)%U~4g/cw\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_negate\" id=\"I]0g_M:]r,f}*sugP:yi\"><value name=\"BOOL\"><block type=\"unit_key_get_state\" id=\"@Q`]efVL1eLD.FfcM_6-\"><field name=\"NAME\">key_0</field></block></value></block></value><next><block type=\"time_sleep_millisecond\" id=\"0RhK_cd^{(F?Ke;PC0/9\"><value name=\"MS\"><shadow type=\"math_number\" id=\"9k)PbJY69-895+/^p{[2\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">5</field></shadow></value><next><block type=\"math_change\" id=\"~rXc=i}3rXj9xUf0=(J.\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"-HN--q9fBTd9V~~7Lu9!\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value><next><block type=\"label_set_text\" id=\"u0G)6tzZT2H6Rs0[S)Sr\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"c+(2E~)FNf?2Gv*9T^sO\"><field name=\"TEXT\">Label</field></shadow><block type=\"variables_get\" id=\"0=94G*MBXON_,chpKhTe\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field></block></value><next><block type=\"rect_set_size\" id=\"k`7`*{q2TAh:|rbLdg/K\"><field name=\"NAME\">rect0</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\".r]/1kQ0yz@#|qj6Ovax\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"iO8%8Y$R/NQEkM8DB`Cl\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow><block type=\"math_arithmetic\" id=\"u.UCQ#K8J,*b)a:tL1Ho\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\" id=\"MN?~f[G5$lv4foe`w$pv\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"9/_nnl3tZoaOQGn+8Rf6\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"wNY;6;Z=H!=4AVU$fYVx\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">2</field></shadow><block type=\"variables_get\" id=\"W2cw$29|gI9zNmOHo}RP\"><field name=\"VAR\" id=\"u3ZiHmOcmTX627YHZ_`D\">press_num_rect_multiplier</field></block></value></block></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block></statement><next><block type=\"procedures_callnoreturn\" id=\"O~aD%6t[}HqBMea3uIuN\"><mutation name=\"off_key_led\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"Sl3(KJ?q#cJ!2%6s88[Z\"><mutation name=\"stop_sound\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"y7+W3G{GZjbw@G=ZCqX2\"><mutation name=\"on_key_led_pink\"></mutation><next><block type=\"variables_set\" id=\"}r7~(9Ng?FieXuO@UCuE\"><field name=\"VAR\" id=\"ZEPQrp2N::Th5Qxm=xlL\">t_start</field><value name=\"VALUE\"><block type=\"time_get_ticks_ms\" id=\"O%gsrGVTI:%8nt5j3{=f\"></block></value><next><block type=\"procedures_callnoreturn\" id=\"J2tsPO[jzLw)K]a.uR(i\"><mutation name=\"rotate_out\"></mutation><next><block type=\"variables_set\" id=\"xH3ouY^eFscbVdnLzt(~\"><field name=\"VAR\" id=\"RRxbb*C#g*vo7^q#puo;\">remaining_time</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"4*C[g{fu0)g,#gUNhzxx\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"0$KH{myOBmik#x[xia*e\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"vM$$cMVtsO@,Wql7KIv)\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"MN?~f[G5$lv4foe`w$pv\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"v?{f=aYJ@-57XgG4_lR*\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"a~naP@aV,N~sHKJpsCx1\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">5</field></shadow><block type=\"variables_get\" id=\"esaf#6G8]}Y:ayxI[vYI\"><field name=\"VAR\" id=\"lsqS4_48xP-;cx?Tj?Mt\">press_num_time_divisor</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"cCwVMaM^Eof?.2.#13QO\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\".:u*IWFV)r0nVv{T5*,p\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"Q,@2~Xn2WN:T|yJP8a9s\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"bsv)e;Ed{(D|Q3(.exSW\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"q9@)l3(.HZ6CW@2-S,om\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"time_get_ticks_ms\" id=\"OIV10jkK1tN+%uC~00J-\"></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"4k0MjX`E-K$?@)];;.2J\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\";if_?(=f{#%+FG#:+.#q\"><field name=\"VAR\" id=\"ZEPQrp2N::Th5Qxm=xlL\">t_start</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"qkfVt]6g|xIXu.JFBRht\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value></block></value></block></value><next><block type=\"controls_whileUntil\" id=\"93SKu;gcJbJK-t:.g-N?\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"XZ}+Z9`1{gPZb0G]{8~{\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"?Q:##U/i$yAl,ezv6q!S\"><field name=\"VAR\" id=\"RRxbb*C#g*vo7^q#puo;\">remaining_time</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"Amk~2E=bx^kn-,=5P:O2\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO\"><block type=\"rect_set_size\" id=\"VX0Xskt/?.5joRWYT|gg\"><field name=\"NAME\">rect0</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\"|J1Er3HF!4tkChsBHZBE\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"iO8%8Y$R/NQEkM8DB`Cl\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow><block type=\"math_arithmetic\" id=\"{,DQt]_o?;?|Fk)Y?8gn\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\" id=\"MN?~f[G5$lv4foe`w$pv\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"F}hX*;X:YtZq9z*k.vZk\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"lYN$]KkSS1Kxmm*k.yZI\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">2</field></shadow><block type=\"variables_get\" id=\"kx~ut^vZER*vrS[P[TS_\"><field name=\"VAR\" id=\"u3ZiHmOcmTX627YHZ_`D\">press_num_rect_multiplier</field></block></value></block></value><next><block type=\"rect_set_size\" id=\"{)_,aa0*{M@t9!g?T2MR\"><field name=\"NAME\">rect1</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\"(cwtsa/VzDII.$(cEU6z\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"iO8%8Y$R/NQEkM8DB`Cl\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow><block type=\"math_convent_int\" id=\"ES[L7ZT9`c9FFc7v|F:d\"><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"T^p_}{TX0{3xjV]7[zbs\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\" id=\"0$KH{myOBmik#x[xia*e\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"?XA{]-Ve/Ep^1zmD[65l\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\" id=\"MN?~f[G5$lv4foe`w$pv\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"+_E^u{`]c$-u[zlpMQp7\"><field name=\"VAR\" id=\"RRxbb*C#g*vo7^q#puo;\">remaining_time</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"j:h8ci.^41!ehcU-^JaE\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">5</field></shadow><block type=\"variables_get\" id=\"DNGT~Ir7XHiE/)Iecnqz\"><field name=\"VAR\" id=\"lsqS4_48xP-;cx?Tj?Mt\">press_num_time_divisor</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"cCwVMaM^Eof?.2.#13QO\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"jvn#njB{f,oro760Z4Co\"><field name=\"VAR\" id=\"u3ZiHmOcmTX627YHZ_`D\">press_num_rect_multiplier</field></block></value></block></value></block></value><next><block type=\"time_sleep_millisecond\" id=\"(9,tk{-,4Q7XbwBI-wiL\"><value name=\"MS\"><shadow type=\"math_number\" id=\"G/!S+R8PWc)0?_*o0$:Z\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value><next><block type=\"variables_set\" id=\"VH(c~jI#y=C*2fDTT*LM\"><field name=\"VAR\" id=\"RRxbb*C#g*vo7^q#puo;\">remaining_time</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"RldYDlXkDvmlY[Y55zP8\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"0$KH{myOBmik#x[xia*e\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"YICLen^(Ux.EqBp9mp,W\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"MN?~f[G5$lv4foe`w$pv\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\":CtrXu^!.4t!F`RZqNmZ\"><field name=\"VAR\" id=\"D!6}jOb|K2J#![a}QjVq\">press_num</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"a~naP@aV,N~sHKJpsCx1\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">5</field></shadow><block type=\"variables_get\" id=\"zx(`7OeAh[5z;,%#-{b1\"><field name=\"VAR\" id=\"lsqS4_48xP-;cx?Tj?Mt\">press_num_time_divisor</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"cCwVMaM^Eof?.2.#13QO\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"U49n.TppKJL*yX}BOM@1\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"Q,@2~Xn2WN:T|yJP8a9s\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"|^Ka)P0PQnkU^W9ACXo;\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"q9@)l3(.HZ6CW@2-S,om\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"time_get_ticks_ms\" id=\"Xgm9:RrAx6H2`-W/.Deb\"></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"4k0MjX`E-K$?@)];;.2J\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"h}Yo6wc:3Vn*+8/MpOM;\"><field name=\"VAR\" id=\"ZEPQrp2N::Th5Qxm=xlL\">t_start</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"5W:bNJh]a~]?:@/!W/ZJ\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value></block></value></block></value></block></next></block></next></block></next></block></statement><next><block type=\"procedures_callnoreturn\" id=\"e(I6~9u=s0iR71arwozf\"><mutation name=\"stop\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"HVK4YizpmN1(*55#,fF[\"><mutation name=\"off_key_led\"></mutation><next><block type=\"rect_set_size\" id=\"`hI+fv$yRYvN84d,aJCQ\"><field name=\"NAME\">rect0</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\"ITS[w6YlA7,`goVbTk:F\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"iO8%8Y$R/NQEkM8DB`Cl\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"rect_set_size\" id=\"y)R2G*^/Ndh+6]*1qJE/\"><field name=\"NAME\">rect1</field><value name=\"WIDTH\"><shadow type=\"math_number\" id=\"sEDJF/:UY`?$_dlHCD9C\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">135</field></shadow></value><value name=\"HEIGHT\"><shadow type=\"math_number\" id=\"L~$yKX[U_]A@*;lm,qGo\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"image_set_file_name\" id=\"NalOAq~cr@:XlH7Y0tN[\"><field name=\"NAME\">image1</field><value name=\"IMAGE\"><shadow type=\"text\" id=\"A+5Gv`e0m|IKyshPNQs@\"><field name=\"TEXT\">home2.jpg</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"*uq}l)N(TflMg]JSfOZx\" x=\"1470\" y=\"450\"><field name=\"NAME\">on_key_led_red</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"unit_key_set_brightness\" id=\"|W8mKQ%pmf}[|iWuwtEG\"><field name=\"NAME\">key_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"(HtSg,$2j*--`*}3F[$9\"><mutation max=\"100\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">100</field></shadow></value><next><block type=\"unit_key_set_color\" id=\"!%;EaOvpQ0d`4c5vS9gQ\"><field name=\"NAME\">key_0</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"82j!!.`G^Xr8ReUys+iV\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#cc0000</field></block></value></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"f-PZHMFow|SF9kJ6+x!k\" x=\"1950\" y=\"430\"><field name=\"NAME\">three_count</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\"?+#|:ZP7n6Z^I(w%0eV:\"><field name=\"VAR\" id=\"sonivwlhizaPsXg~YnN$\">image_files</field><value name=\"VALUE\"><block type=\"lists_create_with\" id=\"as{K#u#T4*6I=6*zb^Q-\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\" id=\"~TRs~JHM1C~k~AbKK2`^\"><field name=\"TEXT\">3.jpg</field></block></value><value name=\"ADD1\"><block type=\"text\" id=\"tt[?@auE=Cg)x[!X08yk\"><field name=\"TEXT\">2.jpg</field></block></value><value name=\"ADD2\"><block type=\"text\" id=\"b#{c]E!sUJi_$ptQ9s58\"><field name=\"TEXT\">1.jpg</field></block></value></block></value><next><block type=\"controls_forEach\" id=\"G=Qa_1~.0vX!hAh#?^R(\"><field name=\"VAR\" id=\"(SC2i`,[,;d|9LwaO_fv\">k</field><value name=\"LIST\"><block type=\"variables_get\" id=\"2LCIpI!TcxIszizLI+7|\"><field name=\"VAR\" id=\"sonivwlhizaPsXg~YnN$\">image_files</field></block></value><statement name=\"DO\"><block type=\"procedures_callnoreturn\" id=\"}1,,d;f7BvI!8u?~KWfn\"><mutation name=\"on_key_led_red\"></mutation><next><block type=\"image_set_file_name\" id=\"Me{g`V-8LNXtv-aCCfP]\"><field name=\"NAME\">image1</field><value name=\"IMAGE\"><shadow type=\"text\" id=\"r|zti45.-8i(N9`1[t6.\"><field name=\"TEXT\">3.jpg</field></shadow><block type=\"variables_get\" id=\"ONCjJM}1-QLDs!QFNp]9\"><field name=\"VAR\" id=\"(SC2i`,[,;d|9LwaO_fv\">k</field></block></value><next><block type=\"speaker_tone\" id=\"RDsyOLWDZi3BMvS5bwtq\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"n-7_YP%Ujm`!XQ|Dq}i.\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">523</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"N6#/A6OQzIaI#/TWrv|E\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">500</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"~gHmMvrZg*Kb._+N%,{p\"><value name=\"MS\"><shadow type=\"math_number\" id=\"UN/[+Z~#(5y$J;DnGK#m\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">500</field></shadow></value><next><block type=\"procedures_callnoreturn\" id=\"dXo1a-J5E;S)E,+tQmoF\"><mutation name=\"off_key_led\"></mutation><next><block type=\"time_sleep_millisecond\" id=\"?vdEg?-b]pqB9deeu[.(\"><value name=\"MS\"><shadow type=\"math_number\" id=\"j2L(pj)o`FAJ4zW2BM#j\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">500</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"g%F-Xn`%n-bIi/z!_[N#\" x=\"1470\" y=\"590\"><field name=\"NAME\">off_key_led</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"unit_key_set_brightness\" id=\"!@(N9EJF?)^PLBRUv00.\"><field name=\"NAME\">key_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"1K.6z)#hkMv-_^$;tPEb\"><mutation max=\"100\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value></block></statement></block><block type=\"procedures_defnoreturn\" id=\"lwmITEtDia#7:|/^$]!f\" x=\"130\" y=\"750\"><field name=\"NAME\">stop</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\"rp@V?dVCL9KoZ`;vb}uu\"><field name=\"VAR\" id=\"qkWuMC6V6p=7d,8Di]]w\">state</field><value name=\"VALUE\"><block type=\"text\" id=\"ct/]dN{+}Ff^FJev~EFD\"><field name=\"TEXT\">stop</field></block></value><next><block type=\"pwm_set_duty\" id=\"E(cbI}L2y-x@+ezv!W]Z\"><field name=\"NAME\">26</field><value name=\"DUTY\"><shadow type=\"math_slider\" id=\"_OUF%![j=q3hj$$#*H|P\"><mutation max=\"1023\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"orFWk;`#z,`QmEIc0=W)\" x=\"1470\" y=\"710\"><field name=\"NAME\">on_key_led_pink</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"unit_key_set_brightness\" id=\"_UO6G]oafVS%]cmj=qCM\"><field name=\"NAME\">key_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"ij{%{/@rF)L:kxGNXjX+\"><mutation max=\"100\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">100</field></shadow></value><next><block type=\"unit_key_set_color\" id=\"Td:%nG:kNO|h0oYwGY:`\"><field name=\"NAME\">key_0</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"7(g.5KYiT*|Y[`@_GF1b\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ff99ff</field></block></value></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"jHn;}`CHoPgL/ebAD-5m\" x=\"150\" y=\"930\"><field name=\"NAME\">rotate_out</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\"D1Po0{+d$6RW1wGtkLM2\"><field name=\"VAR\" id=\"qkWuMC6V6p=7d,8Di]]w\">state</field><value name=\"VALUE\"><block type=\"text\" id=\"R!(dqM$6Hr8bHG+$j2cC\"><field name=\"TEXT\">rotate_out</field></block></value><next><block type=\"pwm_set_duty\" id=\"r{)O,[aL-F=*@x{mZ!,D\"><field name=\"NAME\">26</field><value name=\"DUTY\"><shadow type=\"math_slider\" id=\"%0^mX:_DGt[+(6H.h=h[\"><mutation max=\"1023\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">60</field></shadow><block type=\"variables_get\" id=\"B-6yUqv}h/t`61mAO;J{\"><field name=\"VAR\" id=\")nJvR!8hh#e2,ErU`N:k\">duty</field></block></value></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"G{~g6]Q!t~bP6|RArABc\" x=\"1950\" y=\"930\"><field name=\"NAME\">stop_sound</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"speaker_tone\" id=\";ux{`mMPx.Tv^}?5~yQ]\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"(IT%JJP*PzoQ8RTu7UcY\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1046</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"#6SLvi5CTm`^E3rad;f[\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">250</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"{dh{QL6D}N.bIPgG.oNR\"><value name=\"MS\"><shadow type=\"math_number\" id=\"i)I?!SS,acA[5jdz!k(Q\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">250</field></shadow></value><next><block type=\"speaker_tone\" id=\"UZy^3WWoJZk6nT{-O3Sp\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"%k?p/~?@}a3|KPPHE)q4\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">523</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"u$f46lqSRaIJc?XciR_k\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">250</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"K}})!5BoB}^S%6iu.50I\"><value name=\"MS\"><shadow type=\"math_number\" id=\"hjOe{D9KS@[kiaFj2|={\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">250</field></shadow></value><next><block type=\"speaker_tone\" id=\":y9a(,XgY:63fAz6xGgU\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"/N14(Fc`dy1t-2RMJYj|\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1046</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"G?eVZqQ3obiZm#t)JrCv\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">250</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"WzKF9Alqr)54wcDAX8Q*\"><value name=\"MS\"><shadow type=\"math_number\" id=\"uu_iIP|$;zs%bh3jbg75\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">250</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_callnoreturn\" id=\"X-;:%s@GobG)wE=tJn`h\" disabled=\"true\" x=\"867\" y=\"1376\"><mutation name=\"off_key_led\"></mutation></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":135,"height":240,"scale":0.67,"screenName":"","blockId":"","screenColorType":0,"rotation":0,"id":"builtin","createTime":1748074664670}],"logicWhenNum":0,"customList":[]}

Credits

Ryota Ikeuchi
1 project • 0 followers

Comments