data sheet for new 3.3V LDO
[hw/altusmetrum] / packages / sod123.5c
1 /*
2  * Copyright © 2012 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 load "footprint.5c"
19 import Footprint;
20
21 real pad_width = 1.2;
22 real pad_height = 0.7;
23
24 real package_width = 2.7;
25 real package_height = 1.55;
26
27 real pad_x_off = 3.7 / 2;
28
29 real num_pad = 3;
30
31 element_start("sod123");
32
33 real corner(int dx, int dy) {
34         real    x = dx * package_width / 2;
35         real    y = dy * package_height / 2;
36         real    len = 0.4;
37
38         line(x, y, x - dx * len, y);
39         line(x, y, x, y - dy * len);
40 }
41
42 corner(-1, -1);
43 corner(1, -1);
44 corner(-1, 1);
45 corner(1, 1);
46
47 real dot_off = -.3;
48
49 line(-package_width/2 + dot_off, -package_height/2 + dot_off,
50      -package_width/2 + dot_off, -package_height/2 + dot_off);
51
52 pad_mm(-pad_x_off,
53        0,
54        pad_width,
55        pad_height,
56        "1", "1");
57
58 pad_mm(pad_x_off,
59        0,
60        pad_width,
61        pad_height,
62        "2", "2");
63
64 element_end();