This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 3.93 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id=")n8`[(7Fk6}ToQ$cg1M%">light_level</variable></variables><block type="pxt-on-start" id="%g4].6#`F#/m3buS+/[8" x="0" y="0"><statement name="HANDLER"><block type="device_print_message" id="{DQP/xz_,n*{v(d05v=V"><value name="text"><shadow type="text" id=";o_-rh9[j~1ZGZ9$=01g"><field name="TEXT">¡BitO!</field></shadow></value></block></statement></block><block type="device_forever" id="xCj5jWrm/VR0!};Mu*MX" x="1" y="131"><statement name="HANDLER"><block type="variables_set" id="Kz}L#{gw+Cn()^zTB#P4"><field name="VAR" id=")n8`[(7Fk6}ToQ$cg1M%">light_level</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_light_level" id="^V._6so]*MA#k;s3rX(0"/></value><next><block type="device_plot_bar_graph" id="X)E|.)DALPZE:Trwm/Eh"><value name="value"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=":r06p8{mH`KbwEDe3vW6"><field name="VAR" id=")n8`[(7Fk6}ToQ$cg1M%">light_level</field></block></value><value name="high"><shadow type="math_number" id="@wf$)sD/7oDz{fzG?Ih?"><field name="NUM">255</field></shadow></value><next><block type="controls_if" id="zI?6WZb12$`GvZ#6EKBj"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="d8`FZOX3f`eGPBGGbvov"><field name="NAME">Button.A</field></block></value><statement name="DO0"><block type="device_show_number" id="j+zKg6;-8z5zI+-(n`QN"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="4|^GGh/`Nl8vWIAl%=c3"><field name="VAR" id=")n8`[(7Fk6}ToQ$cg1M%">light_level</field></block></value></block></statement><next><block type="controls_if" id="M~k:%!/O:ZH-Lsot{OFO"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="zu7[E%4im|8x5858lqjx"><field name="NAME">Button.B</field></block></value><statement name="DO0"><block type="device_show_number" id="[Sr$GEpya5RMxwK1#]5K"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="ghG`;,]}o8#Mp0/75iUa"><field name="VAR" id=")n8`[(7Fk6}ToQ$cg1M%">light_level</field></block></value></block></statement></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="QP2X#)60N%W;aO.m`DWY" x="510" y="172"><statement name="HANDLER"><block type="device_while" id="(OSlSV685-EQGEO$_,m_"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Q},JWzgSGKK9IOAdt;D|"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="xU.Whd83y*n5coJ/xAN:"><field name="VAR" id=")n8`[(7Fk6}ToQ$cg1M%">light_level</field></block></value><value name="B"><shadow type="math_number" id="~o06E5vu7-EUjA+`tmyD"><field name="NUM">0</field></shadow></value></block></value><statement name="DO"><block type="device_set_analog_pin" id="{64MX$-S{VBTPVikX)1k"><field name="name">AnalogPin.P0</field><value name="value"><shadow type="math_number_minmax"><mutation min="0" max="1023" label="Value" precision="0"/><field name="SLIDER">1023</field></shadow><block type="math_arithmetic" id="^Lz]V($pu4]nOH0Dtcby"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=")Rs(ru#}45G_f~|aPa:R"><field name="VAR" id=")n8`[(7Fk6}ToQ$cg1M%">light_level</field></block></value><value name="B"><shadow type="math_number" id="!3@5BP:kLOu3j%/)E$c^"><field name="NUM">75</field></shadow></value></block></value><next><block type="device_pause" id="#SdQp+y_39Ky[f2,l-9B"><value name="pause"><shadow type="timePicker" id="T}0.R0[x.ur|}?gGGeUd"><field name="ms">100</field></shadow></value></block></next></block></statement></block></statement></block></xml>