Debian Codegraph @

online/static/samples/Sensor Addons/water level monitor.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <variables>
3 <variable id="Zu^5WGw0OPN=sFD$y8+B">tankp</variable>
4 </variables>
5 <block type="set_reg_bits_string" id="QO5^h;arJPoq$[^$H}j}" x="25" y="121">
6 <field name="REGISTER">DDRB</field>
7 <field name="B7">TRUE</field>
8 <field name="B6">TRUE</field>
9 <field name="B5">TRUE</field>
10 <field name="B4">TRUE</field>
11 <field name="B3">TRUE</field>
12 <field name="B2">TRUE</field>
13 <field name="B1">TRUE</field>
14 <field name="B0">TRUE</field>
15 <next>
16 <block type="controls_whileUntil" id="Lk`Z2vknMnR.t)_znAY+">
17 <field name="MODE">WHILE</field>
18 <value name="BOOL">
19 <shadow type="logic_boolean" id="lA%HLTQB0LaE_X|$bVBZ">
20 <field name="BOOL">TRUE</field>
21 </shadow>
22 </value>
23 <statement name="DO">
24 <block type="variables_set" id="=NF,U8H]NQaNBl6$$swg">
25 <field name="VAR" id="Zu^5WGw0OPN=sFD$y8+B">tankp</field>
26 <value name="VALUE">
27 <block type="read_i2c_sensor_flexible_dynamic" id="o-SHPk)lbV%}?Pu{lB3U">
28 <field name="NAME">[118]BMP280</field>
29 <field name="PARAM">1</field>
30 <field name="CONFIG"></field>
31 <field name="SETTING"></field>
32 </block>
33 </value>
34 <next>
35 <block type="controls_if" id="%$D9z%k7R.;LmxIgZ49a">
36 <comment pinned="false" h="80" w="160">TANK IS EMPTY. TURN ON MOTOR</comment>
37 <value name="IF0">
38 <block type="logic_compare" id="w%k_{P#B?kYLpOO9hg-i">
39 <field name="OP">LT</field>
40 <value name="A">
41 <block type="variables_get" id="q4!ooq*(6|WGUI2`t;_)">
42 <field name="VAR" id="Zu^5WGw0OPN=sFD$y8+B">tankp</field>
43 </block>
44 </value>
45 <value name="B">
46 <block type="math_number" id="Vy#Kt1WWQc2TQ(e*Z@J^">
47 <field name="NUM">1.002</field>
48 </block>
49 </value>
50 </block>
51 </value>
52 <statement name="DO0">
53 <block type="set_reg_bits_string" id="NoH:J3UTJok?LyDql:z4">
54 <field name="REGISTER">PORTB</field>
55 <field name="B7">FALSE</field>
56 <field name="B6">FALSE</field>
57 <field name="B5">FALSE</field>
58 <field name="B4">FALSE</field>
59 <field name="B3">FALSE</field>
60 <field name="B2">FALSE</field>
61 <field name="B1">FALSE</field>
62 <field name="B0">TRUE</field>
63 </block>
64 </statement>
65 <next>
66 <block type="controls_if" id="7us/yy(x2PxPdL_U.pa;">
67 <comment pinned="false" h="80" w="160">TANK IS FULL. TURN OFF MOTOR</comment>
68 <value name="IF0">
69 <block type="logic_compare" id="|@0Hmzy*j%CrgG-olBh_">
70 <field name="OP">GT</field>
71 <value name="A">
72 <block type="variables_get" id="EncqvoihCC{ALRv]UiQD">
73 <field name="VAR" id="Zu^5WGw0OPN=sFD$y8+B">tankp</field>
74 </block>
75 </value>
76 <value name="B">
77 <block type="math_number" id="+~wk{utrL6^hKq1Nl:*^">
78 <field name="NUM">1.008</field>
79 </block>
80 </value>
81 </block>
82 </value>
83 <statement name="DO0">
84 <block type="set_reg_bits_string" id="qz*?=jTpe@W/v,~s$n/r">
85 <field name="REGISTER">PORTB</field>
86 <field name="B7">FALSE</field>
87 <field name="B6">FALSE</field>
88 <field name="B5">FALSE</field>
89 <field name="B4">FALSE</field>
90 <field name="B3">FALSE</field>
91 <field name="B2">FALSE</field>
92 <field name="B1">FALSE</field>
93 <field name="B0">FALSE</field>
94 </block>
95 </statement>
96 <next>
97 <block type="wait_seconds" id="%ooh,C.,+@xCXy9nW.!e">
98 <field name="SECONDS">0.1</field>
99 </block>
100 </next>
101 </block>
102 </next>
103 </block>
104 </next>
105 </block>
106 </statement>
107 </block>
108 </next>
109 </block>
110 <description>
111 <![CDATA[<h1>Water level sensing and automatic pump operation</h1><p><br></p><p><br></p><p>This program monitors pressure from a Bmp280 pressure sensor to control a water pump via PB0</p>]]>
112 </description>
113 </xml>