{
  "Config": {
    "Build": {
      "Board": "esp32:esp32:m5stick-c:PartitionScheme=default,UploadSpeed=1500000,DebugLevel=none,EraseFlash=none"
    }
  },
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Content": "OpenWire Diagram",
  "Units": [
    {
      "Type": "Diagram",
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 1120,
          "Name": "Arduino",
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "DigitalInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.HumidityThermometer1.SensorOutputPin"
                    }
                  },
                  "+": "TArduinoESP32CombinedPullDownAnalogDigitalDACChannel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalInterruptChannel"
                }
              ]
            },
            "+": "TArduinoBoard",
            "Modules": {
              "*": [
                {
                  "Ethernet": {
                    "HostName": ""
                  },
                  "HostName": "",
                  "+": "TArduinoESP32WiFiModule",
                  "ESPNow": {
                    "PrimaryKey": {
                      "_Data": ""
                    }
                  },
                  "AccessPoint": {
                    "SSID": "",
                    "Password": ""
                  }
                },
                {
                  "+": "TM5StackAtomESP32ButtonModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_InfraredRemoteTransmitterModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_GroveModule"
                },
                {
                  "Elements": {
                    "*": [
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [1]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin1"
                            }
                          ]
                        },
                        "Height": 0,
                        "+": "TArduinoColorGraphicsDrawRectangle",
                        "@": [
                          {
                            "PinName": "Modules.Item [ 4 ].Elements.Item [ 0 ].Height",
                            "@": "Height",
                            "+": "TOWCardinalSinkPinBinding",
                            "SourcePin": {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins.Pin [0]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource1.OutputPins._Pin0"
                            },
                            "Component": "Arduino"
                          }
                        ],
                        "Name": "Draw Rectangle1",
                        "Color": 4278222848,
                        "FillColor": 4278190080,
                        "Width": 2
                      },
                      {
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource2.OutputPins.Pin [1]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource2.OutputPins._Pin1"
                            }
                          ]
                        },
                        "Height": 0,
                        "+": "TArduinoColorGraphicsDrawRectangle",
                        "@": [
                          {
                            "PinName": "Modules.Item [ 4 ].Elements.Item [ 1 ].Height",
                            "@": "Height",
                            "+": "TOWCardinalSinkPinBinding",
                            "SourcePin": {
                              "Name": "__OpenWireRootUnit__.IntegerMultiSource2.OutputPins.Pin [0]",
                              "ID": "__OpenWireRootUnit__.IntegerMultiSource2.OutputPins._Pin0"
                            },
                            "Component": "Arduino"
                          }
                        ],
                        "X": 3,
                        "Name": "Draw Rectangle2",
                        "Color": 4278223103,
                        "Width": 2
                      }
                    ]
                  },
                  "Orientation": "goRight",
                  "+": "TArduinoESP32_M5Stack_Atom_RGBMatrixLedModule"
                },
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoESP32ProcessorModule"
                },
                {
                  "+": "TArduinoESP32HallSensorModule"
                },
                {
                  "DeviceName": "",
                  "+": "TArduinoESP32BluetoothLEModule"
                }
              ]
            },
            "BoardType": "M5 Stack ATOM Matrix"
          },
          "*": [],
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 512,
          "Name": "MapRange1",
          "Instance": {
            "InputRange": {
              "Max": 35,
              "Min": 0
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogToInteger1.InputPin"
                }
              ]
            },
            "+": "TArduinoMapRange",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.HumidityThermometer1.TemperatureOutputPin"
              }
            },
            "OutputRange": {
              "Max": 4,
              "Min": 0
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 592
        },
        {
          "X": 256,
          "Name": "HumidityThermometer1",
          "Instance": {
            "SensorOutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Digital[4].DigitalInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Digital._Item4.DigitalInputPin"
                }
              ]
            },
            "+": "TArduinoDHTSensor",
            "TemperatureOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.MapRange1.InputPin"
                }
              ]
            },
            "HumidityOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.MapRange2.InputPin"
                }
              ]
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 608
        },
        {
          "X": 656,
          "Name": "AnalogToInteger1",
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.MapRange1.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerMultiSource1.InputPin"
                }
              ]
            },
            "+": "TArduinoFloatToInteger"
          },
          "*": [],
          "Type": "Component",
          "Y": 592
        },
        {
          "X": 848,
          "Name": "IntegerMultiSource1",
          "Instance": {
            "OutputPins": {
              "Form": "__OpenWireRootUnit__",
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules..Elements.Draw Rectangle.HeightInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules.*._4.Elements.*._0.HeightInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Draw Rectangle.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules._Item4.Elements._Item0.ClockInputPin"
                    }
                  ]
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.AnalogToInteger1.OutputPin"
              }
            },
            "+": "TArduinoIntegerMultiSource"
          },
          "*": [],
          "Type": "Component",
          "Y": 560
        },
        {
          "X": 496,
          "Name": "MapRange2",
          "Instance": {
            "InputRange": {
              "Max": 100,
              "Min": 0
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogToInteger2.InputPin"
                }
              ]
            },
            "+": "TArduinoMapRange",
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.HumidityThermometer1.HumidityOutputPin"
              }
            },
            "OutputRange": {
              "Max": 4,
              "Min": 0
            }
          },
          "*": [],
          "Type": "Component",
          "Y": 720
        },
        {
          "X": 704,
          "Name": "AnalogToInteger2",
          "Instance": {
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.MapRange2.OutputPin"
              }
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.IntegerMultiSource2.InputPin"
                }
              ]
            },
            "+": "TArduinoFloatToInteger"
          },
          "*": [],
          "Type": "Component",
          "Y": 704
        },
        {
          "X": 864,
          "Name": "IntegerMultiSource2",
          "Instance": {
            "OutputPins": {
              "Form": "__OpenWireRootUnit__",
              "Pins": [
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules..Elements.Draw Rectangle.HeightInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules.*._4.Elements.*._1.HeightInputPin"
                    }
                  ]
                },
                {
                  "Type": "ptSource",
                  "SinkPins": [
                    {
                      "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Draw Rectangle.ClockInputPin",
                      "ID": "__OpenWireRootUnit__.Arduino.Modules._Item4.Elements._Item1.ClockInputPin"
                    }
                  ]
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.AnalogToInteger2.OutputPin"
              }
            },
            "+": "TArduinoIntegerMultiSource"
          },
          "*": [],
          "Type": "Component",
          "Y": 704
        }
      ]
    }
  ]
}
