Commit e3ef8cc5 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent fd04cc7c
Pipeline #3354 passed with stage
in 1 second
......@@ -1735,6 +1735,64 @@ class header_ISP(part):
self.pad.append(point(-.107,.1,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
class header_nRF24L01(part):
#
# nRF24L01 module header
#
def __init__(self,value=''):
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1:
#
self.shape = translate(pad_header,.107,-.15,0)
self.shape = add(self.shape,cylinder(.157,-.15,0,0,.025))
self.pad.append(point(.107,-.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND'))
#
# pin 2:
#
self.shape = add(self.shape,translate(pad_header,-.107,-.15,0))
self.pad.append(point(-.107,-.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VCC'))
#
# pin 3:
#
self.shape = add(self.shape,translate(pad_header,.107,-.05,0))
self.pad.append(point(.107,-.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'CE'))
#
# pin 4:
#
self.shape = add(self.shape,translate(pad_header,-.107,-.05,0))
self.pad.append(point(-.107,-.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'CS'))
#
# pin 5:
#
self.shape = add(self.shape,translate(pad_header,.107,.05,0))
self.pad.append(point(.107,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'SCK'))
#
# pin 6:
#
self.shape = add(self.shape,translate(pad_header,-.107,.05,0))
self.pad.append(point(-.107,.05,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'MOSI'))
#
# pin 7:
#
self.shape = add(self.shape,translate(pad_header,.107,.15,0))
self.pad.append(point(.107,.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'MISO'))
#
# pin 8:
#
self.shape = add(self.shape,translate(pad_header,-.107,.15,0))
self.pad.append(point(-.107,.15,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'IRQ'))
class header_servo(part):
#
# servo motor header
......
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