{
  "Config": {
    "Build": {
      "Board": "arduino:avr:uno"
    }
  },
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Content": "OpenWire Diagram",
  "Units": [
    {
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1040,
          "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"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.MapRange1.InputPin"
                      }
                    ]
                  },
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 816,
          "Name": "DisplayOLED1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [0]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin0"
                      }
                    ]
                  },
                  "Name": "Fill Screen1",
                  "+": "TArduinoMonochromeGraphicsElementFillScreen"
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [1]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin1"
                      }
                    ]
                  },
                  "Height": 42,
                  "+": "TArduinoMonochromeGraphicsDrawRectangle",
                  "X": 19,
                  "Name": "Draw Rectangle1",
                  "Width": 82,
                  "Y": 19
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [3]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin3"
                      }
                    ]
                  },
                  "Y": 20,
                  "Height": 40,
                  "+": "TArduinoMonochromeGraphicsDrawRectangle",
                  "@": [
                    {
                      "PinName": "Elements.Item [ 2 ].Width",
                      "@": "Width",
                      "+": "TOWCardinalSinkPinBinding",
                      "SourcePin": {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [2]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin2"
                      },
                      "Component": "DisplayOLED1"
                    }
                  ],
                  "X": 20,
                  "Name": "Draw Rectangle2",
                  "FillColor": "tmcWhite",
                  "Width": 80
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [4]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin4"
                      }
                    ]
                  },
                  "Height": 39,
                  "+": "TArduinoMonochromeGraphicsDrawLine",
                  "X": 40,
                  "Name": "Draw Line1",
                  "Color": "tmcBlack",
                  "Width": 0,
                  "Y": 20
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [5]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin5"
                      }
                    ]
                  },
                  "Height": 39,
                  "+": "TArduinoMonochromeGraphicsDrawLine",
                  "X": 60,
                  "Name": "Draw Line2",
                  "Color": "tmcBlack",
                  "Width": 0,
                  "Y": 20
                },
                {
                  "ClockInputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [6]",
                        "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin6"
                      }
                    ]
                  },
                  "Height": 39,
                  "+": "TArduinoMonochromeGraphicsDrawLine",
                  "X": 80,
                  "Name": "Draw Line3",
                  "Color": "tmcBlack",
                  "Width": 0,
                  "Y": 20
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.I2CChannels.I2C.InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.I2CChannels._Item0.InputPin"
                }
              ]
            },
            "+": "TArduinoDisplaySSD1306I2C"
          },
          "Type": "Component",
          "Y": 352
        },
        {
          "X": 288,
          "Name": "MapRange1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogToInteger1.InputPin"
                }
              ]
            },
            "InputRange": {
              "Min": 0
            },
            "+": "TArduinoMapRange",
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 14 ]\/AnalogIn[ 0 ].OutputPin",
                "ID": "__OpenWireRootUnit__.Arduino.Digital._Item14.OutputPin"
              }
            },
            "OutputRange": {
              "Max": 80,
              "Min": 0
            }
          },
          "Type": "Component",
          "Y": 384
        },
        {
          "X": 400,
          "Name": "AnalogToInteger1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerMultiSource1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.MapRange1.OutputPin"
              }
            },
            "+": "TArduinoFloatToInteger"
          },
          "Type": "Component",
          "Y": 384
        },
        {
          "X": 560,
          "Name": "IntegerMultiSource1",
          "Instance": {
            "OutputPins": {
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Fill Screen.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item0.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Rectangle.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item1.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Item [ 2 ].Width",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements.*._2.WidthInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Rectangle.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item2.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Line.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item3.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Line.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item4.ClockInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Draw Line.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item5.ClockInputPin"
                    }
                  ]
                }
              ],
              "Count": 7,
              "Form": "__OpenWireRootUnit__"
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.AnalogToInteger1.OutputPin"
              }
            },
            "+": "TArduinoIntegerMultiSource"
          },
          "Type": "Component",
          "Y": 384
        }
      ],
      "Type": "Diagram",
      "Selection": [
        "DisplayOLED1",
        "MapRange1",
        "AnalogToInteger1",
        "IntegerMultiSource1"
      ]
    }
  ]
}
