{
  "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": 1712,
          "Name": "Arduino",
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "+": "TArduinoESP32CombinedPullDownAnalogDigitalDACChannel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalInterruptChannel"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "Ethernet": {
                    "HostName": ""
                  },
                  "HostName": "",
                  "+": "TArduinoESP32WiFiModule",
                  "ESPNow": {
                    "PrimaryKey": {
                      "_Data": ""
                    }
                  },
                  "AccessPoint": {
                    "SSID": "",
                    "Password": ""
                  }
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.DigitalMultiSource1.InputPin"
                      }
                    ]
                  },
                  "+": "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": 1456,
          "Name": "ColorValue1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "Value": 32768,
                  "Name": "Set Value1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.PulseGenerator1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                },
                {
                  "Name": "Set Value2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                },
                {
                  "Value": 255,
                  "Name": "Set Value3",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.Delay1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.Item [ 4 ].Elements.Item [ 0 ].Color",
                  "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": 528
        },
        {
          "X": 512,
          "Name": "TFlipFlop1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.PulseGenerator1.Enabled",
                  "ID": "__OpenWireRootUnit__.PulseGenerator1.EnabledInputPin"
                }
              ]
            },
            "+": "TArduinoTFlipFlop",
            "SetInputPin": {
              "SourcePins": [
                {
                  "Name": "__OpenWireRootUnit__.DigitalMultiSource1.OutputPins.Pin [1]",
                  "ID": "__OpenWireRootUnit__.DigitalMultiSource1.OutputPins._Pin1"
                }
              ]
            },
            "ResetInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareRange1.OutputPin"
                }
              ]
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 544
        },
        {
          "X": 256,
          "Name": "DigitalMultiSource1",
          "Instance": {
            "OutputPins": {
              "Form": "__OpenWireRootUnit__",
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.Counter1.ResetInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.TFlipFlop1.SetInputPin"
                    }
                  ]
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.Arduino.Modules.Button.OutputPin",
                "ID": "__OpenWireRootUnit__.Arduino.Modules._Item1.OutputPin"
              }
            },
            "+": "TArduinoDigitalMultiSource"
          },
          "*": [],
          "Type": "Component",
          "Y": 688
        },
        {
          "X": 1072,
          "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__.PulseGenerator1.OutputPin"
              }
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 496
        },
        {
          "X": 704,
          "Name": "PulseGenerator1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.InputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                  "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item0.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.Counter1.InputPin"
                }
              ]
            },
            "@": [
              {
                "PinName": "Enabled",
                "@": "Enabled",
                "+": "TOWBooleanSinkPinBinding",
                "SourcePin": {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.OutputPin"
                },
                "Component": "PulseGenerator1"
              }
            ],
            "+": "TArduinoPulseGenerator",
            "WhenDisabled": {
              "Reset": true,
              "CompleteCycle": true
            },
            "Phase": 0,
            "Asymmetry": 0,
            "Enabled": false
          },
          "*": [],
          "Type": "Component",
          "Y": 512
        },
        {
          "X": 800,
          "Name": "Counter1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareRange1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.PulseGenerator1.OutputPin"
                }
              ]
            },
            "+": "TArduinoCounter",
            "ResetInputPin": {
              "SourcePins": [
                {
                  "Name": "__OpenWireRootUnit__.DigitalMultiSource1.OutputPins.Pin [0]",
                  "ID": "__OpenWireRootUnit__.DigitalMultiSource1.OutputPins._Pin0"
                }
              ]
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 640
        },
        {
          "X": 1072,
          "Name": "CompareRange1",
          "Instance": {
            "Range": {
              "Max": 10,
              "Min": 0
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            },
            "+": "TArduinoIntegerCompareRange",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.ResetInputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.Delay1.StartInputPin"
                }
              ]
            },
            "IsOutsideRange": true
          },
          "*": [],
          "Type": "Component",
          "Y": 688
        },
        {
          "X": 1264,
          "Name": "Delay1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                  "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item2.InputPin"
                }
              ]
            },
            "StartInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareRange1.OutputPin"
                }
              ]
            },
            "+": "TArduinoDelay",
            "Interval": 100000
          },
          "*": [],
          "Type": "Component",
          "Y": 672
        }
      ],
      "Type": "Diagram",
      "Selection": [
        "Delay1"
      ]
    }
  ]
}
