{
  "format": "taoyuan-blockly-v1",
  "board": "uno",
  "workspace": {
    "blocks": {
      "languageVersion": 0,
      "blocks": [
        {
          "type": "arduino_program",
          "id": "hc_sr04_program",
          "x": 40,
          "y": 40,
          "deletable": false,
          "inputs": {
            "SETUP": {
              "block": {
                "type": "arduino_serial_begin",
                "id": "hc_sr04_serial_begin",
                "fields": { "BAUD": "9600" }
              }
            },
            "LOOP": {
              "block": {
                "type": "arduino_serial_print",
                "id": "hc_sr04_serial_print",
                "fields": { "METHOD": "println" },
                "inputs": {
                  "VALUE": {
                    "block": {
                      "type": "arduino_ultrasonic",
                      "id": "hc_sr04_distance",
                      "fields": { "TRIG": 7, "ECHO": 8 }
                    }
                  }
                },
                "next": {
                  "block": {
                    "type": "arduino_delay",
                    "id": "hc_sr04_delay",
                    "inputs": {
                      "TIME": {
                        "shadow": {
                          "type": "math_number",
                          "id": "hc_sr04_delay_value",
                          "fields": { "NUM": 100 }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      ]
    }
  },
  "sourceFormat": "hc-sr04-ultrasonic-serial-example"
}
