{
  "Config": {
    "Build": {
      "Board": "esp32:esp32:m5stick-c:PartitionScheme=default,UploadSpeed=1500000,DebugLevel=none"
    }
  },
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Content": "OpenWire Diagram",
  "Units": [
    {
      "Type": "Diagram",
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1296,
          "Name": "Arduino",
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoESP32CombinedPullDownAnalogDigitalDACChannel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalChannel"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoESP32WiFiModule"
                },
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoESP32ProcessorModule"
                },
                {
                  "+": "TArduinoESP32HallSensorModule"
                },
                {
                  "+": "TArduinoESP32BluetoothLEModule"
                },
                {
                  "+": "TM5StackAtomESP32ButtonModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_InfraredRemoteTransmitterModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_GroveModule"
                },
                {
                  "Elements": {
                    "*": [
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [2]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin2"
                            }
                          ]
                        },
                        "Height": 0,
                        "+": "TArduinoColorGraphicsDrawLine",
                        "@": [
                          {
                            "PinName": "Modules.Item [ 8 ].Elements.Item [ 0 ].Y",
                            "@": "Y",
                            "+": "TOWIntegerSinkPinBinding",
                            "SourcePin": {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [1]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin1"
                            },
                            "Component": "Arduino"
                          }
                        ],
                        "Name": "Draw Line1",
                        "Color": 4294901760,
                        "Width": 5
                      },
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [0]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin0"
                            }
                          ]
                        },
                        "Name": "Fill Screen1",
                        "+": "TArduinoColorGraphicsElementFillScreen"
                      }
                    ]
                  },
                  "+": "TArduinoESP32_M5Stack_Atom_RGBMatrixLedModule"
                }
              ]
            },
            "BoardType": "M5 Stack ATOM Matrix"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 416,
          "Name": "ClockGenerator1",
          "Instance": {
            "Frequency": 6,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.ClockDemmux1.InputPin"
                }
              ]
            },
            "+": "TArduinoClockGenerator"
          },
          "Type": "Component",
          "Y": 560
        },
        {
          "X": 624,
          "Name": "ClockDemmux1",
          "Instance": {
            "OutputPins": {
              "Form": "__OpenWireRootUnit__",
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.UpDownCounter1.DownInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.UpDownCounter1.UpInputPin"
                    }
                  ]
                }
              ]
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.ClockGenerator1.OutputPin"
                }
              ]
            },
            "+": "TArduinoClockDemux",
            "SelectInputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.IntegerValue1.OutputPin"
              }
            }
          },
          "Type": "Component",
          "Y": 544
        },
        {
          "X": 832,
          "Name": "UpDownCounter1",
          "Instance": {
            "Max": {
              "Value": 4
            },
            "Min": {
              "Value": 0
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerMultiSource1.InputPin"
                }
              ]
            },
            "+": "TArduinoUpDownCounter",
            "DownInputPin": {
              "SourcePins": [
                {
                  "Name": "__OpenWireRootUnit__.ClockDemmux1.OutputPins.Pin [0]",
                  "ID": "__OpenWireRootUnit__.ClockDemmux1.OutputPins._Pin0"
                }
              ]
            },
            "UpInputPin": {
              "SourcePins": [
                {
                  "Name": "__OpenWireRootUnit__.ClockDemmux1.OutputPins.Pin [1]",
                  "ID": "__OpenWireRootUnit__.ClockDemmux1.OutputPins._Pin1"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 544
        },
        {
          "X": 256,
          "Name": "CompareValue1",
          "Instance": {
            "Value": 4,
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [3]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin3"
              }
            },
            "+": "TArduinoIntegerCompareValue",
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.IntegerValue1.Elements.Set Value (0).InputPin",
                  "ID": "__OpenWireRootUnit__.IntegerValue1.Elements._Item0.InputPin"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 352
        },
        {
          "X": 512,
          "Name": "IntegerValue1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "Name": "Set Value1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.CompareValue1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoIntegerSetValueElement"
                },
                {
                  "Value": 1,
                  "Name": "Set Value2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.CompareValue2.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoIntegerSetValueElement"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.ClockDemmux1.SelectInputPin"
                }
              ]
            },
            "+": "TArduinoIntegerValue"
          },
          "Type": "Component",
          "Y": 352
        },
        {
          "X": 256,
          "Name": "CompareValue2",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.IntegerValue1.Elements.Set Value (0).InputPin",
                  "ID": "__OpenWireRootUnit__.IntegerValue1.Elements._Item1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [4]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin4"
              }
            },
            "+": "TArduinoIntegerCompareValue"
          },
          "Type": "Component",
          "Y": 432
        },
        {
          "X": 1024,
          "Name": "IntegerMultiSource1",
          "Instance": {
            "OutputPins": {
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Fill Screen.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules._Item8.Elements._Item1.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules..Elements.Draw Line.YInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules.*._8.Elements.*._0.YInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Draw Line.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules._Item8.Elements._Item0.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue1.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue2.InputPin"
                    }
                  ]
                }
              ],
              "Count": 5,
              "Form": "__OpenWireRootUnit__"
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.UpDownCounter1.OutputPin"
              }
            },
            "+": "TArduinoIntegerMultiSource"
          },
          "Type": "Component",
          "Y": 544
        }
      ]
    }
  ]
}
