add C4M Logo to ls180
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 11 Jun 2021 15:33:41 +0000 (16:33 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 11 Jun 2021 15:33:41 +0000 (16:33 +0100)
src/spec/c4mlogo.png [new file with mode: 0644]
src/spec/ifaceprint.py

diff --git a/src/spec/c4mlogo.png b/src/spec/c4mlogo.png
new file mode 100644 (file)
index 0000000..936b44b
Binary files /dev/null and b/src/spec/c4mlogo.png differ
index bdb7134b91d5e75a327b30cf1c787746cc1fd63a..810ed6bf555e479810ce2dd213d39ab4acd10713 100644 (file)
@@ -9,6 +9,7 @@ import base64
 cwd = os.path.split(os.path.abspath(__file__))[0]
 lead_drawing = cwd + "/greatek_qfp_128L.png"
 pack_drawing = cwd + "/greatek_qfp_128_fp.png"
+c4m_drawing = cwd + "/c4mlogo.png"
 
 def bond_int_to_ext(pin, bank):
     """ note that internal numbering is 0-31 whereas the DISPLAY internal
@@ -308,6 +309,15 @@ def create_sv(fname, pins):
                        insert=(woffs+width/2-scale*5, woffs+height/2-scale*2),
                      fill='black'))
 
+    # add C4M Logo
+    image_data = open(c4m_drawing, "rb").read()
+    encoded = base64.b64encode(image_data).decode()
+    data = 'data:image/png;base64,{}'.format(encoded)
+    pos=(woffs+scale*0.0, hoffs+height-scale*1.5)
+    leads = svgwrite.image.Image(data, pos,
+                                       size=(50,50))
+    dwg.add(leads)
+
     # add attribution
     dwg.add(dwg.text("Libre-SOC ls180 QFP-128",
                        insert=(woffs+width/2-scale*5, woffs+height/2),
@@ -321,6 +331,9 @@ def create_sv(fname, pins):
     dwg.add(dwg.text("IMEC TSMC 180nm",
                        insert=(woffs+width/2-scale*5, woffs+height/2+scale*3),
                      fill='black'))
+    dwg.add(dwg.text("RED Semiconductor",
+                       insert=(woffs+width/2-scale*5, woffs+height/2+scale*4),
+                     fill='black'))
 
     # add package marking circles
     pos = (owoffs-outerscale*0, ohoffs+len(wepads)*outerscale+outerscale*2.5)