From 70d9283c58bd17c8daadc5937209fffabf5cee39 Mon Sep 17 00:00:00 2001
From: Neil Gershenfeld <gersh@cba.mit.edu>
Date: Thu, 25 Jan 2024 16:55:27 -0500
Subject: [PATCH] wip

---
 python/pcb.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/python/pcb.py b/python/pcb.py
index 35ea566..006597d 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
    #
-- 
GitLab