-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpymakr.schema.json
120 lines (120 loc) · 4.5 KB
/
pymakr.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"dist_dir": {
"description": "Folder to synchronize do device. Defaults to \".\"",
"type": "string",
"default": "."
},
"name": {
"description": "Name of the project. If empty, the project will be named by it's folder name.",
"type": "string",
"default": "My Pyboard Project"
},
"ctrl_c_on_connect": {
"description": "If true, executes a ctrl-c on connect to stop running programs",
"type": "boolean"
},
"py_ignore": {
"description": "Comma separated list of files and folders to ignore when uploading (no wildcard or regular expressions supported",
"type": "array"
},
"safe_boot_on_upload": {
"description": "Safe-boot before upload, Only works with firmware v1.16.0.b1 and up. Safe boots the board before uploading to prevent running out of memory while uploading. Especially useful on older boards with less memory, but adds about 2 seconds to the upload procedure'",
"type": "boolean"
},
"reboot_after_upload": {
"description": "Reboots your pycom board after any upload or download action",
"type": "boolean"
},
"username": {
"description": "Board username, only for telnet",
"type": "string",
"default": "micro",
"deprecated": true,
"deprecationMessage": "Deprecated. Board credentials are stored in a persistent VSCode session."
},
"password": {
"description": "Board password, only for telnet",
"type": "string",
"default": "python",
"deprecated": true,
"deprecationMessage": "Deprecated. Board credentials are stored in a persistent VSCode session."
},
"address": {
"description": "IP address or comport for your device",
"type": "string",
"deprecated": true,
"deprecationMessage": "Deprecated. Board address is stored in a persistent VSCode session."
},
"sync_folder": {
"description": "Folder to synchronize. Empty to sync projects main folder",
"type": "string",
"deprecated": true,
"deprecationMessage": "Deprecated. Please use the explorer context menu for upload/download of specific folders and files."
},
"open_on_start": {
"description": "Weather to open the terminal and connect to the board when starting Code",
"type": "boolean",
"deprecated": true,
"deprecationMessage": "Deprecated. VSCode will automatically attempt to restore any terminals left open in your last session."
},
"fast_upload": {
"description": "Fast upload (experimental), Uses bigger batches and compresses larger (>4kb) files to make uploading faster. Only works on newer devices with 4mb of ram and firmware version >=1.19.x",
"type": "boolean",
"deprecated": true,
"deprecationMessage": "Deprecated. This may or may not be reimplemented."
},
"dev": {
"description": "Options related to development mode in Pymakr",
"type": "object",
"properties": {
"simulateDeepSleep": {
"description": "Replaces deepsleep with\r\ntime.sleep(x)\nmachine.reset()",
"type": "boolean",
"default": false
},
"uploadOnDevStart": {
"description": "Uploads project to device when dev mode is started.",
"type": "string",
"default": "outOfSync",
"anyOf": [
{
"const": "always",
"description": "Will upload the project to all connected devices."
},
{
"const": "never",
"description": "Will not upload project to any devices."
},
{
"const": "outOfSync",
"description": "Will upload the project to any connected device that is detected to be out of sync."
}
]
},
"onUpdate": {
"description": "Action to run after file changes have been propagates",
"type": "string",
"default": "restartScript",
"anyOf": [
{
"const": "restartScript",
"description": "Restarts boot.py (if changed) and main.py"
},
{
"const": "softRestartDevice",
"description": "Sends ctrl + d to device"
},
{
"const": "hardRestartDevice",
"description": "Runs machine.reset()"
}
]
}
}
}
}
}