From 98546e0a6fbcd23345261571ee7cfddb882b2e4a Mon Sep 17 00:00:00 2001 From: Neil Gershenfeld <gersh@cba.mit.edu> Date: Thu, 28 Dec 2023 20:28:01 -0500 Subject: [PATCH] wip --- python/pcb.py | 99 --------------------------------------------------- 1 file changed, 99 deletions(-) diff --git a/python/pcb.py b/python/pcb.py index b65e8ff..9a85259 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -6824,105 +6824,6 @@ class XIAO_RP2040(part): length/2-.161-(.209-.161)/2, 0)) -class XIAO(part): - # - # XIAO - # - def __init__(self,value=''): - self.value = value - self.pad = [point(0,0,0)] - self.labels = [] - padl = cube(-0.03,0.081,-0.070/2,0.070/2,0,0) - padr = cube(-0.081,0.03,-0.070/2,0.070/2,0,0) - width = 0.713 - pitch = 0.1 - offset = 0.08 - dx = 0.035 - # - # pin 1 - # - self.shape = translate(padl,-width/2,3*pitch,0) - self.pad.append(point(-width/2,3*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'D0')) - # - # pin 2 - # - self.shape = add(self.shape,translate(padl,-width/2,2*pitch,0)) - self.pad.append(point(-width/2,2*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'D1')) - # - # pin 3 - # - self.shape = add(self.shape,translate(padl,-width/2,1*pitch,0)) - self.pad.append(point(-width/2,1*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'D2')) - # - # pin 4 - # - self.shape = add(self.shape,translate(padl,-width/2,0*pitch,0)) - self.pad.append(point(-width/2,0*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'D3')) - # - # pin 5 - # - self.shape = add(self.shape,translate(padl,-width/2,-1*pitch,0)) - self.pad.append(point(-width/2,-1*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'SDA')) - # - # pin 6 - # - self.shape = add(self.shape,translate(padl,-width/2,-2*pitch,0)) - self.pad.append(point(-width/2,-2*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'SCL')) - # - # pin 7 - # - self.shape = add(self.shape,translate(padl,-width/2,-3*pitch,0)) - self.pad.append(point(-width/2,-3*pitch,0)) - self.labels.append(self.text(self.pad[-1].x+dx,self.pad[-1].y,self.pad[-1].z,'TX')) - # - # pin 8 - # - self.shape = add(self.shape,translate(padr,width/2,-3*pitch,0)) - self.pad.append(point(width/2,-3*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'RX')) - # - # pin 9 - # - self.shape = add(self.shape,translate(padr,width/2,-2*pitch,0)) - self.pad.append(point(width/2,-2*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'SCK')) - # - # pin 10 - # - self.shape = add(self.shape,translate(padr,width/2,-1*pitch,0)) - self.pad.append(point(width/2,-1*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'SDI')) - # - # pin 11 - # - self.shape = add(self.shape,translate(padr,width/2,0*pitch,0)) - self.pad.append(point(width/2,0*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'SDO')) - # - # pin 12 - # - self.shape = add(self.shape,translate(padr,width/2,1*pitch,0)) - self.pad.append(point(width/2,1*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'3V3')) - # - # pin 13 - # - self.shape = add(self.shape,translate(padr,width/2,2*pitch,0)) - self.pad.append(point(width/2,2*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'G')) - # - # pin 14 - # - self.shape = add(self.shape,translate(padr,width/2,3*pitch,0)) - self.pad.append(point(width/2,3*pitch,0)) - self.labels.append(self.text(self.pad[-1].x-dx,self.pad[-1].y,self.pad[-1].z,'5V')) - class AVRDB28(part): # # AVR*DB28 -- GitLab