-
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) · 37.3 KB
/
_history
File metadata and controls
1 lines (1 loc) · 37.3 KB
1
{"entries":[{"timestamp":1753179316643,"editorVersion":"8.0.8","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":84,"diffs":[[1,"<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n <block type=\"pxt-on-start\"></block>\n <block type=\"device_forever\"></block>\n</xml>"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":207,"length1":40,"diffs":[[1," \"README.md\"\n"]]},{"start1":234,"length1":31,"diffs":[[1," \"additionalFilePaths\": []\n"]]}]},{"type":"added","filename":"input.ts","value":"namespace input{\n // %block\n export function stringinput(tip = \"\"){\n let ing = true;\n funforver\n basic.forever()\n }\n\n}\n"}]},{"timestamp":1753179633491,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":315,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables></variables></xml>"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":254,"length1":35,"diffs":[[1," \"preferredEditor\": \"tsprj\"\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":31,"length1":209,"diffs":[[1," export function stringinput(tip = \"\"){\n let ing = true;\n funforver\n basic.forever()\n"]]}]}]},{"timestamp":1753180220195,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":794,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables></variables><block type=\"stringFromCharCode\" disabled-reasons=\"pxt_automatic_disabled\" x=\"192\" y=\"351\"><value name=\"code\"><shadow type=\"math_number\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NUM\">0</field></shadow></value></block></xml>"]]}]},{"type":"edited","filename":"main.ts","patch":[{"start1":0,"length1":77,"diffs":[[1,"\n"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":254,"length1":31,"diffs":[[1," \"preferredEditor\": \"blocksprj\"\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":81,"length1":569,"diffs":[[1," let ing = true, ascii = ;\n function forever(){\n if (ing){\n\n"]]},{"start1":180,"length1":14,"diffs":[[1,""]]},{"start1":190,"length1":0,"diffs":[[1," basic.forever(forever)\n"]]}]}]},{"timestamp":1753180819519,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":423,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"device_show_number\"><value name=\"number\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"string_charcode_at\"><value name=\"this\"><shadow type=\"text\"><field name=\"TEXT\">a</field></shadow></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"stringFromCharCode\"><value name=\"code\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"main.ts","patch":[{"start1":0,"length1":40,"diffs":[[1,"basic.showNumber(\"a\".charCodeAt(0))\nbasic.showString(String.fromCharCode(0))\n"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":254,"length1":35,"diffs":[[1," \"preferredEditor\": \"tsprj\"\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":17,"length1":14,"diffs":[[1," // %block\n"]]},{"start1":127,"length1":30,"diffs":[[1,""]]},{"start1":384,"length1":31,"diffs":[[1,""]]},{"start1":496,"length1":275,"diffs":[[1," if (code <)\n led.stopAnimation()\n basic.showString(String.fromCharCode(code))\n"]]},{"start1":650,"length1":17,"diffs":[[1,""]]},{"start1":664,"length1":240,"diffs":[[1,""]]},{"start1":688,"length1":21,"diffs":[[1," return \"\";\n"]]},{"start1":713,"length1":8,"diffs":[[1,""]]},{"start1":714,"length1":1,"diffs":[[1,"}\n"]]}]}]},{"timestamp":1753181412339,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"pxt.json","patch":[{"start1":254,"length1":31,"diffs":[[1," \"preferredEditor\": \"blocksprj\"\n"]]}]}]},{"timestamp":1753181466466,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":1145,"length1":9,"diffs":[[1,""]]}]}]},{"timestamp":1753182463671,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":1145,"length1":13,"diffs":[[1," \n"]]}]}]},{"timestamp":1753182464870,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":127,"length1":293,"diffs":[[1,""]]},{"start1":332,"length1":1,"diffs":[[1," basic.showString(String.fromCharCode(code))\n"]]},{"start1":414,"length1":33,"diffs":[[1," \n"]]},{"start1":638,"length1":1,"diffs":[[1," basic.showString(String.fromCharCode(code))\n"]]},{"start1":850,"length1":33,"diffs":[[1,""]]},{"start1":931,"length1":33,"diffs":[[1," if (code < 126){\n"]]},{"start1":1018,"length1":41,"diffs":[[1,""]]},{"start1":1104,"length1":33,"diffs":[[1," \n"]]},{"start1":1145,"length1":20,"diffs":[[1," ing \n"]]}]}]},{"timestamp":1753182905438,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":759,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow></value></block></value></block></statement></block></xml>"]]}]},{"type":"edited","filename":"main.ts","patch":[{"start1":0,"length1":56,"diffs":[[1,"basic.showString(input.stringinput(\"\"))\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":31,"length1":57,"diffs":[[1," export function stringinput(tip = \"\"):string{\n"]]},{"start1":127,"length1":30,"diffs":[[1,"\n"]]},{"start1":644,"length1":33,"diffs":[[1," basic.pause(100)\n"]]},{"start1":907,"length1":0,"diffs":[[1," else {\n"]]},{"start1":935,"length1":0,"diffs":[[1," basic.showIcon(IconNames.Yes)\n }\n"]]},{"start1":1029,"length1":33,"diffs":[[1," basic.pause(100)\n"]]}]}]},{"timestamp":1753183467372,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":1001,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"main.ts","patch":[{"start1":36,"length1":36,"diffs":[[1,"basic.showString(i)\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":134,"length1":35,"diffs":[[1," basic.showString(tip)\n"]]},{"start1":509,"length1":346,"diffs":[[1,""]]},{"start1":1026,"length1":0,"diffs":[[1," if(input.buttonIsPressed(Button.AB)){\n if (code < 127){\n _str += String.fromCharCode(code)\n"]]},{"start1":1164,"length1":0,"diffs":[[1," led.stopAnimation()\n }\n else {\n break;\n }\n basic.pause(100)\n }\n"]]},{"start1":1367,"length1":29,"diffs":[[1,""]]}]}]},{"timestamp":1753184118667,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"pxt.json","patch":[{"start1":254,"length1":35,"diffs":[[1," \"preferredEditor\": \"tsprj\"\n"]]}]}]},{"timestamp":1753184120202,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":1180,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><shadow type=\"text\"><field name=\"TEXT\">Your input:</field></shadow></value><value name=\"ADD1\"><shadow type=\"text\"><field name=\"TEXT\">世界</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></value></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":254,"length1":31,"diffs":[[1," \"preferredEditor\": \"blocksprj\"\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":514,"length1":121,"diffs":[[1," if (input.buttonIsPressed(Button.AB)) {\n \n if (code < 127) {\n _str = _str + String.fromCharCode(code)\n"]]},{"start1":678,"length1":0,"diffs":[[1," led.stopAnimation()\n"]]},{"start1":736,"length1":421,"diffs":[[1," else {\n break;\n"]]},{"start1":804,"length1":0,"diffs":[[1," \n continue\n }\n if (input.buttonIsPressed(Button.A)){\n"]]},{"start1":1128,"length1":516,"diffs":[[1,""]]}]}]},{"timestamp":1753184634706,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":450,"length1":1,"diffs":[[1,""]]},{"start1":491,"length1":53,"diffs":[[1," while (true) {\n"]]},{"start1":527,"length1":11,"diffs":[[1," if (input.buttonIsPressed(Button.A)){\n while (input.buttonIsPressed(Button.A)) {\n"]]},{"start1":636,"length1":0,"diffs":[[1," }\n if (input.buttonIsPressed(Button.AB)) {\n"]]},{"start1":711,"length1":140,"diffs":[[1," if (code < 127) {\n _str = _str + String.fromCharCode(code)\n"]]},{"start1":814,"length1":36,"diffs":[[1," led.stopAnimation()\n }\n else {\n break;\n }\n while (input.buttonIsPressed(Button.AB)) {\n\n }\n continue\n }\n if (code > 32){\n code -= 1\n led.stopAnimation()\n\n }\n basic.pause(200)\n"]]},{"start1":1261,"length1":47,"diffs":[[1," if (input.buttonIsPressed(Button.B)){\n while (input.buttonIsPressed(Button.B)) {\n"]]},{"start1":1370,"length1":36,"diffs":[[1," }\n if (input.buttonIsPressed(Button.AB)) {\n\n if (code < 127) {\n _str = _str + String.fromCharCode(code)\n\n led.stopAnimation()\n }\n else {\n break;\n }\n while (input.buttonIsPressed(Button.AB)) {\n\n }\n continue\n }\n if(code < 127){\n code += 1\n if (code < 126){\n led.stopAnimation()\n\n }\n\n }\n basic.pause(200)\n"]]},{"start1":2076,"length1":17,"diffs":[[1,""]]},{"start1":2077,"length1":2,"diffs":[[1," }\n ing = false\n\n basic.clearScreen()\n return _str;\n }\n"]]},{"start1":2169,"length1":0,"diffs":[[1,"}\n"]]},{"start1":2173,"length1":1,"diffs":[[1,""]]}]}]},{"timestamp":1753185151258,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":1001,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"34\" y=\"63\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_negate\"></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><shadow type=\"text\"><field name=\"TEXT\">Your input:</field></shadow></value><value name=\"ADD1\"><shadow type=\"text\"><field name=\"TEXT\">世界</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></value></block></next></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":228,"length1":38,"diffs":[[1," \"input.ts\"\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":169,"length1":0,"diffs":[[1," basic.forever(function() {\n if (ing){\n if (code <= 126) {\n basic.showString(String.fromCharCode(code))\n"]]},{"start1":326,"length1":142,"diffs":[[1," }\n else {\n\n basic.showIcon(IconNames.Yes)\n }\n"]]},{"start1":450,"length1":11,"diffs":[[1,""]]},{"start1":451,"length1":53,"diffs":[[1," })\n basic.showString(\"a\")\n input.onButtonPressed(Button.A, function() {\n"]]},{"start1":558,"length1":105,"diffs":[[1,""]]},{"start1":570,"length1":0,"diffs":[[1,"\n"]]},{"start1":888,"length1":355,"diffs":[[1,""]]},{"start1":894,"length1":0,"diffs":[[1,"\n"]]}]},{"type":"added","filename":"main.py","value":"\ni = input.stringinput(\"input:\")\nbasic.show_string(\"Your input:\" + i)"}]},{"timestamp":1753185732381,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":404,"length1":29,"diffs":[[1," if (code < 32) {\n"]]}]}]},{"timestamp":1753186836500,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":404,"length1":28,"diffs":[[1," if (code > 32) {\n"]]}]}]},{"timestamp":1753186838388,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":404,"length1":30,"diffs":[[1," if (code 32) {\n"]]},{"start1":711,"length1":33,"diffs":[[1," else {\n"]]},{"start1":826,"length1":89,"diffs":[[1,""]]},{"start1":860,"length1":1,"diffs":[[1,""]]},{"start1":1001,"length1":38,"diffs":[[1," else {\n"]]},{"start1":1093,"length1":89,"diffs":[[1,""]]}]}]},{"timestamp":1753187786488,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":1408,"length1":5,"diffs":[[1,""]]}]}]},{"timestamp":1753187853373,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":1408,"length1":409,"diffs":[[1," \n"]]}]}]},{"timestamp":1753188453117,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"input.ts","patch":[{"start1":1422,"length1":173,"diffs":[[1," export function int_input(tip:string = \"\", big:Number = -1, small:Number = 0):Number{\n let _small, _big, ing = true, _num;\n"]]},{"start1":1692,"length1":24,"diffs":[[1," _big = _big;\n"]]},{"start1":1727,"length1":36,"diffs":[[1,""]]},{"start1":1780,"length1":109,"diffs":[[1," if(num)\n"]]},{"start1":1811,"length1":455,"diffs":[[1,""]]}]}]},{"timestamp":1753189049840,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":132,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><shadow type=\"text\"><field name=\"TEXT\">Your input:</field></shadow></value><value name=\"ADD1\"><shadow type=\"text\"><field name=\"TEXT\">世界</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></value></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"main.ts","patch":[{"start1":0,"length1":1,"diffs":[[1,"let i = input.stringinput(\"input:\")\nbasic.showString(\"Your input:\" + i)\n"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":273,"length1":35,"diffs":[[1," \"preferredEditor\": \"tsprj\"\n"]]}]},{"type":"edited","filename":"input.ts","patch":[{"start1":1422,"length1":179,"diffs":[[1," export function int_input(tip:string = \"\", big:Number = -1, small:Number = 0, _default:Number = 0):Number{\n let _small:Number, _big:Number, ing = true, _num = 0;\n"]]},{"start1":2388,"length1":23,"diffs":[[1," \n"]]},{"start1":2429,"length1":21,"diffs":[[1,""]]},{"start1":2437,"length1":0,"diffs":[[1," \n\n\n\n"]]}]}]},{"timestamp":1753191797099,"editorVersion":"8.0.11","changes":[{"type":"edited","filename":"pxt.json","patch":[{"start1":273,"length1":44,"diffs":[[1,""]]}]},{"type":"added","filename":"test.ts","value":"// 在此处测试;当此软件包作为插件使用时,将不会编译此软件包。\n"}]}],"snapshots":[{"timestamp":1753179316642,"editorVersion":"8.0.8","text":{"main.blocks":"<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n <block type=\"pxt-on-start\"></block>\n <block type=\"device_forever\"></block>\n</xml>","main.ts":"\n","README.md":"","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\"\n ],\n \"additionalFilePaths\": []\n}\n"}},{"timestamp":1753181132971,"editorVersion":"8.0.11","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"device_show_number\"><value name=\"number\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"string_charcode_at\"><value name=\"this\"><shadow type=\"text\"><field name=\"TEXT\">a</field></shadow></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"stringFromCharCode\"><value name=\"code\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value></block></next></block></statement></block></xml>","main.ts":"basic.showNumber(\"a\".charCodeAt(0))\nbasic.showString(String.fromCharCode(0))\n","README.md":"","input.ts":"namespace input{\n // %block\n export function stringinput(tip = \"\"):string{\n let ing = true, code = 97, _str = \"\";\n while (true) {\n if (input.buttonIsPressed(Button.A)){\n if (code > 32){\n code -= 1\n led.stopAnimation()\n basic.showString(String.fromCharCode(code))\n }\n basic.pause(100)\n }\n if (input.buttonIsPressed(Button.B)){\n if(code < 127){\n code += 1\n if (code < 126){\n led.stopAnimation()\n basic.showString(String.fromCharCode(code))\n }\n else {\n\n basic.showIcon(IconNames.Yes)\n }\n }\n basic.pause(100)\n }\n if(input.buttonIsPressed(Button.AB)){\n if (code < 126){\n \n }\n }\n }\n return _str;\n }\n \n}\n\n\n","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"input.ts\"\n ],\n \"preferredEditor\": \"tsprj\"\n}\n"}},{"timestamp":1753183109095,"editorVersion":"8.0.11","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow></value></block></value></block></statement></block></xml>","main.ts":"basic.showString(input.stringinput(\"\"))\n","README.md":"","input.ts":"namespace input{\n //% block\n export function stringinput(tip = \"\"):string{\n let ing = true, code = 97, _str = \"\";\n\n basic.forever(function() {\n if (ing){\n if (code <= 126) {\n basic.showString(String.fromCharCode(code))\n\n }\n else {\n\n basic.showIcon(IconNames.Yes)\n }\n }\n })\n basic.showString(\"a\")\n while (true) {\n if (input.buttonIsPressed(Button.A)){\n if (code > 32){\n code -= 1\n led.stopAnimation()\n\n }\n basic.pause(100)\n }\n if (input.buttonIsPressed(Button.B)){\n if(code < 127){\n code += 1\n if (code < 126){\n led.stopAnimation()\n\n }\n else {\n\n basic.showIcon(IconNames.Yes)\n }\n }\n basic.pause(100)\n \n }\n if(input.buttonIsPressed(Button.AB)){\n if (code < 127){\n _str += String.fromCharCode(code)\n\n led.stopAnimation()\n }\n else {\n break;\n }\n basic.pause(100)\n }\n }\n ing = false\n return _str;\n }\n \n}\n\n\n","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"input.ts\"\n ],\n \"preferredEditor\": \"tsprj\"\n}\n"}},{"timestamp":1753184910891,"editorVersion":"8.0.11","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"34\" y=\"63\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_negate\"></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><shadow type=\"text\"><field name=\"TEXT\">Your input:</field></shadow></value><value name=\"ADD1\"><shadow type=\"text\"><field name=\"TEXT\">世界</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></value></block></next></block></next></block></statement></block></xml>","main.ts":"let i = input.stringinput(\"input:\")\nbasic.showString(\"Your input:\" + i)\n","README.md":"","input.ts":"namespace input{\n //% block\n export function stringinput(tip:string = \"\"):string{\n let ing = true, code = 97, _str = \"\";\n basic.showString(tip, 100)\n basic.forever(function() {\n if (ing){\n if (code <= 126) {\n basic.showString(String.fromCharCode(code))\n\n }\n else {\n\n basic.showIcon(IconNames.Yes)\n }\n }\n })\n basic.showString(\"a\")\n input.buttonIsPressed(Button.A){\n if (code > 32) {\n code -= 1\n led.stopAnimation()\n\n }\n }\n\n\n input.onButtonPressed(Button.AB, function() {\n if (code < 127) {\n _str = _str + String.fromCharCode(code)\n\n led.stopAnimation()\n }\n else {\n ing = false\n\n basic.clearScreen()\n return _str;\n }\n })\n\n\n\n\n basic.pause(200)\n \n }\n\n }\n\n }\n \n}\n\n\n","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"input.ts\"\n ],\n \"preferredEditor\": \"tsprj\"\n}\n"}},{"timestamp":1753186836500,"editorVersion":"8.0.11","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><shadow type=\"text\"><field name=\"TEXT\">Your input:</field></shadow></value><value name=\"ADD1\"><shadow type=\"text\"><field name=\"TEXT\">世界</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></value></block></next></block></statement></block></xml>","main.ts":"let i = input.stringinput(\"input:\")\nbasic.showString(\"Your input:\" + i)\n","README.md":"","input.ts":"namespace input{\n //% block\n export function stringinput(tip:string = \"\"):string{\n let ing = true, code = 97, _str = \"\";\n basic.showString(tip, 100)\n\n input.onButtonPressed(Button.A, function() {\n if(code > 32){\n code -= 1\n led.stopAnimation()\n }\n })\n\n input.onButtonPressed(Button.B, function() {\n \n if (code < 32) {\n code += 1\n led.stopAnimation()\n }\n })\n\n input.onButtonPressed(Button.AB, function() {\n if (code < 127) {\n _str = _str + String.fromCharCode(code)\n\n led.stopAnimation()\n }\n else {\n ing = false\n\n basic.clearScreen()\n \n }\n })\n while (true) {\n if (ing) {\n if (code <= 126) {\n basic.showString(String.fromCharCode(code))\n\n }\n else {\n\n basic.showIcon(IconNames.Yes)\n }\n }\n else{\n break\n }\n }\n return _str;\n }\n}\n \n\n\n\n","main.py":"\ni = input.stringinput(\"input:\")\nbasic.show_string(\"Your input:\" + i)","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"input.ts\",\n \"main.py\"\n ],\n \"preferredEditor\": \"tsprj\"\n}\n"}},{"timestamp":1753188698719,"editorVersion":"8.0.11","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"variables_set\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"input_stringinput\"><value name=\"tip\"><shadow type=\"text\"><field name=\"TEXT\">input:</field></shadow></value></block></value><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Hello!</field></shadow><block type=\"text_join\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><shadow type=\"text\"><field name=\"TEXT\">Your input:</field></shadow></value><value name=\"ADD1\"><shadow type=\"text\"><field name=\"TEXT\">世界</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"V$7GA#vL+Q`S^6CSG#`-\">i</field></block></value></block></value></block></next></block></statement></block></xml>","main.ts":"let i = input.stringinput(\"input:\")\nbasic.showString(\"Your input:\" + i)\n","README.md":"","input.ts":"namespace input{\n //% block\n export function stringinput(tip:string = \"\"):string{\n let ing = true, code = 97, _str = \"\";\n basic.showString(tip, 100)\n\n input.onButtonPressed(Button.A, function() {\n if(code > 32){\n code -= 1\n led.stopAnimation()\n }\n })\n\n input.onButtonPressed(Button.B, function() {\n \n if (code < 128) {\n code += 1\n led.stopAnimation()\n }\n })\n\n input.onButtonPressed(Button.AB, function() {\n if (code < 127) {\n _str = _str + String.fromCharCode(code)\n\n led.stopAnimation()\n }\n else if(code < 128){\n ing = false\n\n basic.clearScreen()\n \n }\n else{\n _str = _str.substr(0, (_str.length - 1))\n }\n })\n while (true) {\n\n if (ing) {\n if (code <= 126) {\n basic.showString(String.fromCharCode(code))\n\n }\n else if(code <= 127){\n\n basic.showIcon(IconNames.Yes)\n }\n else{\n basic.showIcon(IconNames.No)\n }\n }\n else{\n break\n }\n }\n return _str;\n }\n //% block\n export function int_input(tip:string = \"\", big:Number = -1, small:Number = 0, _default:Number = 0):Number{\n let _small:Number, _big:Number, ing = true, _num = 0;\n if(big < small){\n _small = -Infinity\n _big = Infinity\n }\n else{\n _small = small;\n _big = big;\n }\n\n basic.showString(tip, )\n input.onButtonPressed(Button.A, function() {\n if(_num > _small){\n _num += 1;\n\n led.stopAnimation()\n }\n })\n }\n}\n \n\n\n\n","main.py":"\ni = input.stringinput(\"input:\")\nbasic.show_string(\"Your input:\" + i)","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"input.ts\",\n \"main.py\"\n ],\n \"preferredEditor\": \"tsprj\"\n}\n"}},{"timestamp":1753191797099,"editorVersion":"8.0.11","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"V$7GA#vL+Q`S^6CSG#`-\">i</variable></variables></xml>","main.ts":"","README.md":"","input.ts":"namespace input{\n //% block\n export function stringinput(tip:string = \"\"):string{\n let ing = true, code = 97, _str = \"\";\n basic.showString(tip, 100)\n\n input.onButtonPressed(Button.A, function() {\n if(code > 32){\n code -= 1\n led.stopAnimation()\n }\n })\n\n input.onButtonPressed(Button.B, function() {\n \n if (code < 128) {\n code += 1\n led.stopAnimation()\n }\n })\n\n input.onButtonPressed(Button.AB, function() {\n if (code < 127) {\n _str = _str + String.fromCharCode(code)\n\n led.stopAnimation()\n }\n else if(code < 128){\n ing = false\n\n basic.clearScreen()\n \n }\n else{\n _str = _str.substr(0, (_str.length - 1))\n }\n })\n while (true) {\n\n if (ing) {\n if (code <= 126) {\n basic.showString(String.fromCharCode(code))\n\n }\n else if(code <= 127){\n\n basic.showIcon(IconNames.Yes)\n }\n else{\n basic.showIcon(IconNames.No)\n }\n }\n else{\n break\n }\n }\n return _str;\n }\n //% block\n export function int_input(tip:string = \"\", big:number = 0, small:number = 1, _default:number = 0):number{\n let _small:number, _big:number, ing = true, _num = _default;\n if(big < small){\n _small = -Infinity\n _big = Infinity\n }\n else{\n _small = small;\n _big = big;\n }\n\n basic.showString(tip, 100)\n input.onButtonPressed(Button.A, function() {\n if(_num > _small){\n _num -= 1;\n\n led.stopAnimation()\n }\n })\n input.onButtonPressed(Button.B, function () {\n if (_num < _big) {\n _num += 1;\n\n led.stopAnimation()\n }\n })\n input.onButtonPressed(Button.AB, function() {\n ing = false;\n })\n while (true){\n if(ing){\n basic.showNumber(_num)\n }\n else{\n basic.clearScreen()\n break;\n }\n }\n return _num;\n }\n}\n","main.py":"\ni = input.stringinput(\"input:\")\nbasic.show_string(\"Your input:\" + i)","pxt.json":"{\n \"name\": \"datainputer\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"input.ts\",\n \"main.py\"\n ],\n \"preferredEditor\": \"blocksprj\"\n}\n"}}],"shares":[],"lastSaveTime":1753191797114}