push-push microSD connector chosen for quantimotor
[hw/altusmetrum] / packages / TO252.5c
1 /*
2  * Copyright © 2015 Keith Packard <keithp@keithp.com>
3  *
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.
7  *
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.
12  *
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.
16  */
17
18 /* TO-252/DPAK footprint from ST */
19
20 load "footprint.5c";
21 import Footprint;
22
23 real body_width = 6.3;
24 real body_height = 6.1;
25
26 real pad_width = 1.5;
27 real pad_height = 2.8;
28 real pad_space = 4.572;
29
30 real total_height = 10.7;
31 real body_y = pad_height / 2 + body_height / 2 - total_height;
32
33 real pkg_width = 6.5;
34 real pkg_height = 6.1;
35 real pkg_center_y = 1.5/2 - 2.8 - pkg_height/2;
36
37 element_start("TO252");
38
39 pad_mm(-pad_space/2, 0,
40        pad_width, pad_height,
41        "1", "1");
42
43 pad_mm(0, body_y,
44        body_width, body_height,
45        "2", "2");
46
47 pad_mm(pad_space/2, 0,
48        pad_width, pad_height,
49        "3", "3");
50
51 rect(-pkg_width / 2, pkg_center_y - pkg_height/2, pkg_width, pkg_height);
52
53 element_end();