bouton_interrupteur.abp 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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="variable_number" id="194">
  7. <Label>bouton</Label>
  8. <Location>
  9. <X>494</X>
  10. <Y>174</Y>
  11. </Location>
  12. <Plug>
  13. <BlockConnector con-block-id="175" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  14. </Plug>
  15. </Block>
  16. <Block genus-name="variable_number" id="193">
  17. <Label>bouton</Label>
  18. <Location>
  19. <X>778</X>
  20. <Y>147</Y>
  21. </Location>
  22. <Plug>
  23. <BlockConnector con-block-id="173" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  24. </Plug>
  25. </Block>
  26. <Block genus-name="loop" id="154">
  27. <Location>
  28. <X>147</X>
  29. <Y>136</Y>
  30. </Location>
  31. <Sockets num-sockets="1">
  32. <BlockConnector con-block-id="169" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Faire" position-type="single"/>
  33. </Sockets>
  34. </Block>
  35. <Block genus-name="ifelse" id="169">
  36. <Location>
  37. <X>246</X>
  38. <Y>144</Y>
  39. </Location>
  40. <BeforeBlockId>154</BeforeBlockId>
  41. <Sockets num-sockets="3">
  42. <BlockConnector con-block-id="171" connector-kind="socket" connector-type="boolean" init-type="boolean" label="Teste" position-type="single"/>
  43. <BlockConnector con-block-id="177" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Alors éxecute.." position-type="single"/>
  44. <BlockConnector con-block-id="180" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Sinon éxécute" position-type="single"/>
  45. </Sockets>
  46. </Block>
  47. <Block genus-name="pin-write-digital" id="180">
  48. <Location>
  49. <X>432</X>
  50. <Y>323</Y>
  51. </Location>
  52. <BeforeBlockId>169</BeforeBlockId>
  53. <AfterBlockId>187</AfterBlockId>
  54. <Sockets num-sockets="2">
  55. <BlockConnector con-block-id="181" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  56. <BlockConnector con-block-id="182" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  57. </Sockets>
  58. </Block>
  59. <Block genus-name="setter_variable_number" id="187">
  60. <Location>
  61. <X>432</X>
  62. <Y>377</Y>
  63. </Location>
  64. <BeforeBlockId>180</BeforeBlockId>
  65. <Sockets num-sockets="2">
  66. <BlockConnector con-block-id="188" connector-kind="socket" connector-type="number" init-type="number" label="Nom de la variable" position-type="single"/>
  67. <BlockConnector con-block-id="189" connector-kind="socket" connector-type="number" init-type="number" label="valeur" position-type="single"/>
  68. </Sockets>
  69. </Block>
  70. <Block genus-name="number" id="189">
  71. <Label>0</Label>
  72. <Location>
  73. <X>780</X>
  74. <Y>404</Y>
  75. </Location>
  76. <Plug>
  77. <BlockConnector con-block-id="187" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  78. </Plug>
  79. </Block>
  80. <Block genus-name="variable_number" id="188">
  81. <Label>bouton</Label>
  82. <Location>
  83. <X>780</X>
  84. <Y>380</Y>
  85. </Location>
  86. <Plug>
  87. <BlockConnector con-block-id="187" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  88. </Plug>
  89. </Block>
  90. <Block genus-name="digital-low" id="182">
  91. <Location>
  92. <X>706</X>
  93. <Y>350</Y>
  94. </Location>
  95. <Plug>
  96. <BlockConnector con-block-id="180" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  97. </Plug>
  98. </Block>
  99. <Block genus-name="number" id="181">
  100. <Label>2</Label>
  101. <Location>
  102. <X>706</X>
  103. <Y>326</Y>
  104. </Location>
  105. <Plug>
  106. <BlockConnector con-block-id="180" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  107. </Plug>
  108. </Block>
  109. <Block genus-name="pin-write-digital" id="177">
  110. <Location>
  111. <X>433</X>
  112. <Y>204</Y>
  113. </Location>
  114. <BeforeBlockId>169</BeforeBlockId>
  115. <AfterBlockId>184</AfterBlockId>
  116. <Sockets num-sockets="2">
  117. <BlockConnector con-block-id="178" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  118. <BlockConnector con-block-id="179" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  119. </Sockets>
  120. </Block>
  121. <Block genus-name="setter_variable_number" id="184">
  122. <Location>
  123. <X>433</X>
  124. <Y>258</Y>
  125. </Location>
  126. <BeforeBlockId>177</BeforeBlockId>
  127. <Sockets num-sockets="2">
  128. <BlockConnector con-block-id="185" connector-kind="socket" connector-type="number" init-type="number" label="Nom de la variable" position-type="single"/>
  129. <BlockConnector con-block-id="186" connector-kind="socket" connector-type="number" init-type="number" label="valeur" position-type="single"/>
  130. </Sockets>
  131. </Block>
  132. <Block genus-name="number" id="186">
  133. <Location>
  134. <X>781</X>
  135. <Y>285</Y>
  136. </Location>
  137. <Plug>
  138. <BlockConnector con-block-id="184" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  139. </Plug>
  140. </Block>
  141. <Block genus-name="variable_number" id="185">
  142. <Label>bouton</Label>
  143. <Location>
  144. <X>781</X>
  145. <Y>261</Y>
  146. </Location>
  147. <Plug>
  148. <BlockConnector con-block-id="184" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  149. </Plug>
  150. </Block>
  151. <Block genus-name="digital-high" id="179">
  152. <Label>HIGH</Label>
  153. <Location>
  154. <X>707</X>
  155. <Y>231</Y>
  156. </Location>
  157. <Plug>
  158. <BlockConnector con-block-id="177" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  159. </Plug>
  160. </Block>
  161. <Block genus-name="number" id="178">
  162. <Label>2</Label>
  163. <Location>
  164. <X>707</X>
  165. <Y>207</Y>
  166. </Location>
  167. <Plug>
  168. <BlockConnector con-block-id="177" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  169. </Plug>
  170. </Block>
  171. <Block genus-name="and" id="171">
  172. <Location>
  173. <X>436</X>
  174. <Y>147</Y>
  175. </Location>
  176. <Plug>
  177. <BlockConnector con-block-id="169" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  178. </Plug>
  179. <Sockets num-sockets="2">
  180. <BlockConnector con-block-id="173" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  181. <BlockConnector con-block-id="175" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  182. </Sockets>
  183. </Block>
  184. <Block genus-name="not_equal" id="175">
  185. <Location>
  186. <X>484</X>
  187. <Y>171</Y>
  188. </Location>
  189. <Plug>
  190. <BlockConnector con-block-id="171" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  191. </Plug>
  192. <Sockets num-sockets="2">
  193. <BlockConnector con-block-id="194" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="bottom"/>
  194. <BlockConnector con-block-id="176" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="bottom"/>
  195. </Sockets>
  196. </Block>
  197. <Block genus-name="number" id="176">
  198. <Label>0</Label>
  199. <Location>
  200. <X>614</X>
  201. <Y>174</Y>
  202. </Location>
  203. <Plug>
  204. <BlockConnector con-block-id="175" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  205. </Plug>
  206. </Block>
  207. <Block genus-name="pin-read-digital" id="173">
  208. <Location>
  209. <X>484</X>
  210. <Y>147</Y>
  211. </Location>
  212. <Plug>
  213. <BlockConnector con-block-id="171" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  214. </Plug>
  215. <Sockets num-sockets="1">
  216. <BlockConnector con-block-id="193" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  217. </Sockets>
  218. </Block>
  219. </PageBlocks>
  220. </Page>
  221. </Pages>
  222. </cb:CODEBLOCKS>