{
  "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": [
    {
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1184,
          "Name": "Arduino",
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoESP32CombinedPullDownAnalogDigitalDACChannel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalChannel"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoESP32WiFiModule"
                },
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoESP32ProcessorModule"
                },
                {
                  "+": "TArduinoESP32HallSensorModule"
                },
                {
                  "+": "TArduinoESP32BluetoothLEModule"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.TFlipFlop1.ClockInputPin"
                      }
                    ]
                  },
                  "+": "TM5StackAtomESP32ButtonModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_InfraredRemoteTransmitterModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_GroveModule"
                },
                {
                  "Elements": {
                    "*": [
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "ID": "__OpenWireRootUnit__.ColorValue1.OutputPin"
                            }
                          ]
                        },
                        "Name": "Fill Screen1",
                        "+": "TArduinoColorGraphicsElementFillScreen",
                        "@": [
                          {
                            "PinName": "Modules.Item [ 8 ].Elements.Item [ 0 ].Color",
                            "@": "Color",
                            "+": "TOWAlphaColorSinkPinBinding",
                            "SourcePin": {
                              "ID": "__OpenWireRootUnit__.ColorValue1.OutputPin"
                            },
                            "Component": "Arduino"
                          }
                        ]
                      }
                    ]
                  },
                  "+": "TArduinoESP32_M5Stack_Atom_RGBMatrixLedModule"
                }
              ]
            },
            "BoardType": "M5 Stack ATOM Matrix"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 928,
          "Name": "ColorValue1",
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.Delay1.OutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Fill Screen.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item8.Elements._Item0.ClockInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.Item [ 8 ].Elements.Item [ 0 ].Color",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules.*._8.Elements.*._0.ColorInputPin"
                }
              ]
            },
            "+": "TArduinoColorValue",
            "Elements": {
              "*": [
                {
                  "Value": 255,
                  "Name": "Set Value1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.Sequence1.Elements.Repeat1.Elements.Digital Period.OutputPin",
                        "ID": "__OpenWireRootUnit__.Sequence1.Elements._Item0.Elements._Item0.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                },
                {
                  "Name": "Set Value2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.Sequence1.Elements.Repeat1.Elements.Digital Period.OutputPin",
                        "ID": "__OpenWireRootUnit__.Sequence1.Elements._Item0.Elements._Item1.OutputPin"
                      },
                      {
                        "Name": "__OpenWireRootUnit__.Sequence1.Elements.Repeat2.Elements.Digital Period.OutputPin",
                        "ID": "__OpenWireRootUnit__.Sequence1.Elements._Item1.Elements._Item1.OutputPin"
                      },
                      {
                        "ID": "__OpenWireRootUnit__.Delay1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                },
                {
                  "Value": 16711680,
                  "Name": "Set Value3",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.Sequence1.Elements.Repeat2.Elements.Digital Period.OutputPin",
                        "ID": "__OpenWireRootUnit__.Sequence1.Elements._Item1.Elements._Item0.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoColorSetValueElement"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 528
        },
        {
          "X": 496,
          "Name": "Sequence1",
          "Instance": {
            "Repeat": true,
            "Enabled": false,
            "+": "TArduinoSequence",
            "@": [
              {
                "PinName": "Enabled",
                "@": "Enabled",
                "+": "TOWBooleanSinkPinBinding",
                "SourcePin": {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.OutputPin"
                },
                "Component": "Sequence1"
              }
            ],
            "Elements": {
              "*": [
                {
                  "Elements": {
                    "*": [
                      {
                        "Name": "Digital Period1",
                        "OutputPin": {
                          "SinkPins": [
                            {
                              "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                              "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item0.InputPin"
                            }
                          ]
                        },
                        "+": "TArduinoSequenceDigitalElement",
                        "Delay": 50
                      },
                      {
                        "Name": "Digital Period1",
                        "OutputPin": {
                          "SinkPins": [
                            {
                              "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                              "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item1.InputPin"
                            }
                          ]
                        },
                        "+": "TArduinoSequenceDigitalElement",
                        "Delay": 50
                      }
                    ]
                  },
                  "Name": "Repeat1",
                  "+": "TArduinoSequenceRepeatElement"
                },
                {
                  "Elements": {
                    "*": [
                      {
                        "Name": "Digital Period1",
                        "OutputPin": {
                          "SinkPins": [
                            {
                              "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                              "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item2.InputPin"
                            }
                          ]
                        },
                        "+": "TArduinoSequenceDigitalElement",
                        "Delay": 50
                      },
                      {
                        "Name": "Digital Period1",
                        "OutputPin": {
                          "SinkPins": [
                            {
                              "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                              "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item1.InputPin"
                            }
                          ]
                        },
                        "+": "TArduinoSequenceDigitalElement",
                        "Delay": 50
                      }
                    ]
                  },
                  "Name": "Repeat2",
                  "+": "TArduinoSequenceRepeatElement"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 480
        },
        {
          "X": 256,
          "Name": "TFlipFlop1",
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.Button.OutputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item5.OutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Sequence1.Enabled",
                  "ID": "__OpenWireRootUnit__.Sequence1.EnabledInputPin"
                }
              ]
            },
            "+": "TArduinoTFlipFlop",
            "InvertedOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Delay1.StartInputPin"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 864
        },
        {
          "X": 496,
          "Name": "Delay1",
          "Instance": {
            "StartInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.InvertedOutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.ColorValue1.Elements.Set Value.InputPin",
                  "ID": "__OpenWireRootUnit__.ColorValue1.Elements._Item1.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.ColorValue1.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoDelay"
          },
          "Type": "Component",
          "Y": 960
        }
      ],
      "Type": "Diagram",
      "Selection": [
        "Delay1"
      ]
    }
  ]
}
