{
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Units": [
    {
      "Type": "Diagram",
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1136,
          "Name": "Arduino",
          "Instance": {
            "AnalogInput": {
              "*": [
                {
                  "+": "TArduinoAnalogInputChannel"
                },
                {
                  "+": "TArduinoAnalogInputChannel"
                },
                {
                  "+": "TArduinoAnalogInputChannel"
                },
                {
                  "+": "TArduinoAnalogInputChannel"
                },
                {
                  "+": "TArduinoAnalogInputChannel"
                },
                {
                  "+": "TArduinoAnalogInputChannel"
                }
              ]
            },
            "Serial": {
              "*": [
                {
                  "InputPin": {
                    "SourcePins": [
                      {
                        "Name": "__OpenWireRootUnit__.Arduino.Modules.Buttons.Buttons[0].OutputPin",
                        "ID": "__OpenWireRootUnit__.Arduino.Modules._Item2.Buttons._Item0.OutputPin"
                      },
                      {
                        "Name": "__OpenWireRootUnit__.Arduino.Modules.Buttons.Buttons[1].OutputPin",
                        "ID": "__OpenWireRootUnit__.Arduino.Modules._Item2.Buttons._Item1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoSeparatedUSBSerial"
                },
                {
                  "+": "TArduinoMacchinaXBEESerial"
                },
                {
                  "+": "TArduinoMacchinaLinKSerial"
                },
                {
                  "+": "TArduinoMacchinaLinLSerial"
                },
                {
                  "+": "TArduinoMacchinaSerial3"
                }
              ]
            },
            "+": "TArduinoBoard",
            "AnalogInputReference": "Default",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "Leds": {
                    "*": [
                      {
                        "InputPin": {
                          "SourcePin": {
                            "ID": "__OpenWireRootUnit__.Inverter1.OutputPin"
                          }
                        },
                        "+": "TArduinoMacchinaLED_DS2"
                      },
                      {
                        "InputPin": {
                          "SourcePin": {
                            "ID": "__OpenWireRootUnit__.Inverter2.OutputPin"
                          }
                        },
                        "+": "TArduinoMacchinaLED_DS3"
                      },
                      {
                        "InputPin": {
                          "SourcePin": {
                            "ID": "__OpenWireRootUnit__.Inverter3.OutputPin"
                          }
                        },
                        "+": "TArduinoMacchinaLED_DS4"
                      },
                      {
                        "InputPin": {
                          "SourcePin": {
                            "ID": "__OpenWireRootUnit__.Inverter4.OutputPin"
                          }
                        },
                        "+": "TArduinoMacchinaLED_DS5"
                      },
                      {
                        "InputPin": {
                          "SourcePin": {
                            "ID": "__OpenWireRootUnit__.Inverter5.OutputPin"
                          }
                        },
                        "+": "TArduinoMacchinaLED_DS6"
                      },
                      {
                        "Channels": {
                          "*": [
                            {
                              "+": "TArduinoMacchinaLED_RGB_Red"
                            },
                            {
                              "+": "TArduinoMacchinaLED_RGB_Green"
                            },
                            {
                              "+": "TArduinoMacchinaLED_RGB_Blue"
                            }
                          ]
                        },
                        "+": "TArduinoMacchinaLED_RGB"
                      }
                    ]
                  },
                  "+": "TArduinoMacchinaLEDModule"
                },
                {
                  "Buttons": {
                    "*": [
                      {
                        "OutputPin": {
                          "SinkPins": [
                            {
                              "Name": "__OpenWireRootUnit__.Arduino.Serial.USB.InputPin",
                              "ID": "__OpenWireRootUnit__.Arduino.Serial._Item0.InputPin"
                            }
                          ]
                        },
                        "+": "TArduinoMacchinaButton1"
                      },
                      {
                        "OutputPin": {
                          "SinkPins": [
                            {
                              "Name": "__OpenWireRootUnit__.Arduino.Serial.USB.InputPin",
                              "ID": "__OpenWireRootUnit__.Arduino.Serial._Item0.InputPin"
                            }
                          ]
                        },
                        "+": "TArduinoMacchinaButton2"
                      }
                    ]
                  },
                  "+": "TArduinoMacchinaButtonsModule"
                },
                {
                  "Enabled": true,
                  "+": "TArduinoMacchinaPowerSupplyModule"
                },
                {
                  "Channels": {
                    "*": [
                      {
                        "+": "TArduinoMacchinaKLinChannel"
                      },
                      {
                        "+": "TArduinoMacchinaLLinChannel"
                      }
                    ]
                  },
                  "+": "TArduinoMacchinaLinModule"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "+": "TArduinoI2C"
                }
              ]
            },
            "Digital": {
              "*": [
                {
                  "+": "TArduinoBasicDigitalPWMOutputOnlyChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMOutputOnlyChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMOutputOnlyChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMOutputOnlyChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMOutputOnlyChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMOutputOnlyChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                },
                {
                  "+": "TArduinoBasicDigitalInputChannel"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Macchina M2 (Under The Hood)"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 256,
          "Name": "ClockGenerator1",
          "Instance": {
            "Frequency": 5,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.InputPin"
                }
              ]
            },
            "+": "TArduinoClockGenerator"
          },
          "Type": "Component",
          "Y": 608
        },
        {
          "X": 400,
          "Name": "Counter1",
          "Instance": {
            "Max": {
              "Value": 8
            },
            "Min": {
              "Value": 0
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.ClockGenerator1.OutputPin"
                }
              ]
            },
            "+": "TArduinoCounter",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerMultiSource1.InputPin"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 592
        },
        {
          "X": 800,
          "Name": "CompareValue1",
          "Instance": {
            "Value": 1,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Inverter1.InputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [0]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin0"
              }
            }
          },
          "Type": "Component",
          "Y": 560
        },
        {
          "X": 528,
          "Name": "IntegerMultiSource1",
          "Instance": {
            "OutputPins": {
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue1.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue2.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue3.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue4.InputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "ID": "__OpenWireRootUnit__.CompareValue5.InputPin"
                    }
                  ]
                }
              ],
              "Count": 5,
              "Form": "__OpenWireRootUnit__"
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            },
            "+": "TArduinoIntegerMultiSource"
          },
          "Type": "Component",
          "Y": 592
        },
        {
          "X": 800,
          "Name": "CompareValue2",
          "Instance": {
            "Value": 2,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Inverter2.InputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [1]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin1"
              }
            }
          },
          "Type": "Component",
          "Y": 592
        },
        {
          "X": 800,
          "Name": "CompareValue3",
          "Instance": {
            "Value": 3,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Inverter3.InputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [2]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin2"
              }
            }
          },
          "Type": "Component",
          "Y": 624
        },
        {
          "X": 800,
          "Name": "CompareValue4",
          "Instance": {
            "Value": 4,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Inverter4.InputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [3]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin3"
              }
            }
          },
          "Type": "Component",
          "Y": 656
        },
        {
          "X": 800,
          "Name": "CompareValue5",
          "Instance": {
            "Value": 5,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Inverter5.InputPin"
                }
              ]
            },
            "+": "TArduinoIntegerCompareValue",
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [4]",
                "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin4"
              }
            }
          },
          "Type": "Component",
          "Y": 688
        },
        {
          "X": 960,
          "Name": "Inverter1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.LED.Leds.DS2 (Red).InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item1.Leds._Item0.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareValue1.OutputPin"
              }
            },
            "+": "TArduinoBooleanInverter"
          },
          "Type": "Component",
          "Y": 528
        },
        {
          "X": 960,
          "Name": "Inverter2",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.LED.Leds.DS3 (Yellow).InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item1.Leds._Item1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareValue2.OutputPin"
              }
            },
            "+": "TArduinoBooleanInverter"
          },
          "Type": "Component",
          "Y": 576
        },
        {
          "X": 960,
          "Name": "Inverter3",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.LED.Leds.DS4 (Yellow).InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item1.Leds._Item2.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareValue3.OutputPin"
              }
            },
            "+": "TArduinoBooleanInverter"
          },
          "Type": "Component",
          "Y": 624
        },
        {
          "X": 960,
          "Name": "Inverter4",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.LED.Leds.DS5 (Yellow).InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item1.Leds._Item3.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareValue4.OutputPin"
              }
            },
            "+": "TArduinoBooleanInverter"
          },
          "Type": "Component",
          "Y": 672
        },
        {
          "X": 960,
          "Name": "Inverter5",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.LED.Leds.DS6 (Green).InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item1.Leds._Item4.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.CompareValue5.OutputPin"
              }
            },
            "+": "TArduinoBooleanInverter"
          },
          "Type": "Component",
          "Y": 720
        }
      ]
    }
  ],
  "Content": "OpenWire Diagram"
}
