{
 "meta": {
  "cloudId": "pxt/microbit",
  "editor": "blocksprj",
  "name": "6\u00ba S6 \u00b7 El cuadrado con funciones"
 },
 "source": "{\"pxt.json\": \"{\\n    \\\"name\\\": \\\"6\u00ba S6 \u00b7 El cuadrado con funciones\\\",\\n    \\\"description\\\": \\\"Gu\u00eda C\u00f3digo Escuela 4.0 \u00b7 6\u00ba S6\\\",\\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><variable id=\\\"J-uZ?]ZG`PX{tM,~.}i7\\\">tiempo_avance</variable><variable id=\\\"]d{BFrHp56ly(cd=#)DU\\\">tiempo_giro</variable></variables><block type=\\\"pxt-on-start\\\" x=\\\"20\\\" y=\\\"20\\\"><statement name=\\\"HANDLER\\\"><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\"J-uZ?]ZG`PX{tM,~.}i7\\\">tiempo_avance</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">2000</field></shadow></value><next><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\"]d{BFrHp56ly(cd=#)DU\\\">tiempo_giro</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">600</field></shadow></value></block></next></block></statement></block><block type=\\\"device_button_event\\\" x=\\\"388\\\" y=\\\"20\\\"><field name=\\\"NAME\\\">Button.A</field><statement name=\\\"HANDLER\\\"><block type=\\\"controls_repeat_ext\\\"><value name=\\\"TIMES\\\"><shadow type=\\\"math_whole_number\\\"><field name=\\\"NUM\\\">4</field></shadow></value><statement name=\\\"DO\\\"><block type=\\\"function_call\\\"><mutation name=\\\"avanzar\\\" functionid=\\\"j7gb0;3gz;CAZRkN1]2V\\\"></mutation><next><block type=\\\"function_call\\\"><mutation name=\\\"girar_derecha\\\" functionid=\\\"2uwcdin|e6PaC*-*zbM,\\\"></mutation></block></next></block></statement><next><block type=\\\"stopAllMotor\\\"></block></next></block></statement></block><block type=\\\"function_definition\\\" x=\\\"741\\\" y=\\\"20\\\"><mutation name=\\\"avanzar\\\" functionid=\\\"j7gb0;3gz;CAZRkN1]2V\\\"></mutation><field name=\\\"function_name\\\">avanzar</field><statement name=\\\"STACK\\\"><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\\\">50</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\\\">-50</field></shadow></value><next><block type=\\\"device_pause\\\"><value name=\\\"pause\\\"><shadow type=\\\"timePicker\\\"><field name=\\\"ms\\\">500</field></shadow><block type=\\\"variables_get\\\"><field name=\\\"VAR\\\" id=\\\"J-uZ?]ZG`PX{tM,~.}i7\\\">tiempo_avance</field></block></value></block></next></block></next></block></statement></block><block type=\\\"function_definition\\\" x=\\\"20\\\" y=\\\"369\\\"><mutation name=\\\"girar_derecha\\\" functionid=\\\"2uwcdin|e6PaC*-*zbM,\\\"></mutation><field name=\\\"function_name\\\">girar_derecha</field><statement name=\\\"STACK\\\"><block type=\\\"setMotorSpeed\\\"><field name=\\\"motor\\\">neZha.MotorList.M1</field><comment pinned=\\\"false\\\" h=\\\"80\\\" w=\\\"160\\\">Si gira hacia el otro lado, cambia los dos signos</comment><value name=\\\"speed\\\"><shadow type=\\\"math_number_minmax\\\"><mutation min=\\\"-100\\\" max=\\\"100\\\" label=\\\"Speed\\\" precision=\\\"0\\\"></mutation><field name=\\\"SLIDER\\\">50</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\\\">50</field></shadow></value><next><block type=\\\"device_pause\\\"><value name=\\\"pause\\\"><shadow type=\\\"timePicker\\\"><field name=\\\"ms\\\">500</field></shadow><block type=\\\"variables_get\\\"><field name=\\\"VAR\\\" id=\\\"]d{BFrHp56ly(cd=#)DU\\\">tiempo_giro</field></block></value></block></next></block></next></block></statement></block></xml>\", \"main.ts\": \"let tiempo_avance = 2000\\nlet tiempo_giro = 600\\nfunction avanzar () {\\n    neZha.setMotorSpeed(neZha.MotorList.M1, 50)\\n    neZha.setMotorSpeed(neZha.MotorList.M2, -50)\\n    basic.pause(tiempo_avance)\\n}\\nfunction girar_derecha () {\\n    // Si gira hacia el otro lado, cambia los dos signos\\n    neZha.setMotorSpeed(neZha.MotorList.M1, 50)\\n    neZha.setMotorSpeed(neZha.MotorList.M2, 50)\\n    basic.pause(tiempo_giro)\\n}\\ninput.onButtonPressed(Button.A, function () {\\n    for (let index = 0; index < 4; index++) {\\n        avanzar()\\n        girar_derecha()\\n    }\\n    neZha.stopAllMotor()\\n})\\n\", \"README.md\": \"# 6\u00ba S6 \u00b7 El cuadrado con funciones\\n\\nGu\u00eda did\u00e1ctica C\u00f3digo Escuela 4.0 \u00b7 6\u00ba S6. Programa de referencia para el docente.\\n\"}"
}