Headers

Straight pin header

roll
MB1
pan
MB2
zoom
MB3
rotate
shift+MB1

Straight pin header.

"""Example usage of CadQuery Electronics pin header."""

from cq_electronics.connectors.headers import PinHeader

pin_header = PinHeader(rows=2, columns=10, simple=False)
result = pin_header.cq_object

if "show_object" in locals():
    show_object(result, name="pin_header")  # type: ignore[name-defined] # noqa: F821
class connectors.headers.PinHeader(rows: int = 1, columns: int = 1, above: float = 7, below: float = 3, *, simple: bool = True)

Straight pin header.

Parameters:
  • rows (int, optional) – Number of pin rows.

  • columns (int, optional) – Number of pin columns.

  • above (float, optional, defaults to 7 mm) – Length of pin above base.

  • below (float, optional, defaults to 3 mm) – Length of pin below base.

  • simple (bool, optional, defaults to True) – Create shape with reduced detail.

BASE_HEIGHT = 2.4

Height of insulating base.

PIN_CHAMFER = 0.2

Chamfer on ends of pins.

PITCH = 2.54

Pin pitch.