-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.blocks
More file actions
1 lines (1 loc) · 7.34 KB
/
main.blocks
File metadata and controls
1 lines (1 loc) · 7.34 KB
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</variable><variable id=":4B]VoU-X(:h99c22Xjg">brightness</variable></variables><block type="pxt-on-start" id="ernhMY4VrYB~$H@O$Z9:" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="u#E^cxQh9az2A5_t(/5]"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="kitronik_halo_hd_display_create" id="VkM3V##K`7FrNpzuU3xN"><value name="numZips"><shadow type="math_number" id="vW{ks-6JvhH.~TTa/`T;"><field name="NUM">60</field></shadow></value></block></value><next><block type="variables_set" id="ZM@Tu|(#kmqX;}]]K(ig"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field><value name="VALUE"><shadow type="math_number" id="8WM)ifs97OcX*jQa-X|T"><field name="NUM">113</field></shadow></value><next><block type="kitronik_halo_hd_display_clear" id="(/wuh(5g7N#7gd?ZPt=b"><value name="haloDisplay"><block type="variables_get" id=":-ePfDINRB{HMHw+7w@g"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><next><block type="kitronik_halo_hd_display_set_brightness" id="`]~1a?ocuwo1)IBG#bc6"><value name="haloDisplay"><block type="variables_get" id="P8x)nma.]Qkcae-@mM9I"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><value name="brightness"><shadow type="math_number_minmax" id="by{{DiS0pLvo$?K[Yvb/"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">113</field></shadow><block type="variables_get" id="8p6x!K5{!xDRaUrTH%xY"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field></block></value><next><block type="kitronik_halo_hd_rainbow" id="VSHbpkm^IN{ArzINJSH_"><value name="haloDisplay"><block type="variables_get" id=")2DEqf:,)-^EdDN$`V]j"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><value name="startHue"><shadow type="math_number" id=";%y^y01ZCCTeS@}o[0:T"><field name="NUM">1</field></shadow></value><value name="endHue"><shadow type="math_number" id="mDq}LibJ34%ozX{3#6nf"><field name="NUM">360</field></shadow></value><next><block type="device_while" id="77i;cwsN`@M2Xa4n3064"><value name="COND"><shadow type="logic_boolean" id="aS7mpi^4`$i_*2e|90Yt"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="kitronik_halo_hd_display_rotate" id="+pglUuo*YcT0=KB2}xc."><value name="haloDisplay"><block type="variables_get" id="K|=zz(,=q!{6|D:E[8Mi"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><value name="offset"><shadow type="math_number" id="fM42Z/Grywwnv@]Z6`@a"><field name="NUM">1</field></shadow></value><next><block type="kitronik_halo_hd_display_show" id="lW,S][Wn89W5?2?;SS28"><value name="haloDisplay"><block type="variables_get" id="gg7Z)WGqt|~?:FQ$(k0Q"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><next><block type="device_pause" id="uufs4S`er`eQYzbxpU~,"><value name="pause"><shadow type="timePicker" id="O%2_XnK^`W;hS/~[woV@"><field name="ms">1000</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id=",+uotYF;|(//0};lu,*v" x="522" y="30"><field name="NAME">Button.A</field><comment pinned="false" h="95" w="344">Press Button A to decrease the brightness of the HDHalo LEDs.</comment><statement name="HANDLER"><block type="controls_if" id="c23F=E;C(_Kg4$sX#XU|"><value name="IF0"><shadow type="logic_boolean" id="fUi,k3QcO{7z~s,rBwS_"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="g!79!U]n7sg+SET6xyih"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="fD7j3_`^=Q,(BMuRL@#t"><field name="NUM">0</field></shadow><block type="variables_get" id="yQ2w5u6ydv6~Ts]a7zW`"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field></block></value><value name="B"><shadow type="math_number" id="[-rKM0Nhi=^)yHqPVbeJ"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="OO(KpUdoPiT4p}TVIqx7"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field><value name="VALUE"><shadow type="math_number" id="Q/J5Bhdr0YJ7vaStw$cC"><field name="NUM">-1</field></shadow></value><next><block type="kitronik_halo_hd_display_set_brightness" id="sR0%tEsHx13[-b_ikDfI"><value name="haloDisplay"><block type="variables_get" id="7KpaWs;-#Qa-hH,zf*nv"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><value name="brightness"><shadow type="math_number_minmax" id="$XQ025]:U9oerJcFn[b-"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">113</field></shadow><block type="variables_get" id="$ib:iI^rl!!rH=6_k)Bq"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field></block></value></block></next></block></statement></block></statement></block><block type="device_button_event" id="61s_9dYj7.d!@eh:Wd`0" x="519" y="356"><field name="NAME">Button.B</field><comment pinned="false" h="122" w="395">Press Button B to increase the brightness of the HDHalo LEDs.</comment><statement name="HANDLER"><block type="controls_if" id="O{F`VO{qq43eE.79x[q-"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Vb=[ke,*0/+C({M![Z?D"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="-Vb/Vg46/+%T1?/LxFNM"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field></block></value><value name="B"><shadow type="math_number" id="YRW*9AXD8.?%[T#*LYq;"><field name="NUM">255</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="}LvP^3]tZz;f{R+@KYKf"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field><value name="VALUE"><shadow type="math_number" id="#8:HX=OU^Dd8}@iqWfN2"><field name="NUM">1</field></shadow></value><next><block type="kitronik_halo_hd_display_set_brightness" id="b0Qa/+)mgx+b6|5:vqg-"><value name="haloDisplay"><block type="variables_get" id="dLAKWp7=3yE@i2|h:Zec"><field name="VAR" id="*%)sjA6@#t!xh#U^+CX$">haloDisplay</field></block></value><value name="brightness"><shadow type="math_number_minmax"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">113</field></shadow><block type="variables_get" id="P.z/q/Qqc()qv9*[rwaB"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field></block></value></block></next></block></statement></block></statement></block><block type="device_button_event" id="V8-G~+i+O}BN71;^QmPP" x="249" y="601"><field name="NAME">Button.AB</field><comment pinned="false" h="122" w="395">Press Buttons A and B to display the brightness of the HDHalo LEDs.</comment><statement name="HANDLER"><block type="device_print_message" id="3cD=h`J-rIUJ$:E%#|a+"><value name="text"><shadow type="text" id=".p][q(G(s5g9S^zxYoC#"><field name="TEXT">Brightness:</field></shadow></value><next><block type="device_show_number" id="wG|LE_n/:c/vhy=7m3|}"><value name="number"><shadow type="math_number" id="%XhY(ozY84BOdUIqCNgT"><field name="NUM">0</field></shadow><block type="variables_get" id="K%*KWG6*Pw%ACS%WDMxL"><field name="VAR" id=":4B]VoU-X(:h99c22Xjg">brightness</field></block></value></block></next></block></statement></block></xml>