ultrason_led.abp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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="3360">
  5. <PageBlocks>
  6. <Block genus-name="pin-write-digital" id="532">
  7. <Location>
  8. <X>271</X>
  9. <Y>505</Y>
  10. </Location>
  11. <BeforeBlockId>371</BeforeBlockId>
  12. <Sockets num-sockets="2">
  13. <BlockConnector con-block-id="533" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  14. <BlockConnector con-block-id="534" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  15. </Sockets>
  16. </Block>
  17. <Block genus-name="digital-low" id="534">
  18. <Location>
  19. <X>413</X>
  20. <Y>532</Y>
  21. </Location>
  22. <Plug>
  23. <BlockConnector con-block-id="532" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  24. </Plug>
  25. </Block>
  26. <Block genus-name="number" id="533">
  27. <Label>9</Label>
  28. <Location>
  29. <X>413</X>
  30. <Y>508</Y>
  31. </Location>
  32. <Plug>
  33. <BlockConnector con-block-id="532" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  34. </Plug>
  35. </Block>
  36. <Block genus-name="pin-write-digital" id="529">
  37. <Location>
  38. <X>272</X>
  39. <Y>386</Y>
  40. </Location>
  41. <BeforeBlockId>368</BeforeBlockId>
  42. <Sockets num-sockets="2">
  43. <BlockConnector con-block-id="530" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  44. <BlockConnector con-block-id="531" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  45. </Sockets>
  46. </Block>
  47. <Block genus-name="digital-high" id="531">
  48. <Location>
  49. <X>414</X>
  50. <Y>413</Y>
  51. </Location>
  52. <Plug>
  53. <BlockConnector con-block-id="529" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  54. </Plug>
  55. </Block>
  56. <Block genus-name="number" id="530">
  57. <Label>9</Label>
  58. <Location>
  59. <X>414</X>
  60. <Y>389</Y>
  61. </Location>
  62. <Plug>
  63. <BlockConnector con-block-id="529" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  64. </Plug>
  65. </Block>
  66. <Block genus-name="greater" id="365">
  67. <Location>
  68. <X>329</X>
  69. <Y>299</Y>
  70. </Location>
  71. <Plug>
  72. <BlockConnector con-block-id="526" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  73. </Plug>
  74. <Sockets num-sockets="2">
  75. <BlockConnector con-block-id="366" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="bottom"/>
  76. <BlockConnector con-block-id="367" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="bottom"/>
  77. </Sockets>
  78. </Block>
  79. <Block genus-name="number" id="367">
  80. <Label>10</Label>
  81. <Location>
  82. <X>466</X>
  83. <Y>302</Y>
  84. </Location>
  85. <Plug>
  86. <BlockConnector con-block-id="365" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  87. </Plug>
  88. </Block>
  89. <Block genus-name="variable_number" id="366">
  90. <Label>ultrason</Label>
  91. <Location>
  92. <X>339</X>
  93. <Y>302</Y>
  94. </Location>
  95. <Plug>
  96. <BlockConnector con-block-id="365" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  97. </Plug>
  98. </Block>
  99. <Block genus-name="pin-read-digital" id="527">
  100. <Location>
  101. <X>329</X>
  102. <Y>275</Y>
  103. </Location>
  104. <Plug>
  105. <BlockConnector con-block-id="526" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  106. </Plug>
  107. <Sockets num-sockets="1">
  108. <BlockConnector con-block-id="528" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  109. </Sockets>
  110. </Block>
  111. <Block genus-name="number" id="528">
  112. <Label>8</Label>
  113. <Location>
  114. <X>449</X>
  115. <Y>275</Y>
  116. </Location>
  117. <Plug>
  118. <BlockConnector con-block-id="527" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  119. </Plug>
  120. </Block>
  121. <Block genus-name="and" id="526">
  122. <Location>
  123. <X>275</X>
  124. <Y>275</Y>
  125. </Location>
  126. <Plug>
  127. <BlockConnector con-block-id="364" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  128. </Plug>
  129. <Sockets num-sockets="2">
  130. <BlockConnector con-block-id="527" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  131. <BlockConnector con-block-id="365" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  132. </Sockets>
  133. </Block>
  134. <Block genus-name="pin-write-digital" id="371">
  135. <Location>
  136. <X>271</X>
  137. <Y>451</Y>
  138. </Location>
  139. <BeforeBlockId>364</BeforeBlockId>
  140. <AfterBlockId>532</AfterBlockId>
  141. <Sockets num-sockets="2">
  142. <BlockConnector con-block-id="372" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  143. <BlockConnector con-block-id="373" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  144. </Sockets>
  145. </Block>
  146. <Block genus-name="digital-high" id="373">
  147. <Location>
  148. <X>413</X>
  149. <Y>478</Y>
  150. </Location>
  151. <Plug>
  152. <BlockConnector con-block-id="371" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  153. </Plug>
  154. </Block>
  155. <Block genus-name="number" id="372">
  156. <Label>8</Label>
  157. <Location>
  158. <X>413</X>
  159. <Y>454</Y>
  160. </Location>
  161. <Plug>
  162. <BlockConnector con-block-id="371" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  163. </Plug>
  164. </Block>
  165. <Block genus-name="pin-write-digital" id="368">
  166. <Location>
  167. <X>272</X>
  168. <Y>332</Y>
  169. </Location>
  170. <BeforeBlockId>364</BeforeBlockId>
  171. <AfterBlockId>529</AfterBlockId>
  172. <Sockets num-sockets="2">
  173. <BlockConnector con-block-id="369" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  174. <BlockConnector con-block-id="370" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  175. </Sockets>
  176. </Block>
  177. <Block genus-name="digital-low" id="370">
  178. <Location>
  179. <X>414</X>
  180. <Y>359</Y>
  181. </Location>
  182. <Plug>
  183. <BlockConnector con-block-id="368" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  184. </Plug>
  185. </Block>
  186. <Block genus-name="number" id="369">
  187. <Label>8</Label>
  188. <Location>
  189. <X>414</X>
  190. <Y>335</Y>
  191. </Location>
  192. <Plug>
  193. <BlockConnector con-block-id="368" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  194. </Plug>
  195. </Block>
  196. <Block genus-name="ifelse" id="364">
  197. <Location>
  198. <X>105</X>
  199. <Y>272</Y>
  200. </Location>
  201. <BeforeBlockId>305</BeforeBlockId>
  202. <Sockets num-sockets="3">
  203. <BlockConnector con-block-id="526" connector-kind="socket" connector-type="boolean" init-type="boolean" label="Teste" position-type="single"/>
  204. <BlockConnector con-block-id="368" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Alors éxecute.." position-type="single"/>
  205. <BlockConnector con-block-id="371" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Sinon éxécute" position-type="single"/>
  206. </Sockets>
  207. </Block>
  208. <Block genus-name="pin-write-digital" id="305">
  209. <Location>
  210. <X>105</X>
  211. <Y>218</Y>
  212. </Location>
  213. <BeforeBlockId>213</BeforeBlockId>
  214. <AfterBlockId>364</AfterBlockId>
  215. <Sockets num-sockets="2">
  216. <BlockConnector con-block-id="306" connector-kind="socket" connector-type="number" init-type="number" label="#" position-type="single"/>
  217. <BlockConnector con-block-id="307" connector-kind="socket" connector-type="boolean" init-type="boolean" label="" position-type="single"/>
  218. </Sockets>
  219. </Block>
  220. <Block genus-name="digital-low" id="307">
  221. <Location>
  222. <X>247</X>
  223. <Y>245</Y>
  224. </Location>
  225. <Plug>
  226. <BlockConnector con-block-id="305" connector-kind="plug" connector-type="boolean" init-type="boolean" label="" position-type="mirror"/>
  227. </Plug>
  228. </Block>
  229. <Block genus-name="number" id="306">
  230. <Label>10</Label>
  231. <Location>
  232. <X>247</X>
  233. <Y>221</Y>
  234. </Location>
  235. <Plug>
  236. <BlockConnector con-block-id="305" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  237. </Plug>
  238. </Block>
  239. <Block genus-name="delay_microseconds" id="213">
  240. <Location>
  241. <X>105</X>
  242. <Y>188</Y>
  243. </Location>
  244. <BeforeBlockId>208</BeforeBlockId>
  245. <AfterBlockId>305</AfterBlockId>
  246. <Sockets num-sockets="1">
  247. <BlockConnector con-block-id="214" connector-kind="socket" connector-type="number" init-type="number" label="Microsecondes" position-type="single"/>
  248. </Sockets>
  249. </Block>
  250. <Block genus-name="number" id="214">
  251. <Label>1000</Label>
  252. <Location>
  253. <X>333</X>
  254. <Y>191</Y>
  255. </Location>
  256. <Plug>
  257. <BlockConnector con-block-id="213" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  258. </Plug>
  259. </Block>
  260. <Block genus-name="setter_variable_number" id="205">
  261. <Location>
  262. <X>105</X>
  263. <Y>28</Y>
  264. </Location>
  265. <BeforeBlockId>212</BeforeBlockId>
  266. <AfterBlockId>208</AfterBlockId>
  267. <Sockets num-sockets="2">
  268. <BlockConnector con-block-id="206" connector-kind="socket" connector-type="number" init-type="number" label="Nom de la variable" position-type="single"/>
  269. <BlockConnector con-block-id="202" connector-kind="socket" connector-type="number" init-type="number" label="valeur" position-type="single"/>
  270. </Sockets>
  271. </Block>
  272. <Block genus-name="serial_println" id="208">
  273. <Location>
  274. <X>105</X>
  275. <Y>158</Y>
  276. </Location>
  277. <BeforeBlockId>205</BeforeBlockId>
  278. <AfterBlockId>213</AfterBlockId>
  279. <Sockets num-sockets="1">
  280. <BlockConnector con-block-id="209" connector-kind="socket" connector-type="string" init-type="string" label="" position-type="single"/>
  281. </Sockets>
  282. </Block>
  283. <Block genus-name="message" id="209">
  284. <Label>ultrason =</Label>
  285. <Location>
  286. <X>225</X>
  287. <Y>161</Y>
  288. </Location>
  289. <Plug>
  290. <BlockConnector con-block-id="208" connector-kind="plug" connector-type="string" init-type="string" label="" position-type="single"/>
  291. </Plug>
  292. <Sockets num-sockets="1">
  293. <BlockConnector con-block-id="210" connector-kind="socket" connector-type="string" init-type="string" label="" position-type="single"/>
  294. </Sockets>
  295. </Block>
  296. <Block genus-name="glue_sn" id="210">
  297. <Location>
  298. <X>323</X>
  299. <Y>161</Y>
  300. </Location>
  301. <Plug>
  302. <BlockConnector con-block-id="209" connector-kind="plug" connector-type="string" init-type="string" label="" position-type="single"/>
  303. </Plug>
  304. <Sockets num-sockets="1">
  305. <BlockConnector con-block-id="211" connector-kind="socket" connector-type="number" init-type="number" label="" position-type="single"/>
  306. </Sockets>
  307. </Block>
  308. <Block genus-name="variable_number" id="211">
  309. <Label>ultrason</Label>
  310. <Location>
  311. <X>379</X>
  312. <Y>161</Y>
  313. </Location>
  314. <Plug>
  315. <BlockConnector con-block-id="210" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  316. </Plug>
  317. </Block>
  318. <Block genus-name="ultrasonic" id="202">
  319. <Location>
  320. <X>377</X>
  321. <Y>55</Y>
  322. </Location>
  323. <Plug>
  324. <BlockConnector con-block-id="205" connector-kind="plug" connector-type="number" init-type="number" label="cm" position-type="single"/>
  325. </Plug>
  326. <Sockets num-sockets="2">
  327. <BlockConnector con-block-id="203" connector-kind="socket" connector-type="number" init-type="number" label="trigger #" position-type="single"/>
  328. <BlockConnector con-block-id="204" connector-kind="socket" connector-type="number" init-type="number" label="echo #" position-type="single"/>
  329. </Sockets>
  330. </Block>
  331. <Block genus-name="number" id="204">
  332. <Label>3</Label>
  333. <Location>
  334. <X>567</X>
  335. <Y>79</Y>
  336. </Location>
  337. <Plug>
  338. <BlockConnector con-block-id="202" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  339. </Plug>
  340. </Block>
  341. <Block genus-name="number" id="203">
  342. <Label>2</Label>
  343. <Location>
  344. <X>567</X>
  345. <Y>55</Y>
  346. </Location>
  347. <Plug>
  348. <BlockConnector con-block-id="202" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  349. </Plug>
  350. </Block>
  351. <Block genus-name="variable_number" id="206">
  352. <Label>ultrason</Label>
  353. <Location>
  354. <X>377</X>
  355. <Y>31</Y>
  356. </Location>
  357. <Plug>
  358. <BlockConnector con-block-id="205" connector-kind="plug" connector-type="number" init-type="number" label="" position-type="mirror"/>
  359. </Plug>
  360. </Block>
  361. <Block genus-name="loop" id="212">
  362. <Location>
  363. <X>20</X>
  364. <Y>20</Y>
  365. </Location>
  366. <Sockets num-sockets="1">
  367. <BlockConnector con-block-id="205" connector-kind="socket" connector-type="cmd" init-type="cmd" label="Faire" position-type="single"/>
  368. </Sockets>
  369. </Block>
  370. </PageBlocks>
  371. </Page>
  372. </Pages>
  373. </cb:CODEBLOCKS>