{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "APM-cheap_pin_control_declare",
        "id": "?(Ld8g@A`tgj`5H4DaQ{",
        "x": 313,
        "y": 263,
        "fields": {
          "pin_label": "引脚1",
          "pin_name": "A",
          "mode": "OUT",
          "pull": "PULL_DOWN"
        },
        "next": {
          "block": {
            "type": "controls_whileUntil",
            "id": "DT@H70[ov|3ANmq0BA[j",
            "fields": {
              "MODE": "WHILE"
            },
            "inputs": {
              "BOOL": {
                "block": {
                  "type": "logic_boolean",
                  "id": "[i7bKI~Wc:aS#N..gM4m",
                  "fields": {
                    "BOOL": "TRUE"
                  }
                }
              },
              "DO": {
                "block": {
                  "type": "controls_if",
                  "id": "P-VrcrcLBi;gTgIg_mvW",
                  "extraState": {
                    "elseIfCount": 1
                  },
                  "inputs": {
                    "IF0": {
                      "block": {
                        "type": "logic_operation",
                        "id": "?d4jBBHo@zf?*VbFvfu$",
                        "fields": {
                          "OP": "AND"
                        },
                        "inputs": {
                          "A": {
                            "block": {
                              "type": "APM-cheap_get_button",
                              "id": ")[P`@gr4E5vspgUj{-,O",
                              "fields": {
                                "button_name": "M"
                              }
                            }
                          },
                          "B": {
                            "block": {
                              "type": "logic_compare",
                              "id": "y0`A]z9e1s._,z595}C,",
                              "fields": {
                                "OP": "EQ"
                              },
                              "inputs": {
                                "A": {
                                  "block": {
                                    "type": "variables_get",
                                    "id": "/_O(c~JthEyMB?sNQ6FR",
                                    "fields": {
                                      "VAR": {
                                        "id": ":+|HZ.)*_;UCgKLKgx6S"
                                      }
                                    }
                                  }
                                },
                                "B": {
                                  "block": {
                                    "type": "math_number",
                                    "id": "pyrr=4+-eN?sT+EPAblK",
                                    "fields": {
                                      "NUM": 1
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "DO0": {
                      "block": {
                        "type": "APM-cheap_pin_control_toggle",
                        "id": "M|$OZ?pb`~y7pMqYS|AU",
                        "fields": {
                          "pin_name": "引脚1"
                        },
                        "next": {
                          "block": {
                            "type": "variables_set",
                            "id": "ej,fE+O~Egxrbj^f)Xyh",
                            "fields": {
                              "VAR": {
                                "id": ":+|HZ.)*_;UCgKLKgx6S"
                              }
                            },
                            "inputs": {
                              "VALUE": {
                                "block": {
                                  "type": "math_number",
                                  "id": "Q:.dF$9d:rJJs(9%,c=W",
                                  "fields": {
                                    "NUM": 0
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "IF1": {
                      "block": {
                        "type": "logic_negate",
                        "id": "6l^qtL{~{,g{zMf*=fqu",
                        "inputs": {
                          "BOOL": {
                            "block": {
                              "type": "APM-cheap_get_button",
                              "id": "~^-6V{8?#0lcN6o1eGJM",
                              "fields": {
                                "button_name": "M"
                              }
                            }
                          }
                        }
                      }
                    },
                    "DO1": {
                      "block": {
                        "type": "variables_set",
                        "id": ")o/xiF1c}^2L{KmI1^U1",
                        "fields": {
                          "VAR": {
                            "id": ":+|HZ.)*_;UCgKLKgx6S"
                          }
                        },
                        "inputs": {
                          "VALUE": {
                            "block": {
                              "type": "math_number",
                              "id": "3ok}O1a:B8.s]vgrfAIm",
                              "fields": {
                                "NUM": 1
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    ]
  },
  "variables": [
    {
      "name": "左Y",
      "id": "249v9dyda!VkI_*xe=g;"
    },
    {
      "name": "右Y",
      "id": "B_OumMZ9}!,:TWy0Q=9N"
    },
    {
      "name": "save",
      "id": ":+|HZ.)*_;UCgKLKgx6S"
    },
    {
      "name": "功率测试",
      "id": "Qsjp|I,f(R!VN~$DHtk#"
    },
    {
      "name": "timer",
      "id": "j)pO9I8D_MfI^:z!`.,X"
    },
    {
      "name": "auto_lift",
      "id": "yfg}F}w2!;sbs)67Q,rv"
    },
    {
      "name": "ligt_mod",
      "id": "nK*;VTEK6h*p_gb9tAkx"
    },
    {
      "name": "锁死",
      "id": "BNX_(dx*+bS+4d95JKPE"
    }
  ]
}