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.
20 /* from the data sheet */
21 real outside_width = 9.5;
22 real inside_width = 6.4;
23 real outside_height = 5.8;
24 real inside_height = 3.2;
27 real pad_width = (outside_width - inside_width) / 2;
28 real pad_height = (outside_height - inside_height) / 2;
30 real pad_x_off = (outside_width + inside_width) / 4;
31 real pad_y_off = (outside_height + inside_height) / 4;
33 element_start("PTS645");
35 pad_mm(-pad_x_off, -pad_y_off, pad_width, pad_height, "1", "1");
36 pad_mm( pad_x_off, -pad_y_off, pad_width, pad_height, "1", "1");
38 pad_mm(-pad_x_off, pad_y_off, pad_width, pad_height, "2", "2");
39 pad_mm( pad_x_off, pad_y_off, pad_width, pad_height, "2", "2");