{
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Units": [
    {
      "Type": "Diagram",
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1152,
          "Name": "Arduino",
          "Instance": {
            "Serial": {
              "*": [
                {
                  "+": "TArduinoHardwareSerial"
                }
              ]
            },
            "+": "TArduinoBoard",
            "AnalogInputReference": "Default",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoProcessor328Module"
                },
                {
                  "+": "TArduinoWatchdogTimerModule"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DisplayOLED1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoI2C"
                }
              ]
            },
            "Digital": {
              "*": [
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge1.InputPin"
                      }
                    ]
                  },
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 832,
          "Name": "DisplayOLED1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.OutputPin"
                      }
                    ]
                  },
                  "Text": "Menu-1",
                  "Name": "Draw Text1",
                  "+": "TArduinoMonochromeGraphicsElementDrawText",
                  "Size": 2
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.OutputPin"
                      }
                    ]
                  },
                  "Text": "Menu-2",
                  "Name": "Draw Text2",
                  "+": "TArduinoMonochromeGraphicsElementDrawText",
                  "Size": 2,
                  "Y": 20
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.OutputPin"
                      }
                    ]
                  },
                  "Text": "Menu-3",
                  "Name": "Draw Text3",
                  "+": "TArduinoMonochromeGraphicsElementDrawText",
                  "Size": 2,
                  "Y": 40
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.OutputPin"
                      }
                    ]
                  },
                  "Name": "Draw Rectangle1",
                  "+": "TArduinoMonochromeGraphicsDrawRectangle",
                  "@": [
                    {
                      "PinName": "Elements.Item [ 3 ].Y",
                      "@": "Y",
                      "+": "TOWIntegerSinkPinBinding",
                      "SourcePin": {
                        "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.OutputPin"
                      },
                      "Component": "DisplayOLED1"
                    }
                  ],
                  "Width": 128,
                  "Y": 20
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.OutputPin"
                      }
                    ]
                  },
                  "Name": "Fill Screen1",
                  "+": "TArduinoMonochromeGraphicsElementFillScreen"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.I2CChannels.I2C.InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.I2CChannels._Item0.InputPin"
                }
              ]
            },
            "+": "TArduinoDisplaySSD1306I2C"
          },
          "Type": "Component",
          "Y": 448
        },
        {
          "X": 256,
          "Name": "DetectEdge1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 8 ].OutputPin",
                "ID": "__OpenWireRootUnit__.Arduino.Digital._Item8.OutputPin"
              }
            },
            "+": "TArduinoDetectEdge"
          },
          "Type": "Component",
          "Y": 752
        },
        {
          "X": 384,
          "Name": "Counter1",
          "Instance": {
            "Max": {
              "Value": 3
            },
            "Min": {
              "Value": 1
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                }
              ]
            },
            "+": "TArduinoCounter",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareValue1.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.CompareValue2.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.CompareValue3.InputPin"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 736
        },
        {
          "X": 576,
          "Name": "CompareValue1",
          "Instance": {
            "Value": 1,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerValue1.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            }
          },
          "Type": "Component",
          "Y": 752
        },
        {
          "X": 576,
          "Name": "CompareValue2",
          "Instance": {
            "Value": 2,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerValue2.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            }
          },
          "Type": "Component",
          "Y": 832
        },
        {
          "X": 736,
          "Name": "IntegerValue1",
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareValue1.OutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.IntegerMultiMerger1.InputPins.Pin [0]",
                  "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.InputPins._Pin0"
                }
              ]
            },
            "+": "TArduinoIntegerValue"
          },
          "Type": "Component",
          "Y": 752
        },
        {
          "X": 736,
          "Name": "IntegerValue2",
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareValue2.OutputPin"
                }
              ]
            },
            "Value": 20,
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.IntegerMultiMerger1.InputPins.Pin [1]",
                  "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.InputPins._Pin1"
                }
              ]
            },
            "+": "TArduinoIntegerValue"
          },
          "Type": "Component",
          "Y": 832
        },
        {
          "X": 736,
          "Name": "IntegerValue3",
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.CompareValue3.OutputPin"
                }
              ]
            },
            "Value": 40,
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.IntegerMultiMerger1.InputPins.Pin [2]",
                  "ID": "__OpenWireRootUnit__.IntegerMultiMerger1.InputPins._Pin2"
                }
              ]
            },
            "+": "TArduinoIntegerValue"
          },
          "Type": "Component",
          "Y": 896
        },
        {
          "X": 896,
          "Name": "IntegerMultiMerger1",
          "Instance": {
            "InputPins": {
              "Pins": [
                {
                  "Type": "ptSink",
                  "SourcePin": {
                    "ID": "__OpenWireRootUnit__.IntegerValue1.OutputPin"
                  }
                },
                {
                  "Type": "ptSink",
                  "SourcePin": {
                    "ID": "__OpenWireRootUnit__.IntegerValue2.OutputPin"
                  }
                },
                {
                  "Type": "ptSink",
                  "SourcePin": {
                    "ID": "__OpenWireRootUnit__.IntegerValue3.OutputPin"
                  }
                }
              ],
              "Count": 3,
              "Form": "__OpenWireRootUnit__"
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Fill Screen1.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item4.ClockInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Text1.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item0.ClockInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Text2.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item1.ClockInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Text3.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item2.ClockInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Item [ 3 ].Y",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements.*._3.YInputPin"
                },
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Rectangle1.ClockInputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item3.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoIntegerMultiMerger"
          },
          "Type": "Component",
          "Y": 784
        },
        {
          "X": 576,
          "Name": "CompareValue3",
          "Instance": {
            "Value": 3,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerValue3.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            }
          },
          "Type": "Component",
          "Y": 896
        }
      ]
    }
  ],
  "Content": "OpenWire Diagram"
}
