2 * Copyright © 2018 Bdale Garbee <bdale@gag.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, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 real pad_width = 0.48;
22 real pad_height = 0.32;
23 real pad_one_height = 0.45;
24 real pad_spacing = 0.50; /* center to center, along the pads */
25 real pad_center = 3.30 - pad_width; /* center to center, across the part */
27 real center_width = 2.10;
28 real center_height = 2.86;
30 real package_width = 3;
31 real package_height = 3;
33 real pad_x_off = pad_center / 2;
35 real num_pad = 6; /* per side */
37 element_start("506CD");
40 return pad_spacing * (n - (num_pad - 1) / 2);
46 line(-package_width/2 + dot_off, -package_height/2 + dot_off,
47 -package_width/2 + dot_off, -package_height/2 + dot_off);
50 for (int pad = 0; pad < num_pad; pad++) {
55 pad_off(pad) - (pad_one_height - pad_height)/2,
65 sprintf("%d", pad + 1),
66 sprintf("%d", pad + 1));
75 sprintf("%d", pad + num_pad + 1),
76 sprintf("%d", pad + num_pad + 1));