lib: add button

This commit is contained in:
King Kévin 2024-01-03 13:44:47 +01:00
parent 7128536272
commit 20466125ee
4 changed files with 5613 additions and 0 deletions

View File

@ -36,3 +36,4 @@ library:
- oscillator/hc-49@sm
- connector/header-2.54@2x3
- mechanical/smd-button_hyp_1ts002e
- mechanical/smd-button_tx-1187a

File diff suppressed because it is too large Load Diff

View File

@ -1372,4 +1372,43 @@
)
)
)
(symbol "TS-1187A" (in_bom yes) (on_board yes)
(property "Reference" "J" (at 6.350 0.762 0)
(effects (font (size 1.27 1.27)) (justify bottom))
)
(property "Value" "TS-1187A" (at 6.350 -8.382 0)
(effects (font (size 1.27 1.27)) (justify top))
)
(property "Footprint" "qeda:MECHANICAL_TS-1187A" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "https://www.helloxkb.com/public/images/pdf/TS-1187A-X-X-X.pdf" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "dual tactical momentary switch, SMD 5.1*5.1*1.5mm" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "TS-1187A_1_1"
(rectangle (start 0.000 0.000) (end 12.700 -7.620)
(stroke (width 0.305) (type default))
(fill (type background))
)
(pin passive line (at -5.080 -2.540 0) (length 5.080)
(name "A" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.080 -5.080 0) (length 5.080)
(name "B" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 17.780 -2.540 180) (length 5.080)
(name "C" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 17.780 -5.080 180) (length 5.080)
(name "D" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
)
)
)

View File

@ -0,0 +1,34 @@
(module MECHANICAL_TS-1187A (layer F.Cu)
(attr smd)
(pad 1 smd rect (at -3.000 -1.875) (size 1.000 0.750) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 2 smd rect (at 3.000 -1.875) (size 1.000 0.750) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 3 smd rect (at -3.000 1.875) (size 1.000 0.750) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 4 smd rect (at 3.000 1.875) (size 1.000 0.750) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(fp_text reference REF** (at 0.000 0.000) (layer F.SilkS)
(effects (font (size 1.200 1.200) (thickness 0.200)))
)
(fp_line (start -2.650 -2.650) (end 2.650 -2.650) (layer F.SilkS) (width 0.200))
(fp_line (start 2.650 -1.200) (end 2.650 1.200) (layer F.SilkS) (width 0.200))
(fp_line (start 2.650 2.650) (end -2.650 2.650) (layer F.SilkS) (width 0.200))
(fp_line (start -2.650 -1.200) (end -2.650 1.200) (layer F.SilkS) (width 0.200))
(fp_circle (center 0.000 0.000) (end 0.000 0.500) (layer F.Fab) (width 0.100))
(fp_line (start -0.700 0.000) (end 0.700 0.000) (layer F.Fab) (width 0.100))
(fp_line (start 0.000 -0.700) (end 0.000 0.700) (layer F.Fab) (width 0.100))
(fp_text value MECHANICAL_TS-1187A (at 0.000 0.000 0) (layer F.Fab)
(effects (font (size 1.000 1.000) (thickness 0.100)))
)
(fp_text user REF** (at 0.000 0.000 0) hide (layer F.Fab)
(effects (font (size 1.000 1.000) (thickness 0.100)))
)
(fp_rect (start -2.550 -2.550) (end 2.550 2.550) (layer F.Fab) (width 0.100))
(fp_rect (start -3.750 -2.800) (end 3.750 2.800) (layer F.CrtYd) (width 0.050))
(model ../qeda.3dshapes/MECHANICAL_TS-1187A.stp
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz -90 0 -90))
)
)