Skip to content

Commit

Permalink
vågn ved ryst
Browse files Browse the repository at this point in the history
  • Loading branch information
runezj committed Sep 14, 2024
1 parent 151907a commit 02045a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions main.blocks
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="P8)$9Vp[t}2,mIi,MmGV">Sover</variable></variables><block type="function_definition" id="`g_IeQ,z~VtJHr~_If;D" x="584" y="-237"><mutation name="Ja" functionid="Biat3/_v@-gs,5*L`64~"></mutation><field name="function_name">Ja</field><statement name="STACK"><block type="controls_repeat_ext" id="lRWPuL+`]TbcG%]7rCj1"><value name="TIMES"><shadow type="math_whole_number" id="t(B)^.(ih|JqkgI6H:4B"><field name="NUM">2</field></shadow></value><statement name="DO"><block type="basic_show_icon" id="S!iG?618U1%ZOKsqOd*n"><field name="i">IconNames.Heart</field><next><block type="device_pause" id="l|35+|?@~MxS:1MVw]hs"><value name="pause"><shadow type="timePicker" id="Wx-pxBXL-75bqKQ.@b!["><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="havPICa62s?QLvp5H}jC"><next><block type="device_pause" id="[}~ulz8*V_eSlEP20ZBv"><value name="pause"><shadow type="timePicker" id="^_|-{Em9dB0`:(zV-;eL"><field name="ms">100</field></shadow></value></block></next></block></next></block></next></block></statement></block></statement></block><block type="device_forever" id="cPp#3D.h=J(19ce^FYc|" x="143" y="-186"></block><block type="pxt-on-start" id="EX^z!6?:c#Db96yu~JI-" x="0" y="0"><statement name="HANDLER"><block type="radio_set_group" id="1E05{$UexlWCeW)%1IZE"><value name="ID"><shadow type="math_number_minmax" id="!mde}g89Yc6e^QeTv!Y@"><mutation min="0" max="255" label="Id" precision="0"></mutation><field name="SLIDER">292</field></shadow></value><next><block type="radio_set_transmit_power" id=";*z#;BLZh`@X*cy-DuF{"><value name="power"><shadow type="math_number_minmax" id="R^+sD[`_Xg_T@#XOkgph"><mutation min="0" max="7" label="Power" precision="0"></mutation><field name="SLIDER">7</field></shadow></value></block></next></block></statement></block><block type="function_definition" id="y#6Bu(Js`(F-;[|hc=Za" x="205" y="63"><mutation name="Vågn" functionid="#~6?X}=rKBB]?[(5Jh!y"></mutation><field name="function_name">Vågn</field><statement name="STACK"><block type="controls_if" id=":`{_8vn/%t}}c!6=+^O{"><value name="IF0"><shadow type="logic_boolean" id="Y::^GLj},iY*iI|87_;N"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="R{/7^,m0.ImoumR3,2~/"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field></block></value><statement name="DO0"><block type="variables_set" id="TEFCExrhP!Q`g+T$R#1o"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field><value name="VALUE"><shadow type="math_number" id="j/.9t)!{ubOYNQuRz0gb"><field name="NUM">0</field></shadow><block type="logic_boolean" id="#97iMR$iESh,5?pxq,4K"><field name="BOOL">FALSE</field></block></value><next><block type="device_show_leds" id="cquRZY!sv#9$?f3(.Ufk"><field name="LEDS">`
# # # # #
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="P8)$9Vp[t}2,mIi,MmGV">Sover</variable></variables><block type="function_definition" id="`g_IeQ,z~VtJHr~_If;D" x="473" y="-395"><mutation name="Ja" functionid="Biat3/_v@-gs,5*L`64~"></mutation><field name="function_name">Ja</field><statement name="STACK"><block type="controls_repeat_ext" id="lRWPuL+`]TbcG%]7rCj1"><value name="TIMES"><shadow type="math_whole_number" id="t(B)^.(ih|JqkgI6H:4B"><field name="NUM">2</field></shadow></value><statement name="DO"><block type="basic_show_icon" id="S!iG?618U1%ZOKsqOd*n"><field name="i">IconNames.Heart</field><next><block type="device_pause" id="l|35+|?@~MxS:1MVw]hs"><value name="pause"><shadow type="timePicker" id="Wx-pxBXL-75bqKQ.@b!["><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="havPICa62s?QLvp5H}jC"><next><block type="device_pause" id="[}~ulz8*V_eSlEP20ZBv"><value name="pause"><shadow type="timePicker" id="^_|-{Em9dB0`:(zV-;eL"><field name="ms">100</field></shadow></value></block></next></block></next></block></next></block></statement><next><block type="function_call" id="X8@sGz2G~xDpUmafp98@"><mutation name="Vågn" functionid="#~6?X}=rKBB]?[(5Jh!y"></mutation></block></next></block></statement></block><block type="device_forever" id="cPp#3D.h=J(19ce^FYc|" x="32" y="-344"></block><block type="pxt-on-start" id="EX^z!6?:c#Db96yu~JI-" x="144" y="-186"><statement name="HANDLER"><block type="radio_set_group" id="1E05{$UexlWCeW)%1IZE"><value name="ID"><shadow type="math_number_minmax" id="!mde}g89Yc6e^QeTv!Y@"><mutation min="0" max="255" label="Id" precision="0"></mutation><field name="SLIDER">292</field></shadow></value><next><block type="radio_set_transmit_power" id=";*z#;BLZh`@X*cy-DuF{"><value name="power"><shadow type="math_number_minmax" id="R^+sD[`_Xg_T@#XOkgph"><mutation min="0" max="7" label="Power" precision="0"></mutation><field name="SLIDER">7</field></shadow></value></block></next></block></statement></block><block type="function_definition" id="y#6Bu(Js`(F-;[|hc=Za" x="94" y="-95"><mutation name="Vågn" functionid="#~6?X}=rKBB]?[(5Jh!y"></mutation><field name="function_name">Vågn</field><statement name="STACK"><block type="controls_if" id=":`{_8vn/%t}}c!6=+^O{"><value name="IF0"><shadow type="logic_boolean" id="Y::^GLj},iY*iI|87_;N"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="R{/7^,m0.ImoumR3,2~/"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field></block></value><statement name="DO0"><block type="variables_set" id="TEFCExrhP!Q`g+T$R#1o"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field><value name="VALUE"><shadow type="math_number" id="j/.9t)!{ubOYNQuRz0gb"><field name="NUM">0</field></shadow><block type="logic_boolean" id="#97iMR$iESh,5?pxq,4K"><field name="BOOL">FALSE</field></block></value><next><block type="device_show_leds" id="cquRZY!sv#9$?f3(.Ufk"><field name="LEDS">`
. . . . .
. . . . .
# # # # #
. # # # .
Expand All @@ -16,7 +16,7 @@
# # # # #
# # # # #
. # # # .
`</field></block></next></block></next></block></next></block></statement></block></statement></block><block type="function_definition" id="f*K6,lr=q#s@7VvHa,gX" x="-165" y="133"><mutation name="Blink" functionid="vBUZk40YdFAzLY6DFLBn"></mutation><field name="function_name">Blink</field><statement name="STACK"><block type="controls_if" id="-h_]8F$..`FG#76B9:NW"><value name="IF0"><shadow type="logic_boolean" id="gAuM[~LMX6GjeilM~Z/X"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="%=b^~ud@]6KYaAJ9bN%j"><value name="BOOL"><block type="variables_get" id="`HiF]q-~Uu5;%RRPzv8]"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field></block></value></block></value><statement name="DO0"><block type="device_show_leds" id="Do1oJ=%8y_v^H|[;uwHO"><field name="LEDS">`
`</field></block></next></block></next></block></next></block></statement></block></statement></block><block type="function_definition" id="f*K6,lr=q#s@7VvHa,gX" x="-276" y="-25"><mutation name="Blink" functionid="vBUZk40YdFAzLY6DFLBn"></mutation><field name="function_name">Blink</field><statement name="STACK"><block type="controls_if" id="-h_]8F$..`FG#76B9:NW"><value name="IF0"><shadow type="logic_boolean" id="gAuM[~LMX6GjeilM~Z/X"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="%=b^~ud@]6KYaAJ9bN%j"><value name="BOOL"><block type="variables_get" id="`HiF]q-~Uu5;%RRPzv8]"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field></block></value></block></value><statement name="DO0"><block type="device_show_leds" id="Do1oJ=%8y_v^H|[;uwHO"><field name="LEDS">`
. # # # .
# # # # #
# # # # #
Expand Down Expand Up @@ -46,7 +46,7 @@
# # # # #
# # # # #
. # # # .
`</field><next><block type="device_pause" id="O}QCU+Bl+^!W^7M`*%~X"><value name="pause"><shadow type="timePicker" id="#;7dZ8M=-1%^#5G!hf!f"><field name="ms">500</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="function_definition" id="YcN0swQV/#b7u.#iW[EN" x="588" y="172"><mutation name="Sov" functionid=")z-p:tAD}j;zm}q*{]~G"></mutation><field name="function_name">Sov</field><statement name="STACK"><block type="controls_if" id="m^:m{?*RF/L$2L!MjD.m"><value name="IF0"><shadow type="logic_boolean" id="PGDjiR?n15Fy`tRUmLx,"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="*0z])%9)h$J=/3iDSI25"><value name="BOOL"><block type="variables_get" id="4hP.c~x@STuX-/@]]x@p"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="E;se`UlTs`MX002|cdN~"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field><value name="VALUE"><shadow type="math_number" id="m|b+sdXhKP9w[4U{zHKV"><field name="NUM">0</field></shadow><block type="logic_boolean" id="v5}Yca@UVq`;TZ@*(D64"><field name="BOOL">TRUE</field></block></value><next><block type="device_show_leds" id="q)OGzZ]f-99X#X_n2b-,"><field name="LEDS">`
`</field><next><block type="device_pause" id="O}QCU+Bl+^!W^7M`*%~X"><value name="pause"><shadow type="timePicker" id="#;7dZ8M=-1%^#5G!hf!f"><field name="ms">500</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="function_definition" id="YcN0swQV/#b7u.#iW[EN" x="477" y="14"><mutation name="Sov" functionid=")z-p:tAD}j;zm}q*{]~G"></mutation><field name="function_name">Sov</field><statement name="STACK"><block type="controls_if" id="m^:m{?*RF/L$2L!MjD.m"><value name="IF0"><shadow type="logic_boolean" id="PGDjiR?n15Fy`tRUmLx,"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="*0z])%9)h$J=/3iDSI25"><value name="BOOL"><block type="variables_get" id="4hP.c~x@STuX-/@]]x@p"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="E;se`UlTs`MX002|cdN~"><field name="VAR" id="P8)$9Vp[t}2,mIi,MmGV">Sover</field><value name="VALUE"><shadow type="math_number" id="m|b+sdXhKP9w[4U{zHKV"><field name="NUM">0</field></shadow><block type="logic_boolean" id="v5}Yca@UVq`;TZ@*(D64"><field name="BOOL">TRUE</field></block></value><next><block type="device_show_leds" id="q)OGzZ]f-99X#X_n2b-,"><field name="LEDS">`
. . # . .
. # # # .
# # # # #
Expand All @@ -64,4 +64,4 @@
# . . . #
. # # # .
. . . . .
`</field></block></next></block></statement></block><block type="radio_on_string_drag" id="ycwI.uG-Q!ngQeSNWv6f" x="345" y="1834"><value name="HANDLER_DRAG_PARAM_receivedString"><block type="argument_reporter_string" id="1U}cgUM.r99DlRLh`fYF"><mutation duplicateondrag="true"></mutation><field name="VALUE">receivedString</field></block></value><statement name="HANDLER"><block type="controls_if" id="!X]Y_8:n)?0Nnblak}vN"><value name="IF0"><shadow type="logic_boolean" id="ApfM_x-n,S:={1HLPdxp"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="s!96590y=I9=hGvRnRS;"><field name="OP">EQ</field><value name="A"><shadow type="text" id="]Dyii9^eEPDJE3?ebB+T"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="^FWQ6Xvb6(O#U./ihj`?"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="Z4?p?4l8B_Y}Ic#Cxqp["><field name="TEXT">Blink</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="/IZsmQd3v`SG/_=@6p^*"><mutation name="Blink" functionid="vBUZk40YdFAzLY6DFLBn"></mutation></block></statement><next><block type="controls_if" id=";$=;:/Nvg}3g49}!E-:2"><value name="IF0"><shadow type="logic_boolean" id="c3N#6o0pI#V;NjxIjO4|"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="=,D6shB7_(YQ-3w7eTSv"><field name="OP">EQ</field><value name="A"><shadow type="text" id="koEB?3%dyZF~dP##wKL%"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="QpOxSJf(:D5DaxWr9)q6"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id=",%)]|?NmnAQCOS2%.,}g"><field name="TEXT">Sov</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="Qh~)s6zL##m6ZQiQK58Q"><mutation name="Sov" functionid=")z-p:tAD}j;zm}q*{]~G"></mutation></block></statement><next><block type="controls_if" id="QPNi;sK2kXq{1dpEMeg?"><value name="IF0"><shadow type="logic_boolean" id="qGN-F41kXy_4h.aFg[K`"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$WNN4]4Uwf!}EzHYPsq#"><field name="OP">EQ</field><value name="A"><shadow type="text" id="gd)4Se*8viugCzB~beW)"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="{`$6T=Wjzcur?9K0g*({"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="U)whp6YVbVGR)t]G,=gb"><field name="TEXT">Vågn</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="cip@CPX|/HKt:[h8`a%a"><mutation name="Vågn" functionid="#~6?X}=rKBB]?[(5Jh!y"></mutation></block></statement><next><block type="controls_if" id="*LX;]Z=j(cdP!XDtvkKH"><value name="IF0"><shadow type="logic_boolean" id="eWYxlxVfPOgS,=QDMYZ]"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="|rYNYnhwN07#CTf|{!TA"><field name="OP">EQ</field><value name="A"><shadow type="text" id="JgeJ`W^foJsDt4TNt5YP"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="jq$;j0,,rhkMLp2O42Wp"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="hD0=Jpzc,.W%2,|baZxR"><field name="TEXT">Ja</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="A9TxgmiTJm/cw4]64nTZ"><mutation name="Ja" functionid="Biat3/_v@-gs,5*L`64~"></mutation></block></statement></block></next></block></next></block></next></block></statement></block></xml>
`</field></block></next></block></statement></block><block type="radio_on_string_drag" id="ycwI.uG-Q!ngQeSNWv6f" x="449" y="2059"><value name="HANDLER_DRAG_PARAM_receivedString"><block type="argument_reporter_string" id="1U}cgUM.r99DlRLh`fYF"><mutation duplicateondrag="true"></mutation><field name="VALUE">receivedString</field></block></value><statement name="HANDLER"><block type="controls_if" id="!X]Y_8:n)?0Nnblak}vN"><value name="IF0"><shadow type="logic_boolean" id="ApfM_x-n,S:={1HLPdxp"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="s!96590y=I9=hGvRnRS;"><field name="OP">EQ</field><value name="A"><shadow type="text" id="]Dyii9^eEPDJE3?ebB+T"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="^FWQ6Xvb6(O#U./ihj`?"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="Z4?p?4l8B_Y}Ic#Cxqp["><field name="TEXT">Blink</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="/IZsmQd3v`SG/_=@6p^*"><mutation name="Blink" functionid="vBUZk40YdFAzLY6DFLBn"></mutation></block></statement><next><block type="controls_if" id=";$=;:/Nvg}3g49}!E-:2"><value name="IF0"><shadow type="logic_boolean" id="c3N#6o0pI#V;NjxIjO4|"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="=,D6shB7_(YQ-3w7eTSv"><field name="OP">EQ</field><value name="A"><shadow type="text" id="koEB?3%dyZF~dP##wKL%"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="QpOxSJf(:D5DaxWr9)q6"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id=",%)]|?NmnAQCOS2%.,}g"><field name="TEXT">Sov</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="Qh~)s6zL##m6ZQiQK58Q"><mutation name="Sov" functionid=")z-p:tAD}j;zm}q*{]~G"></mutation></block></statement><next><block type="controls_if" id="QPNi;sK2kXq{1dpEMeg?"><value name="IF0"><shadow type="logic_boolean" id="qGN-F41kXy_4h.aFg[K`"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$WNN4]4Uwf!}EzHYPsq#"><field name="OP">EQ</field><value name="A"><shadow type="text" id="gd)4Se*8viugCzB~beW)"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="{`$6T=Wjzcur?9K0g*({"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="U)whp6YVbVGR)t]G,=gb"><field name="TEXT">Vågn</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="cip@CPX|/HKt:[h8`a%a"><mutation name="Vågn" functionid="#~6?X}=rKBB]?[(5Jh!y"></mutation></block></statement><next><block type="controls_if" id="*LX;]Z=j(cdP!XDtvkKH"><value name="IF0"><shadow type="logic_boolean" id="eWYxlxVfPOgS,=QDMYZ]"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="|rYNYnhwN07#CTf|{!TA"><field name="OP">EQ</field><value name="A"><shadow type="text" id="JgeJ`W^foJsDt4TNt5YP"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="jq$;j0,,rhkMLp2O42Wp"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="hD0=Jpzc,.W%2,|baZxR"><field name="TEXT">Ja</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="A9TxgmiTJm/cw4]64nTZ"><mutation name="Ja" functionid="Biat3/_v@-gs,5*L`64~"></mutation></block></statement></block></next></block></next></block></next></block></statement></block></xml>
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ function Ja () {
basic.clearScreen()
basic.pause(100)
}
Vågn()
}
function Vågn () {
if (Sover) {
Sover = false
basic.showLeds(`
# # # # #
. . . . .
. . . . .
# # # # #
. # # # .
Expand Down

0 comments on commit 02045a7

Please sign in to comment.