{
  "Config": {
    "Build": {
      "Board": "esp32:esp32:esp32c3:UploadSpeed=921600,CDCOnBoot=default,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=no_fs,DebugLevel=none,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default"
    }
  },
  "Units": [
    {
      "Name": "__OpenWireRootUnit__",
      "Selection": [
        "FormattedText1"
      ],
      "Links": [
        {
          "Routed": true,
          "Begin": {
            "ID": "FormattedText1.OutputPin",
            "Y": 1040,
            "X": 1360
          },
          "Name": "TOWELink1",
          "End": {
            "ID": "Arduino.Modules._Item8.Elements._Item1.InputPin",
            "Y": 1040,
            "X": 1408
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "PulseGenerator1.OutputPin",
            "Y": 1024,
            "X": 736
          },
          "Name": "TOWELink2",
          "End": {
            "ID": "Counter1.InputPin",
            "Y": 1008,
            "X": 864
          },
          "Points": [
            {
              "Y": 1024,
              "X": 752
            },
            {
              "Y": 1008,
              "X": 752
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Counter1.OutputPin",
            "Y": 1072,
            "X": 992
          },
          "Name": "TOWELink3",
          "End": {
            "ID": "DivideByValue1.InputPin",
            "Y": 1072,
            "X": 1024
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DivideByValue1.OutputPin",
            "Y": 1072,
            "X": 1136
          },
          "Name": "TOWELink4",
          "End": {
            "ID": "FormattedText1.Elements._Item0.InputPin",
            "Y": 1072,
            "X": 1216
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Counter2.OutputPin",
            "Y": 1232,
            "X": 992
          },
          "Name": "TOWELink5",
          "End": {
            "ID": "FormattedText1.Elements._Item1.InputPin",
            "Y": 1104,
            "X": 1216
          },
          "Points": [
            {
              "Y": 1232,
              "X": 1136
            },
            {
              "Y": 1104,
              "X": 1136
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "PulseGenerator1.OutputPin",
            "Y": 1024,
            "X": 736
          },
          "Name": "TOWELink6",
          "End": {
            "ID": "Counter2.InputPin",
            "Y": 1168,
            "X": 864
          },
          "Points": [
            {
              "Y": 1024,
              "X": 752
            },
            {
              "Y": 1168,
              "X": 752
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Arduino.Modules._Item6.OutputPin",
            "Y": 1264,
            "X": 1680
          },
          "Name": "TOWELink7",
          "End": {
            "ID": "Button1.InputPin",
            "Y": 1072,
            "X": 256
          },
          "Points": [
            {
              "Y": 1264,
              "X": 1760
            },
            {
              "Y": 176,
              "X": 1760
            },
            {
              "Y": 176,
              "X": 240
            },
            {
              "Y": 1072,
              "X": 240
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Button1.OutputPin",
            "Y": 1072,
            "X": 336
          },
          "Name": "TOWELink8",
          "End": {
            "ID": "TFlipFlop1.ClockInputPin",
            "Y": 1072,
            "X": 384
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "TFlipFlop1.OutputPin",
            "Y": 1024,
            "X": 560
          },
          "Name": "TOWELink9",
          "End": {
            "ID": "PulseGenerator1.EnabledInputPin",
            "Y": 1024,
            "X": 608
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "TFlipFlop1.OutputPin",
            "Y": 1024,
            "X": 560
          },
          "Name": "TOWELink10",
          "End": {
            "ID": "DetectEdge1.InputPin",
            "Y": 928,
            "X": 640
          },
          "Points": [
            {
              "Y": 1024,
              "X": 576
            },
            {
              "Y": 928,
              "X": 576
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DetectEdge1.OutputPin",
            "Y": 928,
            "X": 736
          },
          "Name": "TOWELink11",
          "End": {
            "ID": "Counter1.ResetInputPin",
            "Y": 1024,
            "X": 864
          },
          "Points": [
            {
              "Y": 928,
              "X": 800
            },
            {
              "Y": 1024,
              "X": 800
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DetectEdge1.OutputPin",
            "Y": 928,
            "X": 736
          },
          "Name": "TOWELink12",
          "End": {
            "ID": "Counter2.ResetInputPin",
            "Y": 1184,
            "X": 864
          },
          "Points": [
            {
              "Y": 928,
              "X": 800
            },
            {
              "Y": 1184,
              "X": 800
            }
          ]
        }
      ],
      "*": [
        {
          "Name": "Arduino",
          "Width": 272,
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoPullDownDigitalPWMInterruptChannel"
                }
              ]
            },
            "Modules": {
              "*": [
                {
                  "ESPNow": {
                    "PrimaryKey": {
                      "_Data": ""
                    }
                  },
                  "+": "TArduinoESP32WiFiModule"
                },
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoESP32_C3ProcessorModule"
                },
                {
                  "+": "TArduinoESP32BluetoothLENoSecurityModule"
                },
                {
                  "+": "TArduinoESP32C3_CanBusModule"
                },
                {
                  "+": "TArduinoESP32MatterModule"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.Button1.InputPin"
                      }
                    ]
                  },
                  "+": "TArduinoESP_C3_BootButtonModule"
                },
                {
                  "+": "TArduinoESP32_C3_DIYMore_0_42_OLED_Board_LEDModule"
                },
                {
                  "Contrast": 0.566162109375,
                  "Elements": {
                    "*": [
                      {
                        "Text": "Stopwatch",
                        "Name": "Draw Text1",
                        "+": "TArduinoMonochromeGraphicsElementDrawText"
                      },
                      {
                        "Size": 2,
                        "Name": "Text Field1",
                        "Y": 15,
                        "InputPin": {
                          "SourcePin": {
                            "ID": "__OpenWireRootUnit__.FormattedText1.OutputPin"
                          }
                        },
                        "+": "TArduinoMonochromeGraphicsElementTextFeld"
                      }
                    ]
                  },
                  "+": "TArduinoESP32_C3_DIYMore_0_42_OLED_Display_Module"
                }
              ]
            },
            "I2SChannels": {
              "*": [
                {
                  "+": "TArduino_ESP32_C3_I2SPDM"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "+": "TArduinoESP32_C3_DIYMore_0_42_OLED_I2C"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoESP32_C3_DIYMore_0_42_OLED_SPI"
                },
                {
                  "+": "TArduinoESP32_C3_DIYMore_0_42_OLED_SPI1"
                },
                {
                  "+": "TArduinoESP32_C3_DIYMore_0_42_OLED_SPI2"
                }
              ]
            },
            "BoardType": "DIY More ESP32 C3 0.42\" OLED",
            "+": "TArduinoBoard"
          },
          "X": 1408,
          "Height": 1904,
          "Y": 256,
          "Type": "Component"
        },
        {
          "Name": "FormattedText1",
          "Width": 144,
          "Instance": {
            "Text": "%0:%1",
            "Elements": {
              "*": [
                {
                  "InitialValue": "11",
                  "Name": "TextElement1",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DivideByValue1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoFormattedTextElementText"
                },
                {
                  "InitialValue": "32",
                  "Name": "TextElement2",
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.Counter2.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoFormattedTextElementText"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item8.Elements._Item1.InputPin",
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.Display.Elements.Text Field1.InputPin"
                }
              ]
            },
            "+": "TArduinoFormattedText"
          },
          "X": 1216,
          "Height": 144,
          "Y": 1008,
          "Type": "Component"
        },
        {
          "Name": "PulseGenerator1",
          "Width": 128,
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.InputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.Counter2.InputPin"
                }
              ]
            },
            "@": [
              {
                "SourcePin": {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.OutputPin"
                },
                "@": "Enabled",
                "Component": "PulseGenerator1",
                "PinName": "Enabled",
                "+": "TOWBooleanSinkPinBinding"
              }
            ],
            "+": "TArduinoPulseGenerator"
          },
          "X": 608,
          "Height": 64,
          "Y": 992,
          "Type": "Component"
        },
        {
          "Name": "Counter1",
          "Width": 128,
          "Instance": {
            "ResetInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.PulseGenerator1.OutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.DivideByValue1.InputPin"
                }
              ]
            },
            "+": "TArduinoCounter"
          },
          "X": 864,
          "Height": 112,
          "Y": 976,
          "Type": "Component"
        },
        {
          "Name": "DivideByValue1",
          "Width": 112,
          "Instance": {
            "+": "TArduinoIntegerDivideByValue",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Counter1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item0.InputPin",
                  "Name": "__OpenWireRootUnit__.FormattedText1.Elements.TextElement1.InputPin"
                }
              ]
            },
            "Value": 60
          },
          "X": 1024,
          "Height": 48,
          "Y": 1040,
          "Type": "Component"
        },
        {
          "Name": "Counter2",
          "Width": 128,
          "Instance": {
            "Min": {
              "Value": 0
            },
            "Max": {
              "Value": 59
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.FormattedText1.Elements._Item1.InputPin",
                  "Name": "__OpenWireRootUnit__.FormattedText1.Elements.TextElement2.InputPin"
                }
              ]
            },
            "ResetInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.OutputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.PulseGenerator1.OutputPin"
                }
              ]
            },
            "+": "TArduinoCounter"
          },
          "X": 864,
          "Height": 112,
          "Y": 1136,
          "Type": "Component"
        },
        {
          "Name": "Button1",
          "Width": 80,
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Arduino.Modules._Item6.OutputPin",
                "Name": "__OpenWireRootUnit__.Arduino.Modules.Button.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.TFlipFlop1.ClockInputPin"
                }
              ]
            },
            "+": "TArduinoButton"
          },
          "X": 256,
          "Height": 48,
          "Y": 1040,
          "Type": "Component"
        },
        {
          "Name": "TFlipFlop1",
          "Width": 176,
          "Instance": {
            "ClockInputPin": {
              "SourcePins": [
                {
                  "ID": "__OpenWireRootUnit__.Button1.OutputPin"
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.PulseGenerator1.EnabledInputPin",
                  "Name": "__OpenWireRootUnit__.PulseGenerator1.Enabled"
                },
                {
                  "ID": "__OpenWireRootUnit__.DetectEdge1.InputPin"
                }
              ]
            },
            "+": "TArduinoTFlipFlop"
          },
          "X": 384,
          "Height": 96,
          "Y": 992,
          "Type": "Component"
        },
        {
          "Name": "DetectEdge1",
          "Width": 96,
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.TFlipFlop1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Counter1.ResetInputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.Counter2.ResetInputPin"
                }
              ]
            },
            "+": "TArduinoDetectEdge"
          },
          "X": 640,
          "Height": 48,
          "Y": 896,
          "Type": "Component"
        }
      ],
      "Type": "Diagram"
    }
  ],
  "Version": "2",
  "Content": "OpenWire Diagram",
  "Product": "Visuino Pro - Visual Arduino Programming"
}
