Commit 960dc47b authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent cffc918b
Pipeline #19733 passed with stage
in 1 second
......@@ -1227,6 +1227,52 @@ class choke(part):
# connectors
############################################################
class header_IMU_3463(part):
#
# Adafruit 3463 IMU breakout
#
def __init__(self,value=''):
pad_header = cylinder(0,0,0,0,.03)
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
#
self.shape = translate(pad_header,0,.25,0)
self.pad.append(point(0,.25,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'Vin'))
#
# pin 2
#
self.shape = add(self.shape,translate(pad_header,0,.15,0))
self.pad.append(point(0,.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'3.3'))
#
# pin 3
#
self.shape = add(self.shape,translate(pad_header,0,.05,0))
self.pad.append(point(0,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
#
# pin 4
#
self.shape = add(self.shape,translate(pad_header,0,-0.05,0))
self.pad.append(point(0,-0.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SCL'))
#
# pin 5
#
self.shape = add(self.shape,translate(pad_header,0,-0.15,0))
self.pad.append(point(0,-0.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SDA'))
#
# pin 6
#
self.shape = add(self.shape,translate(pad_header,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,'RST'))
class header_IMU_2472(part):
#
# Adafruit 2472 BNO055 IMU breakout
......
Supports Markdown
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