var toolbox_esp32 = {
  "kind": "categoryToolbox",
  "contents": [
    {
      "kind": "category",
      "name": "%{BKY_CAT_ESP32}",
      "toolboxitemid": "ESP32",
      "levels": "1,2,3",
      "level": "1",
      "categorystyle": "esp32_category",
      "cssConfig": {
        "icon": "customIcon fas fa-play"
      },
            "contents": [
                {
                    "kind": "block",
                    "type": "ESP32_setup"
                },
                {
                    "kind": "sep",
                    "gap": 50
                },
                {
                "kind": "block",
                "blockxml": "<block type='input_digital_write_esp32'><value name='PIN'><shadow type='math_number_custom'><field name='NUM'>1</field></shadow></value></block>"
                },
                {
                    "kind": "block",
                    "type": "set_esp32"
                },
                {
                    "kind": "block",
                    "type": "serial_read_byte"
                },
                {
                    "kind": "block",
                    "type": "serial_begin"
                },
                // High
                {
                    "kind": "block",
                    "type": "inout_highlow"
                },
                {
                    "kind": "block",
                    // "type": "input_digital_read",
                    "blockxml": "<block type='input_digital_read'><value name='PIN'><shadow type='math_number_custom'><field name='NUM'>2</field></shadow></value></block>"
                },
                {
                    "kind": "block",
                    "type": "input_analog_read"
                },
                {
                    "kind": "block",
                    "blockxml": "<block type='serial_print'><value name='VALUE'><shadow type='text'><field name='TEXT'>Hello</field></shadow></value></block>"
                    // "type": "serial_print"
                },
                {
                    "kind": "block",
                    "type": "tone_generator"
                },
                {
                    "kind": "block",
                    "type": "no_tone"
                },
                {
                    "kind": "block",
                    "blockxml": "<block type='servo_control'><value name='DEGREE'><shadow type='math_number_custom'><field name='NUM'></field></shadow></value></block>"
                    // "type": "servo_control"
                },
                // {
                //     "kind": "block",
                //     "type": "servo_read"
                // },
                {
                    "kind": "sep",
                    "gap": 50
                },
                // DHT
                {
                    "kind": "block",
                    "type": "dht_sensor_setup"
                },
                {
                    "kind": "block",
                    "type": "dht_get_temperature"
                },
                {
                    "kind": "block",
                    "type": "dht_get_humidity"
                },
                {
                    "kind": "block",
                    "type": "dht_get_temperature_int"
                },
                {
                    "kind": "block",
                    "type": "dht_get_humidity_int"
                },
                {
                    "kind": "sep",
                    "gap": 50
                },
                // Sensor
                {
                    "kind": "block",
                    "blockxml": "<block type='ultrasonic_get_distance'><value name='TRIG_PIN'><shadow type='math_number_custom'><field name='NUM'></field></shadow></value><value name='ECHO_PIN'><shadow type='math_number_custom'><field name='NUM'></field></shadow></value></block>"
                    // "type": "ultrasonic_get_distance"
                },
                // PWM
                {
                    "kind": "block",
                    // "type": "set_pwm_output"
                    "blockxml": "<block type='set_pwm_output'><value name='PIN'><shadow type='math_number_custom'><field name='NUM'>5</field></shadow></value><value name='VALUE'><shadow type='math_number_custom'><field name='NUM'>128</field></shadow></value></block>"
                },
                {
                    "kind": "sep",
                    "gap": 50
                },
                {
                    "kind": "block",
                    "type": "Read_value_light"
                },
                {
                    "kind": "block",
                    "type": "read_sound_sensor"
                },
                {
                    "kind": "block",
                    "type": "fan_motor_control"
                },
                {
                    "kind": "block",
                    "type": "read_joystick_axis"
                },
                {
                    "kind": "block",
                    "type": "read_adkey"
                },
                {
                    "kind": "block",
                    "type": "init_rgb_led"
                },
                {
                    "kind": "block",
                    "type": "set_rgb_brightness"
                },
                {
                    "kind": "block",
                    "blockxml": "<block type='rgb_fill'><value name='COLOR'><shadow type='color_picker_rgb'><field name='COLOR'>#ff0000</field></shadow></value></block>"
                },
                {
                    "kind": "block",
                    "type": "rgb_refresh"
                },
                {
                    "kind": "block",
                    "type": "rgb_clear_all"
                },
            ]
    }
  ]
};
