{
  "Config": {
    "Build": {
      "Board": "arduino:avr:uno"
    }
  },
  "Version": "2",
  "Product": "Visuino - Visual Arduino Programming",
  "Content": "OpenWire Diagram",
  "Units": [
    {
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 688,
          "Name": "Arduino",
          "Instance": {
            "Serial": {
              "*": [
                {
                  "+": "TArduinoHardwareSerial"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoWatchdogTimerModule"
                },
                {
                  "+": "TArduinoProcessor328Module"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "+": "TArduinoI2C"
                }
              ]
            },
            "Shields": {
              "*": [
                {
                  "Elements": {
                    "*": [
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "ID": "__OpenWireRootUnit__.ClockSwitch1.OutputPin"
                            }
                          ]
                        },
                        "Height": 10,
                        "+": "TArduinoColorGraphicsDrawEllipse",
                        "@": [
                          {
                            "PinName": "Shields.Item [ 0 ].Elements.Item [ 0 ].X",
                            "@": "X",
                            "+": "TOWIntegerSinkPinBinding",
                            "SourcePin": {
                              "Name": "__OpenWireRootUnit__.Arduino.Shields.TFT Display.Touch.XOutputPin",
                              "ID": "__OpenWireRootUnit__.Arduino.Shields._Item0.Touch.XOutputPin"
                            },
                            "Component": "Arduino"
                          },
                          {
                            "PinName": "Shields.Item [ 0 ].Elements.Item [ 0 ].Y",
                            "@": "Y",
                            "+": "TOWIntegerSinkPinBinding",
                            "SourcePin": {
                              "Name": "__OpenWireRootUnit__.Arduino.Shields.TFT Display.Touch.YOutputPin",
                              "ID": "__OpenWireRootUnit__.Arduino.Shields._Item0.Touch.YOutputPin"
                            },
                            "Component": "Arduino"
                          }
                        ],
                        "Centered": true,
                        "Name": "Draw Ellipse1",
                        "Color": -1146130,
                        "FillColor": -16711936,
                        "Width": 10
                      }
                    ]
                  },
                  "Touch": {
                    "ClockInputPin": {
                      "SourcePins": [
                        {
                          "Name": "__OpenWireRootUnit__.MultiSource1.OutputPins.Pin [0]",
                          "ID": "__OpenWireRootUnit__.MultiSource1.OutputPins._Pin0"
                        }
                      ]
                    },
                    "YOutputPin": {
                      "SinkPins": [
                        {
                          "Name": "__OpenWireRootUnit__.Arduino.Shields.Item [ 0 ].Elements.Item [ 0 ].Y",
                          "ID": "__OpenWireRootUnit__.Arduino.Shields.*._0.Elements.*._0.YInputPin"
                        }
                      ]
                    },
                    "PressureOutputPin": {
                      "SinkPins": [
                        {
                          "ID": "__OpenWireRootUnit__.CompareAnalogValue1.InputPin"
                        }
                      ]
                    },
                    "XOutputPin": {
                      "SinkPins": [
                        {
                          "Name": "__OpenWireRootUnit__.Arduino.Shields.Item [ 0 ].Elements.Item [ 0 ].X",
                          "ID": "__OpenWireRootUnit__.Arduino.Shields.*._0.Elements.*._0.XInputPin"
                        }
                      ]
                    }
                  },
                  "+": "TArduinoTouchScreenTFTLCDShield"
                }
              ]
            },
            "Digital": {
              "*": [
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 1120,
          "Name": "CompareAnalogValue1",
          "Instance": {
            "Value": 0.25,
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.Arduino.Shields.TFT Display.Touch.PressureOutputPin",
                "ID": "__OpenWireRootUnit__.Arduino.Shields._Item0.Touch.PressureOutputPin"
              }
            },
            "+": "TArduinoCompareValue",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.ClockSwitch1.EnableInputPin"
                }
              ]
            },
            "CompareType": "ctBigger"
          },
          "Type": "Component",
          "Y": 1232
        },
        {
          "X": 256,
          "Name": "Repeat1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.MultiSource1.InputPin"
                }
              ]
            },
            "+": "TArduinoRepeat"
          },
          "Type": "Component",
          "Y": 1216
        },
        {
          "X": 384,
          "Name": "MultiSource1",
          "Instance": {
            "OutputPins": {
              "Form": "__OpenWireRootUnit__",
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Shields.TFT Display.Touch.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Shields._Item0.Touch.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.ClockSwitch1.InputPin"
                    }
                  ]
                }
              ]
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.Repeat1.OutputPin"
                }
              ]
            },
            "+": "TArduinoClockMultiSource"
          },
          "Type": "Component",
          "Y": 1216
        },
        {
          "X": 528,
          "Name": "ClockSwitch1",
          "Instance": {
            "InputPin": {
              "SourcePins": [
                {
                  "Name": "__OpenWireRootUnit__.MultiSource1.OutputPins.Pin [1]",
                  "ID": "__OpenWireRootUnit__.MultiSource1.OutputPins._Pin1"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Shields.TFT Display.Elements.Draw Ellipse.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Shields._Item0.Elements._Item0.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoClockSwitch",
            "EnableInputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareAnalogValue1.OutputPin"
              }
            }
          },
          "Type": "Component",
          "Y": 1312
        }
      ],
      "Type": "Diagram",
      "Selection": [
        "CompareAnalogValue1"
      ]
    }
  ]
}
