projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ceaae65
)
update image colours
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 10 Jun 2021 21:21:26 +0000
(22:21 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 10 Jun 2021 21:21:26 +0000
(22:21 +0100)
src/spec/ifaceprint.py
patch
|
blob
|
history
diff --git
a/src/spec/ifaceprint.py
b/src/spec/ifaceprint.py
index 657d9623b63809ba6f17a1034602a027754ad204..b4a499bbf0c02933b458e3c5e05a0909725b538b 100644
(file)
--- a/
src/spec/ifaceprint.py
+++ b/
src/spec/ifaceprint.py
@@
-25,10
+25,10
@@
def create_sv(fname, pins):
size=(width+scale*40, height+scale*40))
dwg.add(dwg.rect((woffs-scale*2, hoffs-scale*2),
(woffs+width-scale*12, hoffs+height-scale*12),
size=(width+scale*40, height+scale*40))
dwg.add(dwg.rect((woffs-scale*2, hoffs-scale*2),
(woffs+width-scale*12, hoffs+height-scale*12),
- stroke=svgwrite.rgb(
255
, 255, 16, '%'),
+ stroke=svgwrite.rgb(
16
, 255, 16, '%'),
stroke_width=scale/10.0))
stroke_width=scale/10.0))
- dwg.add(dwg.text("Libre-SOC ls180",
+ dwg.add(dwg.text("Libre-SOC ls180
QFP-128
",
insert=(woffs+width/2-scale*5, woffs+height/2),
fill='white'))
dwg.add(dwg.text("In collaboration with LIP6.fr",
insert=(woffs+width/2-scale*5, woffs+height/2),
fill='white'))
dwg.add(dwg.text("In collaboration with LIP6.fr",
@@
-42,37
+42,37
@@
def create_sv(fname, pins):
ht = hoffs + height - (i * scale) + scale*0.5
dwg.add(dwg.line((woffs-scale*2, ht-scale*0.5),
(woffs-scale*4.5, ht-scale*0.5),
ht = hoffs + height - (i * scale) + scale*0.5
dwg.add(dwg.line((woffs-scale*2, ht-scale*0.5),
(woffs-scale*4.5, ht-scale*0.5),
- stroke=svgwrite.rgb(
255
, 255, 16, '%'),
+ stroke=svgwrite.rgb(
16
, 255, 16, '%'),
stroke_width=scale/10.0))
dwg.add(dwg.text(pin.upper(), insert=(woffs-scale*12, ht),
stroke_width=scale/10.0))
dwg.add(dwg.text(pin.upper(), insert=(woffs-scale*12, ht),
- fill='
white
'))
+ fill='
black
'))
dwg.add(dwg.text("W%d" % (i+1), insert=(woffs-scale*1.5, ht),
dwg.add(dwg.text("W%d" % (i+1), insert=(woffs-scale*1.5, ht),
- fill='
white
'))
+ fill='
black
'))
for i, pin in enumerate(pins['pads.east']):
ht = hoffs + height - (i * scale) + scale*0.5
wd = width + woffs + scale*2
dwg.add(dwg.line((wd+scale*2, ht-scale*0.5),
(wd+scale*4.5, ht-scale*0.5),
for i, pin in enumerate(pins['pads.east']):
ht = hoffs + height - (i * scale) + scale*0.5
wd = width + woffs + scale*2
dwg.add(dwg.line((wd+scale*2, ht-scale*0.5),
(wd+scale*4.5, ht-scale*0.5),
- stroke=svgwrite.rgb(
255
, 255, 16, '%'),
+ stroke=svgwrite.rgb(
16
, 255, 16, '%'),
stroke_width=scale/10.0))
dwg.add(dwg.text(pin.upper(), insert=(wd+scale*5, ht-scale*0.25),
stroke_width=scale/10.0))
dwg.add(dwg.text(pin.upper(), insert=(wd+scale*5, ht-scale*0.25),
- fill='
white
'))
+ fill='
black
'))
dwg.add(dwg.text("E%d" % (i+1), insert=(wd, ht-scale*0.25),
dwg.add(dwg.text("E%d" % (i+1), insert=(wd, ht-scale*0.25),
- fill='
white
'))
+ fill='
black
'))
for i, pin in enumerate(pins['pads.north']):
wd = woffs + i * scale + scale*1.5
dwg.add(dwg.line((wd, hoffs-scale*2),
(wd, hoffs-scale*4.5),
for i, pin in enumerate(pins['pads.north']):
wd = woffs + i * scale + scale*1.5
dwg.add(dwg.line((wd, hoffs-scale*2),
(wd, hoffs-scale*4.5),
- stroke=svgwrite.rgb(
255
, 255, 16, '%'),
+ stroke=svgwrite.rgb(
16
, 255, 16, '%'),
stroke_width=scale/10.0))
pos=(wd, hoffs-scale*5.0)
stroke_width=scale/10.0))
pos=(wd, hoffs-scale*5.0)
- txt = dwg.text(pin.upper(), insert=pos, fill='
white
')
+ txt = dwg.text(pin.upper(), insert=pos, fill='
black
')
txt.rotate(-90, pos)
dwg.add(txt)
pos=(wd+scale*0.25, hoffs-scale*0.25)
txt.rotate(-90, pos)
dwg.add(txt)
pos=(wd+scale*0.25, hoffs-scale*0.25)
- txt = dwg.text("N%d" % (i+1), insert=pos, fill='
white
')
+ txt = dwg.text("N%d" % (i+1), insert=pos, fill='
black
')
txt.rotate(-90, pos)
dwg.add(txt)
txt.rotate(-90, pos)
dwg.add(txt)
@@
-81,14
+81,14
@@
def create_sv(fname, pins):
ht = hoffs + height + scale*2
dwg.add(dwg.line((wd, ht+scale*2),
(wd, ht+scale*4.5),
ht = hoffs + height + scale*2
dwg.add(dwg.line((wd, ht+scale*2),
(wd, ht+scale*4.5),
- stroke=svgwrite.rgb(
255
, 255, 16, '%'),
+ stroke=svgwrite.rgb(
16
, 255, 16, '%'),
stroke_width=scale/10.0))
pos=(wd-scale*0.25, ht+scale*5.0)
stroke_width=scale/10.0))
pos=(wd-scale*0.25, ht+scale*5.0)
- txt = dwg.text(pin.upper(), insert=pos, fill='
white
')
+ txt = dwg.text(pin.upper(), insert=pos, fill='
black
')
txt.rotate(90, pos)
dwg.add(txt)
pos=(wd-scale*0.25, ht+scale*0.25)
txt.rotate(90, pos)
dwg.add(txt)
pos=(wd-scale*0.25, ht+scale*0.25)
- txt = dwg.text("S%d" % (i+1), insert=pos, fill='
white
')
+ txt = dwg.text("S%d" % (i+1), insert=pos, fill='
black
')
txt.rotate(90, pos)
dwg.add(txt)
txt.rotate(90, pos)
dwg.add(txt)