javascript codes for JSON

Micropython codes:

{start and end with a curly bracket}

"//" comment

"version": "2.0.0", - format version

This code below shows the definitions for the tasks code. It defines the variables within the tasks.json code.

"tasks": [

{

"variable": "what you will see in the vscode tasks -> run tasks menu"

"type": "shell", - this says it is a shell comand, which runs from the terminal

"command": "mpremote connect auto fs cp main.py : + reset", - this is the actual command program - "mpremote" - MicroPython's official tool for controlling boards - "connect auto" - Auto-detect and connect to your RP2040 - "fs cp main.py :" - Filesystem copy main.py to the board's root (: means root directory) - "+ reset" - Chain another command: soft-reset the board to run the new code

"group": "build", - catacorizes this as a "build" task "presentation": { - what is shown - "reveal": "always", - Always show the terminal output - "panel": "shared" - Use shared terminal panel

} - end the presentation function with a curly bracket
} - end the tasks function with a curly bracket ] - end the ordered array. This is needed even though there are no ordered tasks in this program because vscode requires "tasks" to be in an array form. This allows for tasks to be added. {curly brackets containe labeled data (variable definitions) and can be read out of order} [square brackets contain an array of tasks (do task 1, then task 2, then task 3...)]