var toolbox_arduino =
{
  "kind": "categoryToolbox",
  "contents": [
    {
      "kind": "category",
      "name": "%{BKY_CAT_BOARD}",
      "toolboxitemid": "BOARD",
      "level": "1",
      "levels": "1,2,3",
      "categorystyle": "arduino_category",
      "cssConfig": {
        "icon": "customIcon fas fa-microchip"
      },
      "contents": [
        {
          "kind": "category",
          "name": "%{BKY_CAT_BOARD_IO}",
          "level": "2",
          "levels": "1,2,3",
          "categorystyle": "arduino_category",
          "contents": [
            {
              "kind": "block",
              "type": "board_base_inout_buildin_led"
            },
            {
              "kind": "block",
              "type": "board_base_inout_digital_write"
            },
            {
              "kind": "block",
              "type": "board_base_inout_digital_read"
            },
            {
              "kind": "block",
              "type": "board_base_inout_highlow"
            },
            {
              "kind": "block",
              "blockxml": "<block type='board_base_inout_analog_write'><value name='PWM'> <shadow type='math_number'> <field name='NUM'>0</field> </shadow> </value></block>"
            },
            {
              "kind": "block",
              "type": "board_base_inout_analog_read"
            },
            {
              "kind": "block",
              "blockxml": "<block type='board_base_delay'><value name='DELAY_TIME'> <shadow type='math_number'> <field name='NUM'>1234</field> </shadow> </value></block>"
            },
            {
              "kind": "block",
              "type": "board_base_angle"
            },
            {
              "kind": "block",
              "blockxml": "<block type='board_base_map'><value name='Number'> <shadow type='math_number'> <field name='NUM'>250</field> </shadow> </value><value name='fromLow'> <shadow type='math_number'> <field name='NUM'>0</field> </shadow> </value><value name='fromHigh'> <shadow type='math_number'> <field name='NUM'>1023</field> </shadow> </value><value name='toLow'> <shadow type='math_number'> <field name='NUM'>0</field> </shadow> </value><value name='toHigh'> <shadow type='math_number'> <field name='NUM'>255</field> </shadow> </value></block>"
            },
            {
              "kind": "block",
              "blockxml": "<block type='board_base_inout_tone'><value name='NUM'> <shadow type='math_number'> <field name='NUM'>440</field> </shadow> </value></block>"
            },
            {
              "kind": "block",
              "type": "board_base_inout_notone"
            }
          ]
        },
        {
          "kind": "category",
          "name": "%{BKY_CAT_BOARD_SERIAL}",
          "level": "2",
          "levels": "1,2,3",
          "categorystyle": "arduino_category",
          "contents": [
            {
              "kind": "block",
              "blockxml": "<block type='text'><field name='TEXT'>some text</field></block>"
            },
            {
              "kind": "block",
              "type": "board_serial_init"
            },
            // {
            //   "kind": "block",
            //   "blockxml": "<block type='board_serial_printfor'><value name='CONTENT'> <shadow type='text'> <field name='TEXT'>Hello World!</field> </shadow> </value></block>"
            // },
            {
              "kind": "block",
              "blockxml": "<block type='board_serial_print'><value name='CONTENT'> <shadow type='text'> <field name='TEXT'>Hello World!</field> </shadow> </value></block>"
            },
            {
              "kind": "block",
              "type": "board_serial_available"
            },
            {
              "kind": "block",
              "type": "board_serial_read"
            },
            {
              "kind": "block",
              "blockxml": "<block type='board_serial_readStringUntil'><value name='CONTENT'> <shadow type='text'> <field name='TEXT'>\\n</field> </shadow> </value></block>"
            },
            {
              "kind": "block",
              "type": "board_serial_flush"
            }
          ]
        }
      ]
    }
  ]
};