var toolbox_arduino_blocks = {
    "kind": "categoryToolbox",
    "contents": [
        {
            "kind": "category",
            "name": "%{BKY_CAT_ARDUINO_BLOCKS}",
            "toolboxitemid": "Arduino Blocks",
            "levels": "1,2,3",
            "level": "1",
            "categorystyle": "arduino_blocks_category",
            "cssConfig": {
                // "icon": "customIcon fas fa-microchip"
                "icon": "customIcon fas fa-play",
            },
            "contents": [
                {
                    "kind": "block",
                    "type": "arduino_setup"
                },
                {
                    "kind": "sep",
                    "gap": 50
                },
                {
                    "kind": "block",
                    "type": "serial_read_byte"
                },
                {
                    "kind": "block",
                    "type": "serial_begin"
                },
                // High
                {
                    "kind": "block",
                    "type": "inout_highlow"
                },
                {
                "kind": "block",
                "blockxml": "<block type='input_digital_write_arduino'><value name='PIN'><shadow type='math_number_custom'><field name='NUM'>1</field></shadow></value></block>"
                },
                {
                    "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
                },
                // LCD 
                {
                    "kind": "block",
                    "type": "lcd_config"
                },
                {
                    "kind": "block",
                    "blockxml": "<block type='lcd_set_cursor'><value name='COL'><shadow type='math_number_custom'><field name='NUM'></field></shadow></value><value name='ROW'><shadow type='math_number_custom'><field name='NUM'></field></shadow></value></block>"
                    // "type": "lcd_set_cursor"
                },
                {
                    "kind": "block",
                    "blockxml": "<block type='lcd_show_text'><value name='TEXT'><shadow type='text'><field name='TEXT'></field></shadow></value></block>"
                    // "type": "lcd_show_text"
                },
                {
                    "kind": "block",
                    "type": "lcd_show_cursor"
                },
                {
                    "kind": "block",
                    "type": "lcd_hide_cursor"
                },
                {
                    "kind": "block",
                    "type": "lcd_blink_cursor_on"
                },
                {
                    "kind": "block",
                    "type": "lcd_blink_cursor_off"
                },
                {
                    "kind": "block",
                    "type": "lcd_clear"
                },
                {
                    "kind": "block",
                    "type": "built_in_led"
                },
                {
                    "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": "set_esp01x"
                },
                {
                    "kind": "block",
                    "type": "init_esp01x_port"
                },
                {
                    "kind": "block",
                    "type": "read_esp01x_data"
                },
                {
                    "kind": "block",
                    "type": "get_esp01x_ip_address"
                },
                {
                    "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"
                },
                {
                    "kind": "sep",
                    "gap": 50
                },           
                {
                    "kind": "block",
                    "type": "rfid_spi_init"
                },
                {
                    "kind": "block",
                    "type": "rfid_read_card_value"
                },
                {
                    "kind": "block",
                    "type": "bmp180_init"
                },
                // {
                //     "kind": "block",
                //     "type": "bmp180_read"
                // },
                {
                    "kind": "block",
                    "type": "bmp180_show_data"
                },
                {
                    "kind": "block",
                    "type": "qmc5883l_init"
                },
                {
                    "kind": "block",
                    "type": "qmc5883l_read"
                },
                {
                    "kind": "block",
                    "type": "qmc5883l_read_field"
                },
                // {
                //     "kind": "block",
                //     "type": "ak8975c_read_angle"
                // },
                {
                    "kind": "block",
                    "type": "pir_motion_sensor"
                },
                
            
            ]
        }
    ]
};
