servo_bouton_stop.abp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <cb:CODEBLOCKS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://education.mit.edu/openblocks/ns http://education.mit.edu/openblocks/codeblocks.xsd" xmlns:cb="http://education.mit.edu/openblocks/ns">
  3. <Pages collapsible-pages="yes" drawer-with-page="yes">
  4. <Page page-color="40 40 40" page-drawer="ArduBlock" page-infullview="yes" page-name="ArduBlock" page-width="1920">
  5. <PageBlocks>
  6. <Block genus-name="servo" id="170">
  7. <Location>
  8. <X>654</X>
  9. <Y>282</Y>
  10. </Location>
  11. <BeforeBlockId>165</BeforeBlockId>
  12. <Sockets num-sockets="2">
  13. <BlockConnector con-block-id="171" connector-kind="socket" connector-type="number" init-type="number" label="broche#" position-type="single"/>
  14. <BlockConnector con-block-id="172" connector-kind="socket" connector-type="number" init-type="number" label="angle" position-type="single"/>
  15. </Sockets>
  16. </Block>
  17. <Block genus-name="number" id="172">
  18. <Label>-90</Label>
  19. <Location>
  20. <X>804</X>
  21. <Y>309</Y>
  22. </Location>
  23. <Plug>
  24. <BlockConnector con-block-id="170" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  25. </Plug>
  26. </Block>
  27. <Block genus-name="number" id="171">
  28. <Location>
  29. <X>804</X>
  30. <Y>285</Y>
  31. </Location>
  32. <Plug>
  33. <BlockConnector con-block-id="170" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  34. </Plug>
  35. </Block>
  36. <Block genus-name="delay" id="165">
  37. <Location>
  38. <X>654</X>
  39. <Y>252</Y>
  40. </Location>
  41. <BeforeBlockId>162</BeforeBlockId>
  42. <AfterBlockId>170</AfterBlockId>
  43. <Sockets num-sockets="1">
  44. <BlockConnector con-block-id="166" connector-kind="socket" connector-type="number" init-type="number" label="Millisecondes" position-type="single"/>
  45. </Sockets>
  46. </Block>
  47. <Block genus-name="number" id="166">
  48. <Label>1000</Label>
  49. <Location>
  50. <X>916</X>
  51. <Y>255</Y>
  52. </Location>
  53. <Plug>
  54. <BlockConnector con-block-id="165" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  55. </Plug>
  56. </Block>
  57. <Block genus-name="servo" id="162">
  58. <Location>
  59. <X>654</X>
  60. <Y>198</Y>
  61. </Location>
  62. <BeforeBlockId>156</BeforeBlockId>
  63. <AfterBlockId>165</AfterBlockId>
  64. <Sockets num-sockets="2">
  65. <BlockConnector con-block-id="163" connector-kind="socket" connector-type="number" init-type="number" label="broche#" position-type="single"/>
  66. <BlockConnector con-block-id="164" connector-kind="socket" connector-type="number" init-type="number" label="angle" position-type="single"/>
  67. </Sockets>
  68. </Block>
  69. <Block genus-name="number" id="164">
  70. <Label>90</Label>
  71. <Location>
  72. <X>804</X>
  73. <Y>225</Y>
  74. </Location>
  75. <Plug>
  76. <BlockConnector con-block-id="162" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  77. </Plug>
  78. </Block>
  79. <Block genus-name="number" id="163">
  80. <Location>
  81. <X>804</X>
  82. <Y>201</Y>
  83. </Location>
  84. <Plug>
  85. <BlockConnector con-block-id="162" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  86. </Plug>
  87. </Block>
  88. <Block genus-name="pin-read-digital" id="157">
  89. <Location>
  90. <X>657</X>
  91. <Y>169</Y>
  92. </Location>
  93. <Plug>
  94. <BlockConnector con-block-id="156" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  95. </Plug>
  96. <Sockets num-sockets="1">
  97. <BlockConnector con-block-id="158" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  98. </Sockets>
  99. </Block>
  100. <Block genus-name="number" id="158">
  101. <Location>
  102. <X>951</X>
  103. <Y>169</Y>
  104. </Location>
  105. <Plug>
  106. <BlockConnector con-block-id="157" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  107. </Plug>
  108. </Block>
  109. <Block genus-name="while" id="156">
  110. <Location>
  111. <X>441</X>
  112. <Y>166</Y>
  113. </Location>
  114. <BeforeBlockId>154</BeforeBlockId>
  115. <Sockets num-sockets="2">
  116. <BlockConnector con-block-id="157" connector-kind="socket" connector-type="boolean" init-type="boolean" label="Teste la condition" position-type="single"/>
  117. <BlockConnector con-block-id="162" connector-kind="socket" connector-type="cmd" init-type="cmd" label="" position-type="single"/>
  118. </Sockets>
  119. </Block>
  120. <Block genus-name="loop" id="154">
  121. <Location>
  122. <X>342</X>
  123. <Y>158</Y>
  124. </Location>
  125. <Sockets num-sockets="1">
  126. <BlockConnector con-block-id="156" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Faire" position-type="single"/>
  127. </Sockets>
  128. </Block>
  129. </PageBlocks>
  130. </Page>
  131. </Pages>
  132. </cb:CODEBLOCKS>