diff --git a/python/pcb.py b/python/pcb.py index 35ea566b57cbe893ff5b7a6445ca6bfbabc80c47..006597ddae9dbd8fbdc3ffa64f86259977ea1efe 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -1316,7 +1316,7 @@ class FFC_4x1(part): self.shape = add(self.shape,translate(anchor,-ax,ay,0)) self.shape = add(self.shape,translate(anchor,ax,ay,0)) -class header_IMU_4754_hole(part): +class IMU_4754(part): # # Adafruit 4754 IMU breakout through-hole # @@ -1368,8 +1368,17 @@ class header_IMU_4754_hole(part): self.holes = add(self.holes,translate(pad_hole,0,-0.25,0)) self.pad.append(point(0,-0.25,0)) self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'INT')) - + # + width = 0.982 + height = 0.873 + offset = 0.1 + size = 0.05 + self.shape = add(self.shape,cube(-offset,-offset+size,width/2-size,width/2,0,0)) + self.shape = add(self.shape,cube(height-offset-size,height-offset,width/2-size,width/2,0,0)) + self.shape = add(self.shape,cube(-offset,-offset+size,-width/2,-width/2+size,0,0)) + self.shape = add(self.shape,cube(height-offset-size,height-offset,-width/2,-width/2+size,0,0)) class header_IMU_3463_hole(part): + # # Adafruit 3463 IMU breakout through-hole #