File: optek.inc

package info (click to toggle)
pcb 20140316-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,212 kB
  • ctags: 16,012
  • sloc: ansic: 123,955; sh: 7,306; yacc: 5,087; pascal: 4,118; makefile: 1,559; perl: 552; lex: 438; awk: 157; lisp: 86; tcl: 63; xml: 20
file content (112 lines) | stat: -rw-r--r-- 3,153 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# -*- m4 -*-
#
#                            COPYRIGHT
#
#   PCB, interactive printed circuit board design
#   Copyright (C) 2007 Dan McMahill
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; version 2 of the License.
# 
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
# 
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# 
#   The symbols produced by this file may be used and redistributed 
#   without restriction as part of a PCB layout file.  Distribution 
#   of footprints produced by this file as part of a footprint
#   library is governed by the same license as this source file.
#

# Optek Specific Footprints -- see www.optekinc.com


# Surface mount LED lamps, Package "RA 2.8x1.2x.8"  for example part number OVSRWACR6

# $1: canonical name
# $2: name on PCB
# $3: value

define(`PKG_OPTEK_RA_2p8_1p2_0p8',
	`
	# pad width and length (1/100 mil)
	define(`PADW',  `eval(140 * 10000/254)')
	define(`PADL',  `eval(90 * 10000/254)')

	# pad center (X)  (1/100 mil)
	define(`PADC',  `eval(120 * 10000/254)')

	# x values for the pads
	define(`PX1', `eval(PADC - (PADL - PADW)/2)')
	define(`PX2', `eval(PADC + (PADL - PADW)/2)')

	# package width (1/100 mil)
	define(`PACKW', `39500')

	# package height (1/100 mil)
	define(`PACKH', `36000')

	# width of soldermask relief (5 mil on each side)
	define(`MASKW', `eval(PADL + 1000)')

	# silkscreen width (1/100 mils)
	define(`SILKW', `1000')

	# how much space to leave around the part before the
	# silk screen (1/100 mils)
	define(`SILKS', `800')

	# top edge silk
	define(`SXTOP', `eval( 50*10000/254 - SILKS - SILKW/2)')
	define(`SYTOP', `eval( -45 * 10000/254)')

	# bottom edge silk
	define(`SXBOT', `eval( 5500 + SILKS + SILKW/2 )')
	define(`SYBOT1', `eval( PADL/2 + SILKS + SILKW/2 )')
	define(`SYBOT2', `eval( -1400 + 4700 + SILKS + SILKW/2 )')

# Element [SFlags "Desc" "Name" "Value" MX MY TX TY TDir TScale TSFlags]
Element[ "" "`$1'" "`$2'" "`$3'" 0 0 0 0 0 100 ""]
(

# Pad [rX1 rY1 rX2 rY2 Thickness Clearance Mask "Name" "Number" SFlags]

# the pads
Pad[ -PX1 0 -PX2 0 PADL 1000 MASKW "K"  "1" "square"]
Pad[  PX1 0  PX2 0 PADL 1000 MASKW "A"  "2" "square"]


# Silk screen around package
# ElementLine[ x1 y1 x2 y2 width]

# top edge
ElementLine[ -SXTOP SYTOP SXTOP SYTOP SILKW ]

# left/right and bottom
ElementLine[ -SXBOT SYBOT1 -SXBOT SYBOT2 SILKW ]
ElementLine[  SXBOT SYBOT1  SXBOT SYBOT2 SILKW ]
ElementLine[ -SXBOT SYBOT2  SXBOT SYBOT2 SILKW ]

)')

# -------------------------------------------------------------------

# EXTRACT_BEGIN


#
##  OPTEK Surface Mount LED's
#

# See www.optekinc.com

define(`PKG_OPTEK_OVSRWACR6', `PKG_OPTEK_RA_2p8_1p2_0p8(`$1', `$2', `$3')')

# EXTRACT_END