mirror of
git://projects.qi-hardware.com/kicad-libs.git
synced 2024-11-22 01:49:43 +02:00
modules/rev-led.fpd: reverse-mounted LEDs (just 1206 for now)
Examples: LTST-C230, APTR3216EC
This commit is contained in:
parent
ffe4f32d3d
commit
ab61cf9bec
1
AUTHORS
1
AUTHORS
@ -121,6 +121,7 @@ Werner Almesberger <werner@almesberger.net>
|
||||
modules/1059.fpd
|
||||
modules/0805-6.fpd
|
||||
modules/df40.fpd
|
||||
modules/rev-led.fpd
|
||||
|
||||
Xiangfu <xiangfu@openmobilefree.net>
|
||||
|
||||
|
@ -332,6 +332,8 @@ Discrete_2P
|
||||
LEDSMD-0603R
|
||||
SOD-123
|
||||
SOD-323
|
||||
LED-Reverse
|
||||
LED-1206-REV
|
||||
Crystal
|
||||
xtal2-3.2mmx1.5mm
|
||||
xtal2-11.5mmx4.83mm
|
||||
|
@ -11,7 +11,7 @@ MODULES=0805-6 1059 8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
|
||||
mic-ra-dip mini-usb\
|
||||
pads pads-array phonejack pogo \
|
||||
qfn qfp \
|
||||
rca-3-ra rj45 \
|
||||
rca-3-ra rev-led rj45 \
|
||||
sod soic sot23 spacer sot sot-323 ssop stdpass sw-spdt-smt \
|
||||
tactile-sw-spst-ra-dip to tsop tssop5 tswa \
|
||||
usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt usb_a_rcpt_smt \
|
||||
|
46
modules/rev-led.fpd
Normal file
46
modules/rev-led.fpd
Normal file
@ -0,0 +1,46 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame marker {
|
||||
set gap = 0.3mm
|
||||
|
||||
__0: vec @(Hx/2+Px+gap+w/2, 0mm)
|
||||
__1: vec .(0mm, Py/2)
|
||||
__2: vec __0(0mm, -Py/2)
|
||||
line __1 . w
|
||||
}
|
||||
|
||||
frame hole {
|
||||
__0: vec @(Hx/2, Hy/2)
|
||||
__1: vec @(-Hx/2, -Hy/2)
|
||||
rect . __0 w
|
||||
}
|
||||
|
||||
frame pads {
|
||||
table
|
||||
{ n, dx }
|
||||
{ 1, -1 }
|
||||
{ 2, 1 }
|
||||
|
||||
__0: vec @(Hx/2*dx, 0mm)
|
||||
__1: vec .(Px*dx, Py/2)
|
||||
__2: vec __0(0mm, -Py/2)
|
||||
pad "$n" __1 .
|
||||
}
|
||||
|
||||
package "LED-$size-REV"
|
||||
unit mm
|
||||
|
||||
table
|
||||
{ size, Px, Py, Hx, Hy }
|
||||
{ 1206, 1.5mm, 1.6mm, 5.1mm-2*Px, 2.3mm }
|
||||
|
||||
set w = 5mil
|
||||
|
||||
frame hole @
|
||||
frame pads @
|
||||
frame marker @
|
||||
measx hole.__1 >> hole.__0 -0.5mm
|
||||
measy hole.__1 >> hole.__0 Px+1mm
|
||||
measy pads.__2 -> pads.__1 Px+0.5mm
|
||||
measx pads.__1 -> pads.__2 0.5mm
|
||||
measx pads.__1 >> pads.__1 1mm
|
Loading…
Reference in New Issue
Block a user