{
 "meta": {
  "cloudId": "pxt/microbit",
  "editor": "blocksprj",
  "name": "5\u00ba S5 \u00b7 Alarma del estuche"
 },
 "source": "{\"pxt.json\": \"{\\n    \\\"name\\\": \\\"5\u00ba S5 \u00b7 Alarma del estuche\\\",\\n    \\\"description\\\": \\\"Gu\u00eda C\u00f3digo Escuela 4.0 \u00b7 5\u00ba S5\\\",\\n    \\\"dependencies\\\": {\\n        \\\"core\\\": \\\"*\\\",\\n        \\\"radio\\\": \\\"*\\\",\\n        \\\"microphone\\\": \\\"*\\\"\\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=\\\"nqtL8*c^^xCc}:Zpteww\\\">activada</variable></variables><block type=\\\"device_button_event\\\" x=\\\"20\\\" y=\\\"20\\\"><field name=\\\"NAME\\\">Button.A</field><statement name=\\\"HANDLER\\\"><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\"nqtL8*c^^xCc}:Zpteww\\\">activada</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">1</field></shadow></value><next><block type=\\\"basic_show_icon\\\"><field name=\\\"i\\\">IconNames.Yes</field></block></next></block></statement></block><block type=\\\"device_button_event\\\" x=\\\"341\\\" y=\\\"20\\\"><field name=\\\"NAME\\\">Button.B</field><statement name=\\\"HANDLER\\\"><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\"nqtL8*c^^xCc}:Zpteww\\\">activada</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow></value><next><block type=\\\"device_clear_display\\\"></block></next></block></statement></block><block type=\\\"device_gesture_event\\\" x=\\\"662\\\" y=\\\"20\\\"><field name=\\\"NAME\\\">Gesture.Shake</field><statement name=\\\"HANDLER\\\"><block type=\\\"controls_if\\\"><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=\\\"variables_get\\\"><field name=\\\"VAR\\\" id=\\\"nqtL8*c^^xCc}:Zpteww\\\">activada</field></block></value><value name=\\\"B\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">1</field></shadow></value></block></value><statement name=\\\"DO0\\\"><block type=\\\"basic_show_icon\\\"><field name=\\\"i\\\">IconNames.No</field><next><block type=\\\"music_playable_play\\\"><field name=\\\"playbackMode\\\">music.PlaybackMode.UntilDone</field><value name=\\\"toPlay\\\"><shadow type=\\\"music_string_playable\\\"></shadow><block type=\\\"music_tone_playable\\\"><value name=\\\"note\\\"><shadow type=\\\"device_note\\\"><field name=\\\"name\\\">262</field></shadow></value><value name=\\\"duration\\\"><shadow type=\\\"device_beat\\\"><field name=\\\"fraction\\\">BeatFraction.Whole</field></shadow></value></block></value></block></next></block></statement></block></statement></block></xml>\", \"main.ts\": \"let activada = 0\\ninput.onButtonPressed(Button.A, function () {\\n    activada = 1\\n    basic.showIcon(IconNames.Yes)\\n})\\ninput.onButtonPressed(Button.B, function () {\\n    activada = 0\\n    basic.clearScreen()\\n})\\ninput.onGesture(Gesture.Shake, function () {\\n    if (activada == 1) {\\n        basic.showIcon(IconNames.No)\\n        music.play(music.tonePlayable(262, music.beat(BeatFraction.Whole)), music.PlaybackMode.UntilDone)\\n    }\\n})\\n\", \"README.md\": \"# 5\u00ba S5 \u00b7 Alarma del estuche\\n\\nGu\u00eda did\u00e1ctica C\u00f3digo Escuela 4.0 \u00b7 5\u00ba S5. Programa de referencia para el docente.\\n\"}"
}