Commit a55a841f authored by Sam Calisch's avatar Sam Calisch
Browse files

update raspberry pi swd adapter

parent 3b40c37e
Pipeline #598 canceled with stage
......@@ -119,12 +119,12 @@ class Header_TC_SWD(Component):
'''
_pad_header = chamfered_rectangle(-0.04, 0.04,-0.04, 0.04,.007)
pins = [
Pin( .05, 0.1, _pad_header, ''),
Pin( .05, 0.0, _pad_header, ''),
Pin( .05, 0.1, _pad_header, 'SWDCLK'),
Pin( .05, 0.0, _pad_header, 'SWDIO'),
Pin( .05, -0.1, _pad_header, 'GND'),
Pin(-.05, 0.1, _pad_header, 'SWDIO'),
Pin(-.05, 0.0, _pad_header, 'SWDCLK'),
Pin(-.05, -0.1, _pad_header, 'nRST'),
Pin(-.05, 0.1, _pad_header, ''),
Pin(-.05, 0.0, _pad_header, ''),
Pin(-.05, -0.1, _pad_header, ''),
]
prefix = 'J'
vias = [Via(p.x,p.y,circle(0,0,.018)) for p in pins]
......@@ -257,12 +257,12 @@ def connectM(pin1,pin2,dx,width=.012):
rpi = Header_RPi_SWD(.5*width,.35,90,'rpi')
pcb += rpi
tc = Header_TC_SWD(rpi.x+.05,rpi.y-.21,90,'tc')
tc = Header_TC_SWD(rpi.x-.02,rpi.y-.24,90,'tc')
pcb += tc
pcb.connectH(tc['SWDCLK'],[tc['SWDCLK'].x,tc['SWDCLK'].y-.07],rpi['SWDCLK'])
pcb.connectH(tc['SWDIO'],[tc['SWDIO'].x-.1,rpi['SWDCLK'].y-.09],rpi['SWDIO'])
pcb.connectH(tc['nRST'],rpi['nRST'])
pcb.connectH(tc['SWDCLK'],rpi['SWDCLK'])
pcb.connectH(tc['SWDIO'],rpi['SWDIO'])
#pcb.connectH(tc['nRST'],rpi['nRST'])
pcb.connectH(tc['GND'],rpi['GND'])
eps = .02
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment