export const hbridgeMotorCategory = {
  kind: 'category',
  name: 'H-Bridge Motor',
  colour: '30',
  contents: [
    // Single motor
    { kind: 'block', type: 'hbridge_motor_init' },
    {
      kind: 'block',
      type: 'hbridge_motor_speed',
      inputs: {
        SPEED: { shadow: { type: 'math_number', fields: { NUM: 200 } } },
      },
    },
    { kind: 'block', type: 'hbridge_motor_stop' },
    // Dual motor
    { kind: 'block', type: 'hbridge_dual_init' },
    {
      kind: 'block',
      type: 'hbridge_dual_speed',
      inputs: {
        LEFT: { shadow: { type: 'math_number', fields: { NUM: 200 } } },
        RIGHT: { shadow: { type: 'math_number', fields: { NUM: 200 } } },
      },
    },
    { kind: 'block', type: 'hbridge_dual_forward' },
    { kind: 'block', type: 'hbridge_dual_backward' },
    { kind: 'block', type: 'hbridge_dual_left' },
    { kind: 'block', type: 'hbridge_dual_right' },
    {
      kind: 'block',
      type: 'hbridge_dual_forward_x_seconds',
      inputs: {
        SECS: { shadow: { type: 'math_number', fields: { NUM: 1 } } },
      },
    },
    {
      kind: 'block',
      type: 'hbridge_dual_backward_x_seconds',
      inputs: {
        SECS: { shadow: { type: 'math_number', fields: { NUM: 1 } } },
      },
    },
    {
      kind: 'block',
      type: 'hbridge_dual_left_x_seconds',
      inputs: {
        SECS: { shadow: { type: 'math_number', fields: { NUM: 1 } } },
      },
    },
    {
      kind: 'block',
      type: 'hbridge_dual_right_x_seconds',
      inputs: {
        SECS: { shadow: { type: 'math_number', fields: { NUM: 1 } } },
      },
    },
    { kind: 'block', type: 'hbridge_dual_stop' },
  ],
};
