(footprint "RotaryEncoder_Bourns_Horizontal_PEC12R-2x17F-Sxxxx"
	(version 20241229)
	(generator "pcbnew")
	(generator_version "9.0")
	(layer "F.Cu")
	(descr "Bourns rotary encoder, PEC12R, with switch, horizontal shaft, 17mm shaft length, https://www.bourns.com/docs/product-datasheets/pec12r.pdf")
	(tags "rotary encoder")
	(property "Reference" "REF**"
		(at 4.7 2.5 270)
		(layer "F.SilkS")
	)
	(property "Value" "RotaryEncoder_Bourns_Horizontal_PEC12R-2x17F-Sxxxx"
		(at 0 12 0)
		(layer "F.Fab")
	)
	(property "Datasheet" ""
		(at 0 0 0)
		(unlocked yes)
		(layer "F.Fab")
		(hide yes)
	)
	(property "Description" ""
		(at 0 0 0)
		(unlocked yes)
		(layer "F.Fab")
		(hide yes)
	)
	(attr through_hole)
	(fp_text user "${REFERENCE}"
		(at 0.95 2.5 90)
		(layer "F.Fab")
	)
	(pad "A" thru_hole roundrect
		(at 0 0 270)
		(size 1.524 1.524)
		(drill 1)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
		(roundrect_rratio 0.1640419948)
	)
	(pad "B" thru_hole circle
		(at 0 5 270)
		(size 1.524 1.524)
		(drill 1)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
	)
	(pad "C" thru_hole circle
		(at 0 2.5 270)
		(size 1.524 1.524)
		(drill 1)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
	)
	(pad "S1" thru_hole circle
		(at 2.5 0 270)
		(size 1.524 1.524)
		(drill 1)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
	)
	(pad "S2" thru_hole circle
		(at 2.5 5 270)
		(size 1.524 1.524)
		(drill 1)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
	)
	(pad "SH" thru_hole roundrect
		(at 3.5 -3.95 180)
		(size 3.4 2.9)
		(drill oval 2.5 2.1
			(offset 0.2 0)
		)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
		(roundrect_rratio 0.25)
	)
	(pad "SH" thru_hole roundrect
		(at 3.5 8.95 180)
		(size 3.4 2.9)
		(drill oval 2.5 2.1
			(offset 0.2 0)
		)
		(layers "*.Cu" "*.Mask")
		(remove_unused_layers no)
		(roundrect_rratio 0.25)
	)
	(zone
		(net 0)
		(net_name "")
		(layer "F.Cu")
		(name "Shell contact")
		(hatch edge 0.5)
		(connect_pads
			(clearance 0)
		)
		(min_thickness 0.25)
		(filled_areas_thickness no)
		(keepout
			(tracks not_allowed)
			(vias not_allowed)
			(pads not_allowed)
			(copperpour not_allowed)
			(footprints not_allowed)
		)
		(placement
			(enabled no)
			(sheetname "")
		)
		(fill
			(thermal_gap 0.5)
			(thermal_bridge_width 0.5)
		)
		(polygon
			(pts
				(xy -0.35 -2.75) (xy -0.35 -4) (xy -1.85 -4) (xy -1.85 -2.75)
			)
		)
	)
	(zone
		(net 0)
		(net_name "")
		(layer "F.Cu")
		(name "Shell contact")
		(hatch edge 0.5)
		(connect_pads
			(clearance 0)
		)
		(min_thickness 0.25)
		(filled_areas_thickness no)
		(keepout
			(tracks not_allowed)
			(vias not_allowed)
			(pads not_allowed)
			(copperpour not_allowed)
			(footprints not_allowed)
		)
		(placement
			(enabled no)
			(sheetname "")
		)
		(fill
			(thermal_gap 0.5)
			(thermal_bridge_width 0.5)
		)
		(polygon
			(pts
				(xy -0.35 9) (xy -0.35 7.75) (xy -1.85 7.75) (xy -1.85 9)
			)
		)
	)
	(zone
		(net 0)
		(net_name "")
		(layer "F.Cu")
		(name "Shell contact")
		(hatch edge 0.5)
		(connect_pads
			(clearance 0)
		)
		(min_thickness 0.25)
		(filled_areas_thickness no)
		(keepout
			(tracks not_allowed)
			(vias not_allowed)
			(pads not_allowed)
			(copperpour not_allowed)
			(footprints not_allowed)
		)
		(placement
			(enabled no)
			(sheetname "")
		)
		(fill
			(thermal_gap 0.5)
			(thermal_bridge_width 0.5)
		)
		(polygon
			(pts
				(xy 6 -2.75) (xy 6 -4) (xy 5 -4) (xy 5 -2.75)
			)
		)
	)
	(zone
		(net 0)
		(net_name "")
		(layer "F.Cu")
		(name "Shell contact")
		(hatch edge 0.5)
		(connect_pads
			(clearance 0)
		)
		(min_thickness 0.25)
		(filled_areas_thickness no)
		(keepout
			(tracks not_allowed)
			(vias not_allowed)
			(pads not_allowed)
			(copperpour not_allowed)
			(footprints not_allowed)
		)
		(placement
			(enabled no)
			(sheetname "")
		)
		(fill
			(thermal_gap 0.5)
			(thermal_bridge_width 0.5)
		)
		(polygon
			(pts
				(xy 6 9) (xy 6 7.75) (xy 5 7.75) (xy 5 9)
			)
		)
	)
	(embedded_fonts no)
	(model "${KICAD9_3DMODEL_DIR}/Rotary_Encoder.3dshapes/RotaryEncoder_Bourns_Horizontal_PEC12R-2x17F-Sxxxx.wrl"
		(offset
			(xyz 0 0 0)
		)
		(scale
			(xyz 1 1 1)
		)
		(rotate
			(xyz 0 0 0)
		)
	)
)
