need an n-fet symbol with SOT23 compatible pin numbers, different than TO-220
[hw/altusmetrum] / packages / ECX2236.5c
1 /*
2  * Copyright © 2020 Bdale Garbee <bdale@gag.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, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  */
14
15 load "footprint.5c"
16 import Footprint;
17
18 real width      = 1.2;
19 real height     = 1.0;
20 real hgap       = 1.7 - width;
21 real vgap       = 1.3 - height;
22
23 real hpos       = hgap/2 + width/2;
24 real vpos       = vgap/2 + height/2;
25
26 element_start("ABM12");
27
28 pad_mm(-hpos, vpos,width,height,"1","1");
29 pad_mm( hpos, vpos,width,height,"2","2");
30 pad_mm( hpos,-vpos,width,height,"3","3");
31 pad_mm(-hpos,-vpos,width,height,"4","4");
32
33 element_end();