{
  "Config": {
    "Build": {
      "Board": "arduino:avr:uno"
    }
  },
  "Units": [
    {
      "*": [
        {
          "Name": "Arduino",
          "Width": 208,
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.Button1.InputPin"
                      }
                    ]
                  },
                  "+": "TArduinoAdditionalDigitalInterruptChannel"
                },
                {
                  "AnalogInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.RampToValue1.OutputPin"
                    }
                  },
                  "+": "TArduinoBasicDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoWatchdogTimerModule"
                },
                {
                  "+": "TArduinoProcessor328Module"
                },
                {
                  "+": "TArduino_AVR328_AnalogInput_Config"
                }
              ]
            },
            "Serial": {
              "*": [
                {
                  "+": "TArduinoBreakHardwareSerial0"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "+": "TArduinoI2C"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno R3",
            "+": "TArduinoBoard"
          },
          "X": 1184,
          "Height": 1088,
          "Y": 256,
          "Type": "Component"
        },
        {
          "Name": "TFlipFlop1",
          "Width": 176,
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.Button1.OutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge2.InputPin"
                }
              ]
            },
            "+": "TArduinoTFlipFlop"
          },
          "X": 384,
          "Height": 96,
          "Y": 592,
          "Type": "Component"
        },
        {
          "Name": "Button1",
          "Width": 80,
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Arduino.Digital._Item2.OutputPin",
                "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 2 ].OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoButton"
          },
          "X": 256,
          "Height": 48,
          "Y": 624,
          "Type": "Component"
        },
        {
          "Name": "AnalogValue1",
          "Width": 144,
          "Instance": {
            "Elements": {
              "*": [
                {
                  "+": "TArduinoAnalogSetValueElement",
                  "Name": "Set Value1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                      }
                    ]
                  },
                  "Value": 1
                },
                {
                  "Name": "Set Value2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DetectEdge2.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoAnalogSetValueElement"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.RampToValue1.InputPin"
                }
              ]
            },
            "+": "TArduinoFloatValue"
          },
          "X": 816,
          "Height": 144,
          "Y": 560,
          "Type": "Component"
        },
        {
          "Name": "DetectEdge1",
          "Width": 96,
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.TFlipFlop1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogValue1.Elements._Item0.InputPin",
                  "Name": "__OpenWireRootUnit__.AnalogValue1.Elements.Set Value1 (1).InputPin"
                }
              ]
            },
            "+": "TArduinoDetectEdge"
          },
          "X": 640,
          "Height": 48,
          "Y": 560,
          "Type": "Component"
        },
        {
          "Name": "DetectEdge2",
          "Width": 96,
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogValue1.Elements._Item1.InputPin",
                  "Name": "__OpenWireRootUnit__.AnalogValue1.Elements.Set Value2 (0).InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.TFlipFlop1.OutputPin"
              }
            },
            "Rising": false,
            "+": "TArduinoDetectEdge"
          },
          "X": 640,
          "Height": 48,
          "Y": 656,
          "Type": "Component"
        },
        {
          "Name": "RampToValue1",
          "Width": 112,
          "Instance": {
            "Slope": 0.5,
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.AnalogValue1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Arduino.Digital._Item3.AnalogInputPin",
                  "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 3 ].AnalogInputPin"
                }
              ]
            },
            "+": "TArduinoRampToValue"
          },
          "X": 1024,
          "Height": 64,
          "Y": 560,
          "Type": "Component"
        }
      ],
      "Name": "__OpenWireRootUnit__",
      "Type": "Diagram",
      "Links": [
        {
          "Routed": true,
          "Begin": {
            "ID": "Button1.OutputPin",
            "Y": 656,
            "X": 336
          },
          "Name": "TOWELink1",
          "End": {
            "ID": "TFlipFlop1.ClockInputPin",
            "Y": 656,
            "X": 384
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Arduino.Digital._Item2.OutputPin",
            "Y": 544,
            "X": 1392
          },
          "Name": "TOWELink3",
          "End": {
            "ID": "Button1.InputPin",
            "Y": 656,
            "X": 256
          },
          "Points": [
            {
              "Y": 544,
              "X": 1472
            },
            {
              "Y": 176,
              "X": 1472
            },
            {
              "Y": 176,
              "X": 240
            },
            {
              "Y": 656,
              "X": 240
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "TFlipFlop1.OutputPin",
            "Y": 624,
            "X": 560
          },
          "Name": "TOWELink5",
          "End": {
            "ID": "DetectEdge1.InputPin",
            "Y": 592,
            "X": 640
          },
          "Points": [
            {
              "Y": 624,
              "X": 592
            },
            {
              "Y": 592,
              "X": 592
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "TFlipFlop1.OutputPin",
            "Y": 624,
            "X": 560
          },
          "Name": "TOWELink6",
          "End": {
            "ID": "DetectEdge2.InputPin",
            "Y": 688,
            "X": 640
          },
          "Points": [
            {
              "Y": 624,
              "X": 592
            },
            {
              "Y": 688,
              "X": 592
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "AnalogValue1.OutputPin",
            "Y": 592,
            "X": 960
          },
          "Name": "TOWELink7",
          "End": {
            "ID": "RampToValue1.InputPin",
            "Y": 592,
            "X": 1024
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "RampToValue1.OutputPin",
            "Y": 592,
            "X": 1136
          },
          "Name": "TOWELink2",
          "End": {
            "ID": "Arduino.Digital._Item3.AnalogInputPin",
            "Y": 592,
            "X": 1184
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DetectEdge1.OutputPin",
            "Y": 592,
            "X": 736
          },
          "Name": "TOWELink4",
          "End": {
            "ID": "AnalogValue1.Elements._Item0.InputPin",
            "Y": 624,
            "X": 816
          },
          "Points": [
            {
              "Y": 592,
              "X": 752
            },
            {
              "Y": 624,
              "X": 752
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DetectEdge2.OutputPin",
            "Y": 688,
            "X": 736
          },
          "Name": "TOWELink8",
          "End": {
            "ID": "AnalogValue1.Elements._Item1.InputPin",
            "Y": 656,
            "X": 816
          },
          "Points": [
            {
              "Y": 688,
              "X": 752
            },
            {
              "Y": 656,
              "X": 752
            }
          ]
        }
      ]
    }
  ],
  "Version": "2",
  "Content": "OpenWire Diagram",
  "Product": "Visuino Pro - Visual Arduino Programming"
}
