export const neopixelCategory = {
  kind: 'category',
  name: 'NeoPixel',
  colour: '10',
  contents: [
    { kind: 'block', type: 'neopixel_init' },
    {
      kind: 'block',
      type: 'colour_rgb',
      inputs: {
        R: { shadow: { type: 'math_number', fields: { NUM: 255 } } },
        G: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
        B: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
      },
    },
    {
      kind: 'block',
      type: 'tuple_create_3',
      inputs: {
        A: { shadow: { type: 'math_number', fields: { NUM: 255 } } },
        B: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
        C: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
      },
    },
    {
      kind: 'block',
      type: 'tuple_index',
      inputs: {
        TUPLE: {
          shadow: {
            type: 'tuple_create_3',
            inputs: {
              A: { shadow: { type: 'math_number', fields: { NUM: 255 } } },
              B: { shadow: { type: 'math_number', fields: { NUM: 128 } } },
              C: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
            },
          },
        },
      },
    },
    {
      kind: 'block',
      type: 'neopixel_set_color',
      inputs: {
        INDEX: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
        COLOR: {
          shadow: {
            type: 'colour_rgb',
            inputs: {
              R: { shadow: { type: 'math_number', fields: { NUM: 255 } } },
              G: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
              B: { shadow: { type: 'math_number', fields: { NUM: 0 } } },
            },
          },
        },
      },
    },
    { kind: 'block', type: 'neopixel_show' },
  ],
};
