{
 "meta": {
  "cloudId": "pxt/microbit",
  "editor": "blocksprj",
  "name": "6\u00ba S14 \u00b7 Robot Nezha que obedece al mando"
 },
 "source": "{\"pxt.json\": \"{\\n    \\\"name\\\": \\\"6\u00ba S14 \u00b7 Robot Nezha que obedece al mando\\\",\\n    \\\"description\\\": \\\"Gu\u00eda C\u00f3digo Escuela 4.0 \u00b7 6\u00ba S14\\\",\\n    \\\"dependencies\\\": {\\n        \\\"core\\\": \\\"*\\\",\\n        \\\"radio\\\": \\\"*\\\",\\n        \\\"microphone\\\": \\\"*\\\",\\n        \\\"pxt-nezha\\\": \\\"github:elecfreaks/pxt-nezha#v1.3.9\\\"\\n    },\\n    \\\"files\\\": [\\n        \\\"main.blocks\\\",\\n        \\\"main.ts\\\",\\n        \\\"README.md\\\"\\n    ],\\n    \\\"preferredEditor\\\": \\\"blocksprj\\\"\\n}\", \"main.blocks\": \"<xml xmlns=\\\"https://developers.google.com/blockly/xml\\\"><variables></variables><block type=\\\"pxt-on-start\\\" x=\\\"20\\\" y=\\\"20\\\"><statement name=\\\"HANDLER\\\"><block type=\\\"radio_set_group\\\"><value name=\\\"ID\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"0\\\" max=\\\"255\\\" label=\\\"Id\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">23</field></shadow></value></block></statement></block><block type=\\\"radio_on_number_drag\\\" x=\\\"345\\\" y=\\\"20\\\"><value name=\\\"HANDLER_DRAG_PARAM_receivedNumber\\\"><block type=\\\"argument_reporter_number\\\" deletable=\\\"false\\\"><field name=\\\"VALUE\\\">receivedNumber</field></block></value><statement name=\\\"HANDLER\\\"><block type=\\\"controls_if\\\"><mutation elseif=\\\"2\\\"></mutation><value name=\\\"IF0\\\"><shadow type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">TRUE</field></shadow><block type=\\\"logic_compare\\\"><field name=\\\"OP\\\">EQ</field><value name=\\\"A\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow><block type=\\\"argument_reporter_number\\\"><field name=\\\"VALUE\\\">receivedNumber</field></block></value><value name=\\\"B\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">1</field></shadow></value></block></value><statement name=\\\"DO0\\\"><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M1</field><comment pinned=\\\"false\\\" h=\\\"80\\\" w=\\\"160\\\">Recto: los motores van en espejo</comment><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">40</field></shadow></value><next><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M2</field><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">-40</field></shadow></value></block></next></block></statement><value name=\\\"IF1\\\"><shadow type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">TRUE</field></shadow><block type=\\\"logic_compare\\\"><field name=\\\"OP\\\">EQ</field><value name=\\\"A\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow><block type=\\\"argument_reporter_number\\\"><field name=\\\"VALUE\\\">receivedNumber</field></block></value><value name=\\\"B\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">2</field></shadow></value></block></value><statement name=\\\"DO1\\\"><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M1</field><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">40</field></shadow></value><next><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M2</field><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">0</field></shadow></value></block></next></block></statement><value name=\\\"IF2\\\"><shadow type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">TRUE</field></shadow><block type=\\\"logic_compare\\\"><field name=\\\"OP\\\">EQ</field><value name=\\\"A\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow><block type=\\\"argument_reporter_number\\\"><field name=\\\"VALUE\\\">receivedNumber</field></block></value><value name=\\\"B\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">3</field></shadow></value></block></value><statement name=\\\"DO2\\\"><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M1</field><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">0</field></shadow></value><next><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M2</field><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">-40</field></shadow></value></block></next></block></statement></block></statement></block></xml>\", \"main.ts\": \"radio.onReceivedNumber(function (receivedNumber) {\\n    if (receivedNumber == 1) {\\n        // Recto: los motores van en espejo\\n        neZha.setMotorSpeed(neZha.MotorList.M1, 40)\\n        neZha.setMotorSpeed(neZha.MotorList.M2, -40)\\n    } else if (receivedNumber == 2) {\\n        neZha.setMotorSpeed(neZha.MotorList.M1, 40)\\n        neZha.setMotorSpeed(neZha.MotorList.M2, 0)\\n    } else if (receivedNumber == 3) {\\n        neZha.setMotorSpeed(neZha.MotorList.M1, 0)\\n        neZha.setMotorSpeed(neZha.MotorList.M2, -40)\\n    }\\n})\\nradio.setGroup(23)\\n\", \"README.md\": \"# 6\u00ba S14 \u00b7 Robot Nezha que obedece al mando\\n\\nGu\u00eda did\u00e1ctica C\u00f3digo Escuela 4.0 \u00b7 6\u00ba S14. Programa de referencia para el docente.\\n\"}"
}