2 * Copyright © 2013 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 process_clearance = 0.26;
23 real package_width = 5;
24 real package_height = 5;
25 real pad_spacing = 0.5; /* P */
26 real pad_height = 0.85; /* C */
27 real pad_width = 0.27; /* D */
28 real pad_center_x = 5.25 / 2; /* Gx/2 */
29 real pad_center_y = 5.25 / 2; /* Gy/2 */
31 real center_width = 3.75; /* SLx */
32 real center_height = 3.75; /* SLy */
34 real center_drill = process_drill;
35 real center_copper = process_ring;
36 real center_mask = 0.60 / 2;
38 real center_space = 1.1;
40 int num_pad = 8; /* per side */
43 return pad_spacing * (n - (num_pad - 1) / 2);
46 element_start("hvqfn33");
48 for (int pad = 0; pad < num_pad; pad++) {
55 sprintf("%d", pad + 1),
56 sprintf("%d", pad + 1));
64 sprintf("%d", pad + 9),
65 sprintf("%d", pad + 9));
73 sprintf("%d", pad + 17),
74 sprintf("%d", pad + 17));
82 sprintf("%d", pad + 25),
83 sprintf("%d", pad + 25));
88 center_pad((center_t) {
91 .width = center_width,
92 .height = center_height,
99 rect(-package_width/2, -package_height/2, package_width, package_height);
102 dot_x = -package_width/2 - dot_off;
103 dot_y = -package_height/2 - dot_off;
105 line(dot_x, dot_y, dot_x, dot_y);