{
  "Config": {
    "Build": {
      "Board": "arduino:avr:uno"
    }
  },
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Content": "OpenWire Diagram",
  "Units": [
    {
      "Type": "Diagram",
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1472,
          "Name": "Arduino",
          "Instance": {
            "Serial": {
              "*": [
                {
                  "+": "TArduinoHardwareSerial"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoWatchdogTimerModule"
                },
                {
                  "+": "TArduinoProcessor328Module"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DisplayOLED1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoI2C"
                }
              ]
            },
            "Digital": {
              "*": [
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.Button1.InputPin"
                      }
                    ]
                  },
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 1040,
          "Name": "FormattedText1",
          "Instance": {
            "Text": "%0 %1 %2 %3 %4 %5",
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Text Field.InputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item1.InputPin"
                }
              ]
            },
            "+": "TArduinoFormattedText",
            "Elements": {
              "*": [
                {
                  "Name": "IntegerElement1",
                  "InputPin": {
                    "SourcePin": {
                      "Name": "__OpenWireRootUnit__.IntegerDemux1.OutputPins.Pin [0]",
                      "ID": "__OpenWireRootUnit__.IntegerDemux1.OutputPins._Pin0"
                    }
                  },
                  "+": "TArduinoFormattedTextElementInteger"
                },
                {
                  "Name": "IntegerElement2",
                  "InputPin": {
                    "SourcePin": {
                      "Name": "__OpenWireRootUnit__.IntegerDemux1.OutputPins.Pin [1]",
                      "ID": "__OpenWireRootUnit__.IntegerDemux1.OutputPins._Pin1"
                    }
                  },
                  "+": "TArduinoFormattedTextElementInteger"
                },
                {
                  "Name": "IntegerElement3",
                  "InputPin": {
                    "SourcePin": {
                      "Name": "__OpenWireRootUnit__.IntegerDemux1.OutputPins.Pin [2]",
                      "ID": "__OpenWireRootUnit__.IntegerDemux1.OutputPins._Pin2"
                    }
                  },
                  "+": "TArduinoFormattedTextElementInteger"
                },
                {
                  "Name": "IntegerElement4",
                  "InputPin": {
                    "SourcePin": {
                      "Name": "__OpenWireRootUnit__.IntegerDemux1.OutputPins.Pin [3]",
                      "ID": "__OpenWireRootUnit__.IntegerDemux1.OutputPins._Pin3"
                    }
                  },
                  "+": "TArduinoFormattedTextElementInteger"
                },
                {
                  "Name": "IntegerElement5",
                  "InputPin": {
                    "SourcePin": {
                      "Name": "__OpenWireRootUnit__.IntegerDemux1.OutputPins.Pin [4]",
                      "ID": "__OpenWireRootUnit__.IntegerDemux1.OutputPins._Pin4"
                    }
                  },
                  "+": "TArduinoFormattedTextElementInteger"
                },
                {
                  "Name": "IntegerElement6",
                  "InputPin": {
                    "SourcePin": {
                      "Name": "__OpenWireRootUnit__.IntegerDemux1.OutputPins.Pin [5]",
                      "ID": "__OpenWireRootUnit__.IntegerDemux1.OutputPins._Pin5"
                    }
                  },
                  "+": "TArduinoFormattedTextElementInteger"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 608,
          "Name": "RandomIntegerGenerator1",
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
                }
              ]
            },
            "Min": 1,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerDemux1.InputPin"
                }
              ]
            },
            "+": "TArduinoRandomIntegerGenerator",
            "Max": 50
          },
          "Type": "Component",
          "Y": 320
        },
        {
          "X": 816,
          "Name": "IntegerDemux1",
          "Instance": {
            "OutputPins": {
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.FormattedText1.Elements.IntegerElement.InputPin",
                      "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item0.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.FormattedText1.Elements.IntegerElement.InputPin",
                      "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item1.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.FormattedText1.Elements.IntegerElement.InputPin",
                      "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item2.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.FormattedText1.Elements.IntegerElement.InputPin",
                      "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item3.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.FormattedText1.Elements.IntegerElement.InputPin",
                      "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item4.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.FormattedText1.Elements.IntegerElement.InputPin",
                      "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item5.InputPin"
                    }
                  ]
                }
              ],
              "Count": 6,
              "Form": "__OpenWireRootUnit__"
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.RandomIntegerGenerator1.OutputPin"
              }
            },
            "+": "TArduinoIntegerDemux",
            "SelectInputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            }
          },
          "Type": "Component",
          "Y": 320
        },
        {
          "X": 448,
          "Name": "Counter1",
          "Instance": {
            "Max": {
              "Value": 6,
              "RollOver": false
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerDemux1.SelectInputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.RandomIntegerGenerator1.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoCounter",
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.ClockGenerator1.OutputPin"
                }
              ]
            },
            "ResetInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.Button1.OutputPin"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 384
        },
        {
          "X": 256,
          "Name": "Button1",
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 7 ].OutputPin",
                "ID": "__OpenWireRootUnit__.Arduino.Digital._Item7.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.ResetInputPin"
                }
              ]
            },
            "+": "TArduinoButton"
          },
          "Type": "Component",
          "Y": 416
        },
        {
          "X": 256,
          "Name": "ClockGenerator1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.InputPin"
                }
              ]
            },
            "+": "TArduinoClockGenerator"
          },
          "Type": "Component",
          "Y": 336
        },
        {
          "X": 1248,
          "Name": "DisplayOLED1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "Name": "Draw Text1",
                  "Text": "LOTTO",
                  "+": "TArduinoMonochromeGraphicsElementDrawText",
                  "Size": 3
                },
                {
                  "Name": "Text Field1",
                  "InputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.FormattedText1.OutputPin"
                    }
                  },
                  "+": "TArduinoMonochromeGraphicsElementTextFeld",
                  "Size": 2,
                  "InitialValue": "",
                  "Y": 30
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.I2CChannels.I2C.InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.I2CChannels._Item0.InputPin"
                }
              ]
            },
            "+": "TArduinoDisplaySSD1306I2C"
          },
          "Type": "Component",
          "Y": 320
        }
      ]
    }
  ]
}
