2 * Copyright © 2019 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, either version 2 of the License, or
7 * (at your option) any later version.
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.
19 /* from the data sheet */
21 real pad_width = 2.50; /* B */
22 real pad_height = 1.70; /* C */
23 real pad_space = 4.00; /* A */
25 element_start("do-214ac");
27 pad_mm(-pad_space/2, 0, pad_width, pad_height, "1", "1"); /* anode */
28 pad_mm( pad_space/2, 0, pad_width, pad_height, "2", "2"); /* cathode */
30 real line_x = pad_space / 2 + pad_width * 1.5 / 2;
31 real line_len = pad_height * 1.25;
33 line(line_x, -line_len/2, line_x, line_len/2);