{
  "Config": {
    "Build": {
      "Board": "esp32:esp32:m5stack_stickc:UploadSpeed=1500000,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=huge_app,DebugLevel=none,LoopCore=1,EventsCore=1,EraseFlash=none"
    }
  },
  "Units": [
    {
      "*": [
        {
          "Name": "Arduino",
          "Width": 272,
          "Instance": {
            "Digital": {
              "*": [
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedPullDownAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedTouchPullDownAnalogDigitalSPI0InterruptChannel"
                },
                {
                  "+": "TArduinoESP32CombinedPullDownAnalogDigitalDACChannel"
                },
                {
                  "OutputPin": {
                    "SinkPins": [
                      {
                        "ID": "__OpenWireRootUnit__.AveragePeriod1.InputPin"
                      },
                      {
                        "ID": "__OpenWireRootUnit__.Compare1.InputPin"
                      }
                    ]
                  },
                  "+": "TArduinoCombinedTouchPullUpPullOpenDrainDownAnalogDigitalInterruptChannel"
                }
              ]
            },
            "Modules": {
              "*": [
                {
                  "ESPNow": {
                    "PrimaryKey": {
                      "_Data": ""
                    }
                  },
                  "+": "TArduinoESP32WiFiModule"
                },
                {
                  "+": "TArduinoESP32MatterModule"
                },
                {
                  "+": "TM5StackAtomESP32ButtonModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_InfraredRemoteTransmitterModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_Atom_GroveModule"
                },
                {
                  "Elements": {
                    "*": [
                      {
                        "Name": "Fill Screen1",
                        "ClockInputPin": {
                          "SourcePins": [
                            {
                              "ID": "__OpenWireRootUnit__.DigitalToColor1.OutputPin"
                            }
                          ]
                        },
                        "@": [
                          {
                            "SourcePin": {
                              "ID": "__OpenWireRootUnit__.DigitalToColor1.OutputPin"
                            },
                            "@": "Color",
                            "Component": "Arduino",
                            "PinName": "Modules.Item [ 5 ].Elements.Item [ 0 ].Color",
                            "+": "TOWAlphaColorSinkPinBinding"
                          }
                        ],
                        "+": "TArduinoColorGraphicsElementFillScreen"
                      }
                    ]
                  },
                  "+": "TArduinoESP32_M5Stack_Atom_RGBMatrixLedModule"
                },
                {
                  "+": "TArduinoESP32_M5Stack_StickC_AccelerometerGyroscope"
                },
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "Operations": {
                    "*": [
                      {
                        "Period": 4294967295,
                        "Name": "Deep Sleep1",
                        "+": "TArduinoESP32ProcessorModuleDeepSleepOperation"
                      }
                    ]
                  },
                  "+": "TArduinoESP32ProcessorModule"
                },
                {
                  "+": "TArduinoESP32BluetoothLEModule"
                }
              ]
            },
            "Serial": {
              "*": [
                {
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.AveragePeriod1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoHardwareSerial"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "+": "TArduinoESP32_Generic_I2C_Atom"
                },
                {
                  "+": "TArduinoESP32_Generic_I2C_1_Atom"
                }
              ]
            },
            "BoardType": "M5 Stack ATOM Matrix",
            "+": "TArduinoBoard"
          },
          "X": 592,
          "Height": 1440,
          "Y": 256,
          "Type": "Component"
        },
        {
          "Name": "DigitalToColor1",
          "Width": 112,
          "Instance": {
            "TrueValue": 32768,
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.Arduino.Modules.*._5.Elements.*._0.ColorInputPin",
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.Elements.Fill Screen1.ColorInputPin"
                },
                {
                  "ID": "__OpenWireRootUnit__.Arduino.Modules._Item5.Elements._Item0.ClockInputPin",
                  "Name": "__OpenWireRootUnit__.Arduino.Modules.RGB Matrix.Elements.Fill Screen1.ClockInputPin"
                }
              ]
            },
            "FalseValue": 255,
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Compare1.OutputPin"
              }
            },
            "+": "TArduinoDigitalToColor"
          },
          "X": 384,
          "Height": 48,
          "Y": 1392,
          "Type": "Component"
        },
        {
          "Name": "Compare1",
          "Width": 96,
          "Instance": {
            "Value": 0.5,
            "CompareType": "ctSmallerOrEqual",
            "OutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.DigitalToColor1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.Arduino.Digital._Item5.OutputPin",
                "Name": "__OpenWireRootUnit__.Arduino.Digital.GPIO(Grove)[ 33 ].OutputPin"
              }
            },
            "+": "TArduinoCompareValue"
          },
          "X": 256,
          "Height": 48,
          "Y": 1392,
          "Type": "Component"
        }
      ],
      "Name": "__OpenWireRootUnit__",
      "Type": "Diagram",
      "Links": [
        {
          "Routed": true,
          "Begin": {
            "ID": "DigitalToColor1.OutputPin",
            "Y": 1424,
            "X": 496
          },
          "Name": "TOWELink2",
          "End": {
            "ID": "Arduino.Modules.*._5.Elements.*._0.ColorInputPin",
            "Y": 1424,
            "X": 592
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Compare1.OutputPin",
            "Y": 1424,
            "X": 352
          },
          "Name": "TOWELink3",
          "End": {
            "ID": "DigitalToColor1.InputPin",
            "Y": 1424,
            "X": 384
          }
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "DigitalToColor1.OutputPin",
            "Y": 1424,
            "X": 496
          },
          "Name": "TOWELink7",
          "End": {
            "ID": "Arduino.Modules._Item5.Elements._Item0.ClockInputPin",
            "Y": 1408,
            "X": 592
          },
          "Points": [
            {
              "Y": 1424,
              "X": 544
            },
            {
              "Y": 1408,
              "X": 544
            }
          ]
        },
        {
          "Routed": true,
          "Begin": {
            "ID": "Arduino.Digital._Item5.OutputPin",
            "Y": 560,
            "X": 864
          },
          "Name": "TOWELink5",
          "End": {
            "ID": "Compare1.InputPin",
            "Y": 1424,
            "X": 256
          },
          "Points": [
            {
              "Y": 560,
              "X": 944
            },
            {
              "Y": 1776,
              "X": 944
            },
            {
              "Y": 1776,
              "X": 240
            },
            {
              "Y": 1424,
              "X": 240
            }
          ]
        }
      ]
    }
  ],
  "Version": "2",
  "Content": "OpenWire Diagram",
  "Product": "Visuino Pro - Visual Arduino Programming"
}
