-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 3.58 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="+?{b`*8q|~hl*u?C1Q4e">temp</variable></variables><block type="pxt-on-start" id="3B5CUn$WY(07no%sKTt[" x="0" y="0"></block><block type="device_forever" id="ewx2})_cgGKXm/#TKT(s" x="209" y="7"><statement name="HANDLER"><block type="dht11_dht22_queryData" id="cg%5vXVPI80%BT-9*f8i"><field name="DHT">DHTtype.DHT11</field><field name="dataPin">DigitalPin.P2</field><value name="pullUp"><shadow type="logic_boolean" id="!YL+jOz7|0.nO9+NBP]+"><field name="BOOL">TRUE</field></shadow></value><value name="serialOtput"><shadow type="logic_boolean" id="t{9P}Hiy[ucR)@5pX+MS"><field name="BOOL">FALSE</field></shadow></value><value name="wait"><shadow type="logic_boolean" id="A^F|eQ6g{..r{C-p%M8m"><field name="BOOL">TRUE</field></shadow></value><next><block type="variables_set" id="/:MOMQe`S9yD1:iNpE#x"><field name="VAR" id="+?{b`*8q|~hl*u?C1Q4e">temp</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="dht11_dht22_readData" id="mRr;iD~5Fbr-ASspn9#C"><field name="data">dataType.temperature</field></block></value><next><block type="basic_show_icon" id="W0+;Cvn{OJ4umpe(zysX"><field name="i">IconNames.Happy</field><next><block type="controls_if" id="w,,D}Y+EP0=z**;Ot8Vo"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Nu^/H%V|,Fc~p1qn^w[v"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="||9qBzuAH$?o4zMYzL.,"><field name="VAR" id="+?{b`*8q|~hl*u?C1Q4e">temp</field></block></value><value name="B"><shadow type="math_number" id="LDdt2`Q6stW57aF;nXPL"><field name="NUM">24</field></shadow></value></block></value><statement name="DO0"><block type="basic_show_icon" id="S/2HuXoCxU_seKa`vZ[5"><field name="i">IconNames.Sad</field><next><block type="device_set_digital_pin" id="Z-oBTEc[,-E*SAQt3xC7"><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id="^2rpZ`pV8.dAu0KBP$?["><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="]mnjMO3pupBgv^TVOJ$x"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="`}!@O-AN2Qx%k.o[jNn)"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_pause" id="d;do9Bj3H)v3W{|?K^V#"><value name="pause"><shadow type="timePicker" id="gJWH$jR#Gzz+HE1)wxN8"><field name="ms">5000</field></shadow></value><next><block type="device_set_digital_pin" id="._q3(1d(^8hNP!WW:AbO"><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id="^T*8NgXk=q1gC^+$:;4u"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="c;@HUnUKRPj@Yy99Pqx9"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="#Qz_Qfa$k^/:Hw:Y,o-X"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_pause" id="a-bK`T(}@ywMAh)t7p}/"><value name="pause"><shadow type="timePicker" id="(@Nz;Jg`d/NkBtUAKz^2"><field name="ms">5000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block></xml>