{
  "Config": {
    "Build": {
      "Board": "esp32:esp32:m5stick-c:PartitionScheme=default,UploadSpeed=1500000,DebugLevel=none,EraseFlash=none"
    }
  },
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Content": "OpenWire Diagram",
  "Units": [
    {
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1088,
          "Name": "Arduino",
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "DigitalInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.UltrasonicRanger1.PingOutputPin"
                    }
                  },
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.UltrasonicRanger1.EchoInputPin"
                      }
                    ]
                  },
                  "+": "TArduinoESP32CombinedPullDownAnalogDigitalDACChannel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalInterruptChannel"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "Ethernet": {
                    "HostName": ""
                  },
                  "HostName": "",
                  "+": "TArduinoESP32WiFiModule",
                  "ESPNow": {
                    "PrimaryKey": {
                      "_Data": ""
                    }
                  },
                  "AccessPoint": {
                    "SSID": "",
                    "Password": ""
                  }
                },
                {
                  "+": "TM5StackAtomESP32ButtonModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_InfraredRemoteTransmitterModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_GroveModule"
                },
                {
                  "Elements": {
                    "*": [
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "ID": "__OpenWireRootUnit__.ColorValue1.OutputPin"
                            }
                          ]
                        },
                        "Name": "Fill Screen1",
                        "+": "TArduinoColorGraphicsElementFillScreen",
                        "@": [
                          {
                            "PinName": "Modules.Item [ 4 ].Elements.Item [ 0 ].Color",
                            "@": "Color",
                            "+": "TOWAlphaColorSinkPinBinding",
                            "SourcePin": {
                              "ID": "__OpenWireRootUnit__.ColorValue1.OutputPin"
                            },
                            "Component": "Arduino"
                          }
                        ]
                      }
                    ]
                  },
                  "+": "TArduinoESP32_M5Stack_Atom_RGBMatrixLedModule"
                },
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoESP32ProcessorModule"
                },
                {
                  "+": "TArduinoESP32HallSensorModule"
                },
                {
                  "DeviceName": "",
                  "+": "TArduinoESP32BluetoothLEModule"
                }
              ]
            },
            "BoardType": "M5 Stack ATOM Matrix"
          },
          "*": [],
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 256,
          "Name": "UltrasonicRanger1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareValue1.InputPin"
                }
              ]
            },
            "EchoInputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.Arduino.Digital[4].OutputPin",
                "ID": "__OpenWireRootUnit__.Arduino.Digital._Item4.OutputPin"
              }
            },
            "+": "TArduinoUltrasonicRanger",
            "PingOutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Digital[1].DigitalInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Digital._Item1.DigitalInputPin"
                }
              ]
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 560
        },
        {
          "X": 512,
          "Name": "CompareValue1",
          "Instance": {
            "Value": 5,
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.UltrasonicRanger1.OutputPin"
              }
            },
            "+": "TArduinoCompareValue",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.InputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                  "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item0.InputPin"
                }
              ]
            },
            "CompareType": "ctBigger"
          },
          "*": [],
          "Type": "Component",
          "Y": 576
        },
        {
          "X": 688,
          "Name": "DetectEdge1",
          "Instance": {
            "Rising": false,
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                  "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item1.InputPin"
                }
              ]
            },
            "+": "TArduinoDetectEdge",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareValue1.OutputPin"
              }
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 640
        },
        {
          "X": 864,
          "Name": "ColorValue1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "Value": 32768,
                  "Name": "Set Value1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.CompareValue1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                },
                {
                  "Value": 255,
                  "Name": "Set Value2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules..Elements.Fill Screen.ColorInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules.*._4.Elements.*._0.ColorInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Fill Screen.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item4.Elements._Item0.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoColorValue"
          },
          "*": [],
          "Type": "Component",
          "Y": 544
        }
      ],
      "Type": "Diagram",
      "Selection": [
        "UltrasonicRanger1"
      ]
    }
  ]
}
