-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_history
More file actions
1 lines (1 loc) · 14.7 KB
/
_history
File metadata and controls
1 lines (1 loc) · 14.7 KB
1
{"entries":[{"timestamp":1767790676575,"editorVersion":"8.0.18","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":5837,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</variable><variable id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</variable></variables><block type=\"device_button_event\" x=\"542\" y=\"-847\"><field name=\"NAME\">Button.B</field><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"device_heading\"></block></value><next><block type=\"controls_if\"><mutation elseif=\"3\" else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">45</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">N</field></shadow></value></block></statement><value name=\"IF1\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">135</field></shadow></value></block></value><statement name=\"DO1\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">E</field></shadow></value></block></statement><value name=\"IF2\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">225</field></shadow></value></block></value><statement name=\"DO2\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">S</field></shadow></value></block></statement><value name=\"IF3\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">315</field></shadow></value></block></value><statement name=\"DO3\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">W</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">N</field></shadow></value></block></statement></block></next></block></statement></block><block type=\"device_button_event\" x=\"157\" y=\"-816\"><field name=\"NAME\">Button.A</field><statement name=\"HANDLER\"><block type=\"device_show_number\"><value name=\"number\"><block type=\"device_temperature\"></block></value></block></statement></block><block type=\"device_button_event\" x=\"123\" y=\"-673\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"device_get_light_level\"></block></value><next><block type=\"device_plot_bar_graph\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" _expanded=\"0\" _input_init=\"true\"></mutation><value name=\"value\"><block type=\"variables_get\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value><value name=\"high\"><shadow type=\"math_number\"><field name=\"NUM\">255</field></shadow></value><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.A</field></block></value><statement name=\"DO0\"><block type=\"device_show_number\"><value name=\"number\"><block type=\"variables_get\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value></block></statement></block></next></block></next></block></statement></block><block type=\"device_button_event\" disabled-reasons=\"pxt_automatic_disabled\" x=\"-410\" y=\"-68\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"variables_set\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"device_get_light_level\" disabled-reasons=\"pxt_automatic_disabled\"></block></value><next><block type=\"device_plot_bar_graph\" disabled-reasons=\"pxt_automatic_disabled\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" _expanded=\"0\" _input_init=\"true\"></mutation><value name=\"value\"><block type=\"variables_get\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value><value name=\"high\"><shadow type=\"math_number\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NUM\">255</field></shadow></value><next><block type=\"controls_if\" disabled-reasons=\"pxt_automatic_disabled\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NAME\">Button.A</field></block></value><statement name=\"DO0\"><block type=\"device_show_number\" disabled-reasons=\"pxt_automatic_disabled\"><value name=\"number\"><block type=\"variables_get\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value></block></statement></block></next></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":263,"length1":44,"diffs":[[1,""]]}]},{"type":"added","filename":"test.ts","value":"// tests go here; this will not be compiled when this package is used as an extension.\n"}]}],"snapshots":[{"timestamp":1767790676574,"editorVersion":"8.0.18","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</variable><variable id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</variable></variables><block type=\"device_button_event\" x=\"542\" y=\"-847\"><field name=\"NAME\">Button.B</field><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"device_heading\"></block></value><next><block type=\"controls_if\"><mutation elseif=\"3\" else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">45</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">N</field></shadow></value></block></statement><value name=\"IF1\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">135</field></shadow></value></block></value><statement name=\"DO1\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">E</field></shadow></value></block></statement><value name=\"IF2\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">225</field></shadow></value></block></value><statement name=\"DO2\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">S</field></shadow></value></block></statement><value name=\"IF3\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LT</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"sZ7Qp;T?)/0D14i1q*=-\">degrees</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">315</field></shadow></value></block></value><statement name=\"DO3\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">W</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">N</field></shadow></value></block></statement></block></next></block></statement></block><block type=\"device_button_event\" x=\"157\" y=\"-816\"><field name=\"NAME\">Button.A</field><statement name=\"HANDLER\"><block type=\"device_show_number\"><value name=\"number\"><block type=\"device_temperature\"></block></value></block></statement></block><block type=\"device_button_event\" x=\"123\" y=\"-673\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"device_get_light_level\"></block></value><next><block type=\"device_plot_bar_graph\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" _expanded=\"0\" _input_init=\"true\"></mutation><value name=\"value\"><block type=\"variables_get\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value><value name=\"high\"><shadow type=\"math_number\"><field name=\"NUM\">255</field></shadow></value><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.A</field></block></value><statement name=\"DO0\"><block type=\"device_show_number\"><value name=\"number\"><block type=\"variables_get\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value></block></statement></block></next></block></next></block></statement></block><block type=\"device_button_event\" disabled-reasons=\"pxt_automatic_disabled\" x=\"-410\" y=\"-68\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"variables_set\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"device_get_light_level\" disabled-reasons=\"pxt_automatic_disabled\"></block></value><next><block type=\"device_plot_bar_graph\" disabled-reasons=\"pxt_automatic_disabled\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" _expanded=\"0\" _input_init=\"true\"></mutation><value name=\"value\"><block type=\"variables_get\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value><value name=\"high\"><shadow type=\"math_number\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NUM\">255</field></shadow></value><next><block type=\"controls_if\" disabled-reasons=\"pxt_automatic_disabled\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NAME\">Button.A</field></block></value><statement name=\"DO0\"><block type=\"device_show_number\" disabled-reasons=\"pxt_automatic_disabled\"><value name=\"number\"><block type=\"variables_get\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"VAR\" id=\"FM*2NhK,nor!Cs(Vv_f(\">reading</field></block></value></block></statement></block></next></block></next></block></statement></block></xml>","main.ts":"","README.md":"","main.py":"reading = 0\ndegrees = 0\n\ndef on_button_pressed_a():\n basic.show_number(input.temperature())\ninput.on_button_pressed(Button.A, on_button_pressed_a)\n\ndef on_button_pressed_ab():\n global reading\n reading = input.light_level()\n led.plot_bar_graph(reading, 255)\n if input.button_is_pressed(Button.A):\n basic.show_number(reading)\ninput.on_button_pressed(Button.AB, on_button_pressed_ab)\n\ndef on_button_pressed_b():\n global degrees\n degrees = input.compass_heading()\n if degrees < 45:\n basic.show_string(\"N\")\n elif degrees < 135:\n basic.show_string(\"E\")\n elif degrees < 225:\n basic.show_string(\"S\")\n elif degrees < 315:\n basic.show_string(\"W\")\n else:\n basic.show_string(\"N\")\ninput.on_button_pressed(Button.B, on_button_pressed_b)\n","pxt.json":"{\n \"name\": \"Software Development \",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"main.py\"\n ],\n \"targetVersions\": {\n \"branch\": \"stable8.0\",\n \"tag\": \"v8.0.18\",\n \"commits\": \"https://github.com/microsoft/pxt-microbit/commits/ec67ee1ad9a7c41ee95376e7577127b32d4d233a\",\n \"target\": \"8.0.18\",\n \"pxt\": \"12.0.16\"\n },\n \"preferredEditor\": \"blocksprj\"\n}\n"}}],"shares":[],"lastSaveTime":1767790822381}