Merge branch 'master' of ssh://git.gag.com/scm/git/hw/altusmetrum
authorBdale Garbee <bdale@gag.com>
Sun, 1 Mar 2020 04:23:48 +0000 (21:23 -0700)
committerBdale Garbee <bdale@gag.com>
Sun, 1 Mar 2020 04:23:48 +0000 (21:23 -0700)
packages/2013499-1.5c
packages/Makefile
packages/lc8812.5c [new file with mode: 0644]
symbols/szledcolor/lc8812.sym [new file with mode: 0644]

index a6a86a4edd5eba8bd253ed0dfac4b29262d9e82e..c57b7be248d2fac37d9c0707934567957d426bea 100644 (file)
@@ -71,4 +71,9 @@ pin_mm_space(-tang_x, tang_y + tang_length / 2, tang_radius * 2, tang_copper, 0,
 pin_mm_space( tang_x, tang_y - tang_length / 2, tang_radius * 2, tang_copper, 0, "GND", "5");
 pin_mm_space( tang_x, tang_y + tang_length / 2, tang_radius * 2, tang_copper, 0, "GND", "5");
 
+pad_mm_space_options(-tang_x, tang_y, tang_radius * 2 + tang_copper * 2, tang_length + tang_radius * 2 + tang_copper * 2, 0, "GND", "5", "")
+pad_mm_space_options(-tang_x, tang_y, tang_radius * 2 + tang_copper * 2, tang_length + tang_radius * 2 + tang_copper * 2, 0, "GND", "5", "onsolder")
+pad_mm_space_options( tang_x, tang_y, tang_radius * 2 + tang_copper * 2, tang_length + tang_radius * 2 + tang_copper * 2, 0, "GND", "5", "")
+pad_mm_space_options( tang_x, tang_y, tang_radius * 2 + tang_copper * 2, tang_length + tang_radius * 2 + tang_copper * 2, 0, "GND", "5", "onsolder")
+
 element_end();
index ac7bdd88bbee1bc1a0d3c807499a3090ea0719bb..339c0340a868b81e12cc07f124dc820a9cbb016a 100644 (file)
@@ -131,6 +131,7 @@ FOOTPRINTS= \
        l8x8.fp \
        c8x8.fp \
        sk6812.fp \
+       lc8812.fp \
        VQFN-HR-12.fp \
        wqfn-16.fp \
        TSX-3225.fp \
diff --git a/packages/lc8812.5c b/packages/lc8812.5c
new file mode 100644 (file)
index 0000000..0e19a00
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2019 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ */
+
+load "footprint.5c"
+import Footprint;
+element_args();
+
+/* from the data sheet */
+
+real pad_x_edge = 5.4; /* outside edge to outside edge */
+real pad_y_edge = 4.2; /* outside edge to outside edge */
+real pad_width = 1.5;
+real pad_height = 1.5;
+
+real pad_x_space = pad_x_edge - pad_width;
+real pad_y_space = pad_y_edge - pad_height;
+
+real pad_x_off = pad_x_space / 2.0;
+real pad_y_off = pad_y_space / 2.0;
+
+real line_off = pad_width * 2/3;
+
+element_start("lc8812");
+
+pad_mm(pad_x_off, pad_y_off, pad_width, pad_height, "3", "3");
+pad_mm(pad_x_off, -pad_y_off, pad_width, pad_height, "4", "4");
+
+pad_mm(-pad_x_off, -pad_y_off, pad_width, pad_height, "1", "1");
+pad_mm(-pad_x_off, pad_y_off, pad_width, pad_height, "2", "2");
+
+line(-pad_x_off - line_off, -pad_y_off - line_off,
+     -pad_x_off - line_off, -pad_y_off - line_off);
+
+element_end();
diff --git a/symbols/szledcolor/lc8812.sym b/symbols/szledcolor/lc8812.sym
new file mode 100644 (file)
index 0000000..0a20c66
--- /dev/null
@@ -0,0 +1,52 @@
+v 20130925 2
+B 300 300 1200 1200 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
+P 900 0 900 300 1 0 0
+{
+T 900 0 5 10 0 0 0 0 1
+pintype=in
+T 705 400 5 10 1 1 0 0 1
+pinlabel=GND
+T 800 205 5 10 1 1 90 6 1
+pinnumber=3
+T 900 0 5 10 0 0 0 0 1
+pinseq=0
+}
+P 0 900 300 900 1 0 0
+{
+T -400 900 5 10 0 0 0 0 1
+pintype=in
+T 355 895 5 10 1 1 0 0 1
+pinlabel=DIN
+T 205 995 5 10 1 1 0 6 1
+pinnumber=4
+T -400 900 5 10 0 0 0 0 1
+pinseq=0
+}
+T 44500 32055 8 10 0 1 0 0 1
+footprint=lc8812
+P 1800 900 1500 900 1 0 0
+{
+T 1800 900 5 10 0 0 0 6 1
+pintype=unknown
+T 1445 895 5 10 1 1 0 6 1
+pinlabel=DOUT
+T 1595 945 5 10 1 1 0 0 1
+pinnumber=2
+T 1800 900 5 10 0 0 0 6 1
+pinseq=0
+}
+P 900 1800 900 1500 1 0 0
+{
+T 900 1800 5 10 0 0 0 0 1
+pintype=unknown
+T 705 1300 5 10 1 1 180 8 1
+pinlabel=Vdd
+T 850 1595 5 10 1 1 90 0 1
+pinnumber=1
+T 900 1800 5 10 0 0 0 0 1
+pinseq=0
+}
+T 600 650 9 10 1 0 0 0 1
+LC8812
+T 295 1595 8 10 1 1 0 0 1
+refdes=U?