-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.blocks
More file actions
5 lines (3 loc) · 16.3 KB
/
main.blocks
File metadata and controls
5 lines (3 loc) · 16.3 KB
1
2
3
4
5
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="GQ$BAEho%Lx$@3US^|uI">STOP</variable><variable id="}Q^R)s~1|lKmyHzw-9_l">Waterlevelkytka</variable><variable id="thnr3}!}Ebf9_tVYQbmW">Waterleveltank</variable><variable id="Ean8ajN4!LQ~]%[XlF@q">WaterTankNOWATER</variable><variable id="$E?Z6,=K[midd4_v8)};">stop_basic_info</variable><variable id=")9H.:H,}@0F_7xv0p^O6">pump</variable><variable id="K7n8moH*$2,7jSjC,V~S">teplota</variable></variables><block type="pxt-on-start" id="CdC%UvD{qM6gZLmLH)^U" x="-656" y="-230"><statement name="HANDLER"><block type="OLED_init" id="P2oHN/#AkCg6`dWWzgv."><value name="width"><shadow type="math_number" id="q~pjj(HI7A-dqJrJ!4TL"><field name="NUM">128</field></shadow></value><value name="height"><shadow type="math_number" id="#;7iE-xrYhBdN1tfyG4g"><field name="NUM">64</field></shadow></value><next><block type="OLED_drawLoading" id="pH-=`9vv.Qhs}jT`?Icd"><value name="percent"><shadow type="math_number_minmax" id="u88HKV!P,!a@u+mpV9v_"><mutation min="0" max="100" label="Percent" precision="0"></mutation><field name="SLIDER">25</field></shadow></value><next><block type="device_pause" id="sQ#u=knGqBCXREGY{-N6"><value name="pause"><shadow type="timePicker" id="{q`9ecl5x@P2j#2$X=9V"><field name="ms">200</field></shadow></value><next><block type="OLED_drawLoading" id="W(j.e7tQ5-fc-7X#hO~|"><value name="percent"><shadow type="math_number_minmax" id="ubj,hA.?7IwsoLD,cXE~"><mutation min="0" max="100" label="Percent" precision="0"></mutation><field name="SLIDER">50</field></shadow></value><next><block type="device_pause" id="+DPM5/}dMb6aA8~gqsDk"><value name="pause"><shadow type="timePicker" id="]jRRulQpg.J0+|SQVhge"><field name="ms">200</field></shadow></value><next><block type="OLED_drawLoading" id="a$[)2(F.Heq,CB.x)Si%"><value name="percent"><shadow type="math_number_minmax" id="hcPtrx]#OHKUUfeXe4.l"><mutation min="0" max="100" label="Percent" precision="0"></mutation><field name="SLIDER">75</field></shadow></value><next><block type="device_pause" id="cO7gl#9Pt%u5N+^xOHP8"><value name="pause"><shadow type="timePicker" id="x-Uyjg(^nd(pSnQVjvoQ"><field name="ms">100</field></shadow></value><next><block type="OLED_drawLoading" id="c@cU%R]N;x^EFe1%+iZ6"><value name="percent"><shadow type="math_number_minmax" id="^(VoYlD~c$RTNSK@)JgB"><mutation min="0" max="100" label="Percent" precision="0"></mutation><field name="SLIDER">100</field></shadow></value><next><block type="device_play_note" id="4A%X@v}h{$sz9sL%0NIT"><value name="note"><shadow type="device_note" id="x_0ZD;3ui;4%~Jg-dvO!"><field name="name">988</field></shadow></value><value name="duration"><shadow type="device_beat" id="4WF2WWB?U4,@VE]i#9te"><field name="fraction">BeatFraction.Whole</field></shadow></value><next><block type="device_pause" id="d]Op7D~8G/5i9AGHn!,n"><value name="pause"><shadow type="timePicker" id="waXrW3AeBov7Hwh;Du(,"><field name="ms">400</field></shadow></value><next><block type="device_play_note" id="mg`PogO%uR]:1BEt]2Aq"><value name="note"><shadow type="device_note" id="Bv[4TqfeAt@mXxAwh~.1"><field name="name">988</field></shadow></value><value name="duration"><shadow type="device_beat" id="5rs61p40p%w^+CxAo1(U"><field name="fraction">BeatFraction.Whole</field></shadow></value><next><block type="basic_show_icon" id="^;)+~cP#_F+MT%LIj]8t"><field name="i">IconNames.Yes</field><next><block type="variables_set" id="Llp2Q%!pqo04a1PuJ%2V"><field name="VAR" id="$E?Z6,=K[midd4_v8)};">stop_basic_info</field><value name="VALUE"><shadow type="math_number" id="I09/)y$`LVJXHAD`k.FB"><field name="NUM">0</field></shadow></value><next><block type="OLED_clear" id="2[{dDgEM/?}Jt9~%t`F6"></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="text_join" id="sPa2WVXFdM7WzUoQmqIU" disabled="true" x="0" y="0"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="q`:{M/a(Md[VJ}*yZE?+" disabled="true"><field name="TEXT">Hello</field></shadow></value><value name="ADD1"><shadow type="text" id="o!@{FrLL8rBPhf-uf^W#" disabled="true"><field name="TEXT">World</field></shadow></value></block><block type="device_forever" id="0Xb%lH`8+m;4}=}ak4L+" x="447" y="40"><statement name="HANDLER"><block type="variables_set" id="K/6Wfh(QsAMGCi4SL}~h"><field name="VAR" id="}Q^R)s~1|lKmyHzw-9_l">Waterlevelkytka</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="readsoilmoisture" id="5.3fdSu;8)e+vIGGwF=@"><field name="soilhumiditypin">AnalogPin.P1</field></block></value><next><block type="variables_set" id="+^!gL2LF?,i6u),7r[D("><field name="VAR" id="K7n8moH*$2,7jSjC,V~S">teplota</field><value name="VALUE"><shadow type="math_number" id="7?pdjA@UU{s`cgAB|d5u"><field name="NUM">0</field></shadow><block type="Environment_octopus_BME280" id="^`v$ksv0P5qV]K85(55y"><field name="state">Environment.BME280_state.BME280_temperature_C</field></block></value></block></next></block></statement></block><block type="device_forever" id="+aW4!U[!i1#i_+;fAnA#" x="-203" y="96"><statement name="HANDLER"><block type="controls_if" id="Q~*Z)a51^PP}|6/TMX_O"><value name="IF0"><shadow type="logic_boolean" id="6DO-U_~N4LRLW]b(V8Yw"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="?[V$$B0zOR!wO8y(|2,U"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id=")g7Qp{yL/lz~3T1c#dnB"><field name="NUM">0</field></shadow><block type="variables_get" id="a;5]CY*~-5NZTDmH^yc^"><field name="VAR" id="$E?Z6,=K[midd4_v8)};">stop_basic_info</field></block></value><value name="B"><shadow type="math_number" id=":26DLSvsl=Uw)5AH~gQs"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="controls_if" id="_wK(pTAk4y7r4g)KfU9Y"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="9z^7:ys,I41/6jAn9B^3"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="3$3e/D#iETmdgw0=[rTh"><field name="VAR" id="GQ$BAEho%Lx$@3US^|uI">STOP</field></block></value><value name="B"><shadow type="math_number" id="r?Eyhu(!UQBx#RjmNOg1"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="OLED_writeStringNewLine" id="diPA)*@6w-iIGDH_7JDp"><value name="str"><block type="text_join" id="XX2YXg^{imBd?pj-r@LH"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="^%E_e]`y#+~HeQNDNm#$"><field name="TEXT">Flower Level:</field></shadow></value><value name="ADD1"><shadow type="text" id="BR1wc8ilB@5r)plL^4kY"><field name="TEXT"></field></shadow><block type="variables_get" id="O^9KuEtVtz;ghi5tXgX4"><field name="VAR" id="}Q^R)s~1|lKmyHzw-9_l">Waterlevelkytka</field></block></value></block></value><next><block type="OLED_newLine" id="dJ=of@{T[,UlujCpEZLK"><next><block type="OLED_newLine" id="[8}xuxU-CK=AyZ~;$Nkd"><next><block type="OLED_newLine" id="WDEM}GXzbz3ZH_YWaS!W"><next><block type="OLED_newLine" id="Xjitvm};+94sB9VAyzQv"><next><block type="OLED_newLine" id="Nle-FUhU!Wy.$wK*lrCQ"><next><block type="OLED_writeStringNewLine" id="Y|=u:,Avwc2sxXKAh3K]"><value name="str"><shadow type="text" id="CbxY0J#t/LY@~11SoY]d"><field name="TEXT"></field></shadow><block type="text_join" id="VQ`@8,[)c|bq1r~-B@T*"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="@@W2elz{3,MGWN40IZ]F"><field name="TEXT">Pokojova teplota</field></shadow></value><value name="ADD1"><shadow type="text" id="P}1vK;QXUtWhXg]Kl#Oq"><field name="TEXT">World</field></shadow><block type="Environment_octopus_BME280" id="[7PLN52C~Ad/mTg#Gav["><field name="state">Environment.BME280_state.BME280_temperature_C</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type="device_pause" id="SW3PTiT:Q;wqjT2`}G;*"><value name="pause"><shadow type="timePicker" id="0BQi^QwuhR!.ZbhJsk(#"><field name="ms">5000</field></shadow></value><next><block type="OLED_clear" id="-9T~pVvN:RYW19.;*Q1h"></block></next></block></next></block></statement></block></statement></block><block type="device_clear_display" id="jbN!(#xkZd!ft}]E0Q8%" disabled="true" x="-569" y="413"></block><block type="device_forever" id="?h)m@U_SJ#W7H!xB{Eyu" x="767" y="440"><comment pinned="false" h="80" w="160">Když je "WaterTankNOWATER" "0" tak se spustí další command když je "Waterlevelkytka" ">30"
tak se zobrazí text flower is dry a čerpadlo pustí vodu dokud vlhkost pudy nebude 70%</comment><statement name="HANDLER"><block type="controls_if" id="a9FOs;n[AQ{oYXo2q|E("><value name="IF0"><shadow type="logic_boolean" id="Md4?7/?qs|q|UjWur7OD"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Eetc9pfbT`f;kh+inb;e"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="`DEHoxY/6MAmyElY`NCg"><field name="VAR" id="GQ$BAEho%Lx$@3US^|uI">STOP</field></block></value><value name="B"><shadow type="math_number" id="XIbm^Kz,TK#-()~9rf0L"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="controls_if" id="cbG=GM/TZn!]DP{PFXaW"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="U781QoCcS$8A;nYI~6EN"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="h4CXRg0./_eWIy+}Sgcr"><field name="VAR" id="Ean8ajN4!LQ~]%[XlF@q">WaterTankNOWATER</field></block></value><value name="B"><shadow type="math_number" id=",}Ur7S9fAHD^BoNz1`$B"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="controls_if" id="4D^|-d+h$@@Q%D`dUD]*"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="}ps6RuOj;K+=eBB^W*0u"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="?{y(TT4Do80?aL9atN1l"><field name="VAR" id="}Q^R)s~1|lKmyHzw-9_l">Waterlevelkytka</field></block></value><value name="B"><shadow type="math_number" id="-I_QU|vne9esA?{2OT`!"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="W(UEv+5JrX*dNaO9tpB/"><field name="VAR" id="$E?Z6,=K[midd4_v8)};">stop_basic_info</field><value name="VALUE"><shadow type="math_number" id="BpS`Zih8LsDJmfqR)Xv%"><field name="NUM">1</field></shadow></value><next><block type="OLED_drawLoading" id="/?Fc+:9tK]*ucM6kX9{:"><value name="percent"><shadow type="math_number_minmax"><mutation min="0" max="100" label="Percent" precision="0"></mutation><field name="SLIDER">0</field></shadow><block type="variables_get" id="/nZ!N=jk^@47#=(8}qtb"><field name="VAR" id="}Q^R)s~1|lKmyHzw-9_l">Waterlevelkytka</field></block></value><next><block type="device_pause" id="VY[I=m0p-rIw2^;C%pBU"><value name="pause"><shadow type="timePicker" id="-.Dc!3=7d@!Dhtbu2ST!"><field name="ms">2000</field></shadow></value><next><block type="OLED_clear" id="0k;)U:I|w1tmvDj+o_z?"><next><block type="controls_if" id="ip5x^+P8$=ey5Yy)Y8VQ"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="gGL$7S*/=m^eXudRc7kv"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="~_G:^(76F{UfKYK{JfZd"><field name="VAR" id="}Q^R)s~1|lKmyHzw-9_l">Waterlevelkytka</field></block></value><value name="B"><shadow type="math_number" id="a$H?mnp_Wd`nzAsk*/7G"><field name="NUM">70</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="WAdVbO@sf+*5gbr@~}{r"><field name="VAR" id="$E?Z6,=K[midd4_v8)};">stop_basic_info</field><value name="VALUE"><shadow type="math_number" id="SySvz}=VW=RTf3wRjelT"><field name="NUM">1</field></shadow></value><next><block type="device_set_digital_pin" id="n/OQH`wW})xP,~@-,?lU"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="0d88?D%M74RiB+u+=yFB"><mutation min="0" max="1" label="Number" precision="0"></mutation><field name="SLIDER">1</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="oGs|Z~Juo1lsyxd2nZB,"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="m;oy0r7RS$(ov:7h78ws"><mutation min="0" max="1" label="Number" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="variables_set" id="D-LiqO?Wg-fk;`yP?vX."><field name="VAR" id="$E?Z6,=K[midd4_v8)};">stop_basic_info</field><value name="VALUE"><shadow type="math_number" id="}OIBAOVk#B+xY7P%MnFZ"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></statement></block></statement></block></statement></block><block type="DS1307_GET_TIME" id="7yAWSMpf9:5hIm6;-ema" disabled="true" x="252" y="560"><field name="data">RTC_DS1307.TimeType.MINUTE</field></block><block type="variables_get" id="dWFoaIh22gnGnn~JTAgn" disabled="true" x="230" y="745"><field name="VAR" id="Ean8ajN4!LQ~]%[XlF@q">WaterTankNOWATER</field></block><block type="device_button_event" id="Pd)r3YhVF=cAKjW]S4=#" x="-709" y="821"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="7#_`?uewDpiic.`kdsOM"><field name="VAR" id="GQ$BAEho%Lx$@3US^|uI">STOP</field><value name="VALUE"><shadow type="math_number" id="n*-r)5RQdU0d4Hd5xpN|"><field name="NUM">0</field></shadow></value><next><block type="OLED_clear" id="0;M=L1rW;*Tqm|.m!M2)"><next><block type="OLED_writeStringNewLine" id="v|5_[3P#NrHm[P?c3]yo"><value name="str"><shadow type="text" id="Hx(?#H:[wK*#N2}qLKQn"><field name="TEXT">STARTED</field></shadow></value><next><block type="basic_show_icon" id="cA[ylH^1/6$3yZKn$oXh"><field name="i">IconNames.Yes</field><next><block type="device_play_note" id="Z3?-$KaT%KxFd=Np8s2N"><value name="note"><shadow type="device_note" id="_3jpmyx%-KLC-po147av"><field name="name">988</field></shadow></value><value name="duration"><shadow type="device_beat" id="NoA8K)d^ZweA)~+W7%/u"><field name="fraction">BeatFraction.Whole</field></shadow></value><next><block type="device_pause" id="#4$73^PMl^H+8R9;iR:A"><value name="pause"><shadow type="timePicker" id="20o/T5yi3Mq@a:g}~lox"><field name="ms">400</field></shadow></value><next><block type="device_play_note" id="G-/H@cdYAcUhc-0uR~AI"><value name="note"><shadow type="device_note" id="UdXZfEI3:b~gLac]Hn3t"><field name="name">988</field></shadow></value><value name="duration"><shadow type="device_beat" id="Aa4n20i{fYt|T$E/Imrt"><field name="fraction">BeatFraction.Whole</field></shadow></value><next><block type="OLED_clear" id="nWYV?uzPbdwXJyVB:-|N"></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="|GXVJPv[|{[Mt*qN*#G0" x="-621" y="1341"><field name="NAME">Button.B</field><comment pinned="false" h="80" w="160">Po zmáčknutí A+B
Se všechno zastaví</comment><statement name="HANDLER"><block type="OLED_clear" id="U280H;e`h,Z2/qbbX93U"><next><block type="OLED_writeStringNewLine" id="z0ir:^fPulRph7l,W42d"><value name="str"><shadow type="text" id="sfkjE2=d?XTn_K9I(i+y"><field name="TEXT">STOPED</field></shadow></value><next><block type="basic_show_icon" id="MD9#wW}3^@W]Wi/Y`M;s"><field name="i">IconNames.No</field><next><block type="device_play_note" id=":dQ3EDQ$i69Ga_5]h^n~"><value name="note"><shadow type="device_note" id="%uQn^Abg(Cpei21}a0Js"><field name="name">988</field></shadow></value><value name="duration"><shadow type="device_beat" id=",aZP:UoI@dd+9buN:]|0"><field name="fraction">BeatFraction.Double</field></shadow></value><next><block type="variables_set" id="MvaZaW3ZUoP#Y+sv%=8|"><field name="VAR" id="GQ$BAEho%Lx$@3US^|uI">STOP</field><value name="VALUE"><shadow type="math_number" id="Qy.F{CH(-EP;Zs6/?C=A"><field name="NUM">1</field></shadow></value><next><block type="OLED_clear" id="5,M00B)%sQGh6VnMY.]l"></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>