{"id":28931,"date":"2026-05-12T16:28:02","date_gmt":"2026-05-12T16:28:02","guid":{"rendered":"https:\/\/retotech.fundacionendesa.org\/multisite\/?p=28931"},"modified":"2026-05-12T16:47:50","modified_gmt":"2026-05-12T16:47:50","slug":"4-apartat-programacio","status":"publish","type":"post","link":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/","title":{"rendered":"PROJECTE TASU &#8211; 4. Programaci\u00f3"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>4.1. Estructura del codi<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Aquest codi:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Llegeix dist\u00e0ncia del sensor esquerre i dret<\/li>\n\n\n\n<li>Determina quin sensor detecta l\u2019obstacle m\u00e9s proper<\/li>\n\n\n\n<li>Mou el servo cap a l\u2019angle corresponent<\/li>\n\n\n\n<li>Calcula un angle interpolat si vols m\u00e9s precisi\u00f3<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">A la plataforma bitbloq, el codi associat en forma de blocs seria el seg\u00fcent:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.2. Desenvolupament (amb bitbloq Apps)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Secci\u00f3 de definici\u00f3 de variables:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"211\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png\" alt=\"\" class=\"wp-image-28938\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png 484w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables-300x131.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Secci\u00f3 setup:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"590\" height=\"87\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Setup.png\" alt=\"\" class=\"wp-image-28939\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Setup.png 590w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Setup-300x44.png 300w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Secci\u00f3 loop:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"567\" height=\"526\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop1.png\" alt=\"\" class=\"wp-image-28940\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop1.png 567w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop1-300x278.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"603\" height=\"233\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop2.png\" alt=\"\" class=\"wp-image-28941\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop2.png 603w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop2-300x116.png 300w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop2-600x233.png 600w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"237\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop3.png\" alt=\"\" class=\"wp-image-28942\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop3.png 605w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop3-300x118.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"274\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop4.png\" alt=\"\" class=\"wp-image-28943\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop4.png 604w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Loop4-300x136.png 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.3. Desenvolupament (en C++)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">El codi, en C++, seria el seg\u00fcent:<\/p>\n\n\n\n<p class=\"has-gray-color has-text-color has-link-color has-small-font-size wp-elements-9b12eac6e2ef893257808d0e4f7135ed wp-block-paragraph\">\/\/ &nbsp; Llibreries incloses<\/p>\n\n\n\n<p class=\"has-highlight-color has-text-color has-link-color has-small-font-size wp-elements-ba5d632f3524b1d89598d713fb876e59 wp-block-paragraph\"><strong>#include<\/strong> <strong>&lt;<\/strong>BitbloqUS.h<strong>&gt;<\/strong><\/p>\n\n\n\n<p class=\"has-highlight-color has-text-color has-link-color has-small-font-size wp-elements-9a796ee2fc4ef8e8a7c32baa6a1b9a11 wp-block-paragraph\"><strong>#include<\/strong> <strong>&lt;<\/strong>Servo.h<strong>&gt;<\/strong><\/p>\n\n\n\n<p class=\"has-highlight-color has-text-color has-link-color has-small-font-size wp-elements-757812ea92388d3d7c24c99470dd326a wp-block-paragraph\"><strong>#include<\/strong> <strong>&lt;<\/strong>BitbloqSoftwareSerial.h<strong>&gt;<\/strong><\/p>\n\n\n\n<p class=\"has-gray-color has-text-color has-link-color has-small-font-size wp-elements-9a6ccf316928db19230f9f1355e7080b wp-block-paragraph\">\/\/ &nbsp; Variables i funcions<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-a13ec628bbc6b904d55a456464f0ab13 wp-block-paragraph\">uint8_t ledL = 13;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-d605dfecd67cec5e5cb80691ccb41735 wp-block-paragraph\">uint8_t ledC = 12;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-520b4ba004d73a899e28de913ea90bfb wp-block-paragraph\">uint8_t ledR = 11;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-c59e9b69c642da0ab9acf81d96479d1f wp-block-paragraph\">US ultrasonidosL(7, 7);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-3344d143d6e3884d2100eb967e84efb7 wp-block-paragraph\">US ultrasonidosC(6, 6);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-a11ff6567baf7b8ed9292e6c0c33878e wp-block-paragraph\">US ultrasonidosR(5, 5);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-1ffa43926a49347da81383c0803829bd wp-block-paragraph\">Servo servo;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-e502cab5ad23149ba4290def27408190 wp-block-paragraph\">bqSoftwareSerial board_bluetooth(0, 1, 115200);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-e2676e1a0c39ad26bf6c426080536b01 wp-block-paragraph\"><strong>float<\/strong> distanciaL = 0;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-2f139d38d2a79e1be3ae099d72b1cc57 wp-block-paragraph\"><strong>float<\/strong> distanciaC = 0;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-5d3f274a3e72c6710523eeb11ef9aa30 wp-block-paragraph\"><strong>float<\/strong> distanciaR = 0;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-0fcbe13a54f0641afd8942bf93692196 wp-block-paragraph\"><strong>float<\/strong> angle = 90;<\/p>\n\n\n\n<p class=\"has-gray-color has-text-color has-link-color has-small-font-size wp-elements-9aab32a670c4454482d96d6d40f65ea8 wp-block-paragraph\">\/\/ &nbsp; Setup<\/p>\n\n\n\n<p class=\"has-tertiary-color has-text-color has-link-color has-small-font-size wp-elements-c32ced481b092812776bf38f3177ff9b wp-block-paragraph\"><strong>void<\/strong> setup() {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-1ea86dbce9e1f677072f8fc6ab8a813b wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;pinMode(ledL, OUTPUT);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-2dc11e2320c5ef896e7718677dd0c46f wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;pinMode(ledC, OUTPUT);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-eb42a319d1a54bc491f461274f1f5310 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;pinMode(ledR, OUTPUT);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-fd3475232b4ae5b2d6eda7d802a89f8d wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;servo.attach(3);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-46fe98a5e25c2aff7308fb3fc3d75543 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;board_bluetooth.begin(115200);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-2caf923c59264ca544748efbb042b308 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;servo.write(angle);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-74ee224487753629e7763a880eccaced wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;board_bluetooth.println(angle);<\/p>\n\n\n\n<p class=\"has-tertiary-color has-text-color has-link-color has-small-font-size wp-elements-51b171dc2000bb64e2a39621d06ecc36 wp-block-paragraph\">}<\/p>\n\n\n\n<p class=\"has-gray-color has-text-color has-link-color has-small-font-size wp-elements-49d5bfec9b3b6b0a487a675118a85f33 wp-block-paragraph\">\/\/ &nbsp; Loop<\/p>\n\n\n\n<p class=\"has-tertiary-color has-text-color has-link-color has-small-font-size wp-elements-e8b60c0d471377bbbc4ce5035947f921 wp-block-paragraph\"><strong>void<\/strong> loop() {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-8265ab1d420f1ba4c6b73120923ebe67 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;distanciaL = ultrasonidosL.read();<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-c2a98ec798291cfea09b77baeffa5a68 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;distanciaC = ultrasonidosC.read();<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-e39de4d3bade701eb7b7fcdde8858746 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;distanciaR = ultrasonidosR.read();<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-69d4a464efd0479ae1653758d88c0d25 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>if<\/strong> (distanciaL == 0) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-747d073f0522dfc6273eb1a133e80c8a wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;distanciaL = 999;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-410f091fdde1ff53a7b55ff336bd6a51 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>if<\/strong> (distanciaC == 0) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-42a59292b5b862f94c3c418495e0a7d5 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;distanciaC = 999;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-88031bf11546027965c70cba3f634219 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>if<\/strong> (distanciaR == 0) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-c13beeb6215266a604f31659b5fe80ad wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;distanciaR = 999;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-717fc1739492f8628c15602cac035d9b wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>if<\/strong> (((distanciaL &lt; distanciaC) &amp;&amp; (distanciaL &lt;= distanciaR))) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-751443da6af37f4e95e273b3d6d716bb wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;angle = 45;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-6a5be2e7d3178e240c6591ee6a221cc4 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledL, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-1fee42b4d0bda1550cdc48bc123f39ea wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledC, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-f9a485615158737a31db7e8467f36073 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledR, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-09fbe5d3aee3faa24735130546e4fa4a wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>else<\/strong> <strong>if<\/strong> (((distanciaC &gt;= distanciaL) &amp;&amp; (distanciaL &lt;= distanciaR))) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-f2bf068c3f81b4e18e0801c68044ecde wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;angle = 67.5;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-6a5be2e7d3178e240c6591ee6a221cc4 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledL, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-b21e0bfd75101cd9cd125cadfe40c17f wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledC, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-f9a485615158737a31db7e8467f36073 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledR, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-aa891ab51cb044fcdaf6484d768ca9bb wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>else<\/strong> <strong>if<\/strong> (((distanciaC &gt;= distanciaL) &amp;&amp; (distanciaC &lt;= distanciaR))) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-838c6f4cd027ff3abdf8988864c586b5 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;angle = 90;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-b21e0bfd75101cd9cd125cadfe40c17f wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledC, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-f9a485615158737a31db7e8467f36073 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledR, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-838e9e4257dffd66c7b631a7ca8551e8 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledL, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-2f71c15ff29dad95e52a7c067745fd5d wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>else<\/strong> <strong>if<\/strong> (((distanciaC &gt;= distanciaL) &amp;&amp; (distanciaC &gt; distanciaR))) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-33b970518cc432fc090a787d454f753e wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;angle = 112.5;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-b21e0bfd75101cd9cd125cadfe40c17f wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledC, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-e6d4e4b584ab200a94d3ea7370181f9e wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledR, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-838e9e4257dffd66c7b631a7ca8551e8 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledL, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-b1f5aada90966362dbbb66f0447cc5e9 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>else<\/strong> <strong>if<\/strong> (((distanciaL &gt;= distanciaR) &amp;&amp; (distanciaC &gt; distanciaR))) {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-f71a2a693e109b1f4adc83bab0d94624 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;angle = 135;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-e6d4e4b584ab200a94d3ea7370181f9e wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledR, HIGH);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-1fee42b4d0bda1550cdc48bc123f39ea wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledC, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-838e9e4257dffd66c7b631a7ca8551e8 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledL, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-e34edfec86892c8b5b0321d331cddf29 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;<strong>else<\/strong> {<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-838c6f4cd027ff3abdf8988864c586b5 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;angle = 90;<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-838e9e4257dffd66c7b631a7ca8551e8 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledL, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-1fee42b4d0bda1550cdc48bc123f39ea wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledC, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-f9a485615158737a31db7e8467f36073 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digitalWrite(ledR, LOW);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-30b3a73cff7aed96936914a958de8659 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-74ee224487753629e7763a880eccaced wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;board_bluetooth.println(angle);<\/p>\n\n\n\n<p class=\"has-link-color has-small-font-size wp-elements-c3a2f1546b6ab61ab29afd1bb576a031 wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;delay(20);<\/p>\n\n\n\n<p class=\"has-tertiary-color has-text-color has-link-color has-small-font-size wp-elements-51b171dc2000bb64e2a39621d06ecc36 wp-block-paragraph\">}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>4.1. Estructura del codi Aquest codi: A la plataforma bitbloq, el codi associat en forma de blocs seria el seg\u00fcent:<\/p>\n","protected":false},"author":6283,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-28931","post","type-post","status-publish","format-standard","hentry","category-blog-retotech"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PROJECTE TASU - 4. Programaci\u00f3 - RetoTech 2020-2021<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PROJECTE TASU - 4. Programaci\u00f3 - RetoTech 2020-2021\" \/>\n<meta property=\"og:description\" content=\"4.1. Estructura del codi Aquest codi: A la plataforma bitbloq, el codi associat en forma de blocs seria el seg\u00fcent:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/\" \/>\n<meta property=\"og:site_name\" content=\"RetoTech 2020-2021\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-12T16:28:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-12T16:47:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png\" \/>\n<meta name=\"author\" content=\"Institut Pompeu Fabra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Institut Pompeu Fabra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/\"},\"author\":{\"name\":\"Institut Pompeu Fabra\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#\\\/schema\\\/person\\\/1ac441b4ad8522610ea61a6281a3bc84\"},\"headline\":\"PROJECTE TASU &#8211; 4. Programaci\u00f3\",\"datePublished\":\"2026-05-12T16:28:02+00:00\",\"dateModified\":\"2026-05-12T16:47:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/\"},\"wordCount\":630,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/05\\\/TASU-Variables.png\",\"articleSection\":[\"Blog RetoTech\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/\",\"url\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/\",\"name\":\"PROJECTE TASU - 4. Programaci\u00f3 - RetoTech 2020-2021\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/05\\\/TASU-Variables.png\",\"datePublished\":\"2026-05-12T16:28:02+00:00\",\"dateModified\":\"2026-05-12T16:47:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#primaryimage\",\"url\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/05\\\/TASU-Variables.png\",\"contentUrl\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/05\\\/TASU-Variables.png\",\"width\":484,\"height\":211},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/2026\\\/05\\\/12\\\/4-apartat-programacio\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PROJECTE TASU &#8211; 4. Programaci\u00f3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#website\",\"url\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/\",\"name\":\"RetoTech 2020-2021\",\"description\":\"Reto Tech Fundaci\u00f3n Endesa 2020-2021\",\"publisher\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#organization\",\"name\":\"RetoTech 2020-2021\",\"url\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2024\\\/07\\\/logo-endesa-white-1-1-2-e1720700070114.png\",\"contentUrl\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2024\\\/07\\\/logo-endesa-white-1-1-2-e1720700070114.png\",\"width\":512,\"height\":181,\"caption\":\"RetoTech 2020-2021\"},\"image\":{\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/#\\\/schema\\\/person\\\/1ac441b4ad8522610ea61a6281a3bc84\",\"name\":\"Institut Pompeu Fabra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a7a04d739d87425ef7ffa0ed816ed6e87ec102ef9a9821b5806e032c35483ed1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a7a04d739d87425ef7ffa0ed816ed6e87ec102ef9a9821b5806e032c35483ed1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a7a04d739d87425ef7ffa0ed816ed6e87ec102ef9a9821b5806e032c35483ed1?s=96&d=mm&r=g\",\"caption\":\"Institut Pompeu Fabra\"},\"url\":\"https:\\\/\\\/retotech.fundacionendesa.org\\\/multisite\\\/author\\\/pompeufabra\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PROJECTE TASU - 4. Programaci\u00f3 - RetoTech 2020-2021","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/","og_locale":"es_ES","og_type":"article","og_title":"PROJECTE TASU - 4. Programaci\u00f3 - RetoTech 2020-2021","og_description":"4.1. Estructura del codi Aquest codi: A la plataforma bitbloq, el codi associat en forma de blocs seria el seg\u00fcent:","og_url":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/","og_site_name":"RetoTech 2020-2021","article_published_time":"2026-05-12T16:28:02+00:00","article_modified_time":"2026-05-12T16:47:50+00:00","og_image":[{"url":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png","type":"","width":"","height":""}],"author":"Institut Pompeu Fabra","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Institut Pompeu Fabra","Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#article","isPartOf":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/"},"author":{"name":"Institut Pompeu Fabra","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#\/schema\/person\/1ac441b4ad8522610ea61a6281a3bc84"},"headline":"PROJECTE TASU &#8211; 4. Programaci\u00f3","datePublished":"2026-05-12T16:28:02+00:00","dateModified":"2026-05-12T16:47:50+00:00","mainEntityOfPage":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/"},"wordCount":630,"commentCount":0,"publisher":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#organization"},"image":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#primaryimage"},"thumbnailUrl":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png","articleSection":["Blog RetoTech"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/","url":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/","name":"PROJECTE TASU - 4. Programaci\u00f3 - RetoTech 2020-2021","isPartOf":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#website"},"primaryImageOfPage":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#primaryimage"},"image":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#primaryimage"},"thumbnailUrl":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png","datePublished":"2026-05-12T16:28:02+00:00","dateModified":"2026-05-12T16:47:50+00:00","breadcrumb":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#primaryimage","url":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png","contentUrl":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Variables.png","width":484,"height":211},{"@type":"BreadcrumbList","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/4-apartat-programacio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/retotech.fundacionendesa.org\/multisite\/"},{"@type":"ListItem","position":2,"name":"PROJECTE TASU &#8211; 4. Programaci\u00f3"}]},{"@type":"WebSite","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#website","url":"https:\/\/retotech.fundacionendesa.org\/multisite\/","name":"RetoTech 2020-2021","description":"Reto Tech Fundaci\u00f3n Endesa 2020-2021","publisher":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/retotech.fundacionendesa.org\/multisite\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#organization","name":"RetoTech 2020-2021","url":"https:\/\/retotech.fundacionendesa.org\/multisite\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#\/schema\/logo\/image\/","url":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2024\/07\/logo-endesa-white-1-1-2-e1720700070114.png","contentUrl":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2024\/07\/logo-endesa-white-1-1-2-e1720700070114.png","width":512,"height":181,"caption":"RetoTech 2020-2021"},"image":{"@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/retotech.fundacionendesa.org\/multisite\/#\/schema\/person\/1ac441b4ad8522610ea61a6281a3bc84","name":"Institut Pompeu Fabra","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/a7a04d739d87425ef7ffa0ed816ed6e87ec102ef9a9821b5806e032c35483ed1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a7a04d739d87425ef7ffa0ed816ed6e87ec102ef9a9821b5806e032c35483ed1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a7a04d739d87425ef7ffa0ed816ed6e87ec102ef9a9821b5806e032c35483ed1?s=96&d=mm&r=g","caption":"Institut Pompeu Fabra"},"url":"https:\/\/retotech.fundacionendesa.org\/multisite\/author\/pompeufabra\/"}]}},"_links":{"self":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts\/28931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/users\/6283"}],"replies":[{"embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/comments?post=28931"}],"version-history":[{"count":4,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts\/28931\/revisions"}],"predecessor-version":[{"id":28985,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts\/28931\/revisions\/28985"}],"wp:attachment":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/media?parent=28931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/categories?post=28931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/tags?post=28931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}