{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Mklittlefs: Build Bin Image",
            "type": "shell",
            "command": "C:/Users/choui/AppData/Local/Arduino15/packages/esp32/tools/mklittlefs/4.0.2-db0513a-cn/mklittlefs.exe",
            "args": [
                "-c", "${workspaceFolder}/data",
                "-p", "256",
                "-b", "4096",
                "-s", "0x160000",
                "${workspaceFolder}/build/littlefs.bin"
            ] 
        },
        {
            "label": "Littlefs: Upload FS Image",
            "type": "shell",
            "command": "C:/Users/choui/AppData/Local/Arduino15/packages/esp32/tools/esptool_py/5.2.0-cn/esptool.exe",
            "args": [
                "--chip", "esp32",
                "--port", "COM4",
                "--baud", "921600",
                "write_flash", "0x290000",
                "${workspaceFolder}/build/littlefs.bin"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }, 
            "presentation": {
                "echo": true,
                "reveal": "always",
                "focus": true,
                "panel": "shared",
                "showReuseMessage": false,
                "clear": true
            },
            "dependsOn": "Mklittlefs: Build Bin Image",
            "problemMatcher": []
        }
    ]
}