Reset lines

This commit is contained in:
foostan 2018-04-17 01:31:41 +09:00
parent ed7284128a
commit a86b80c3c4
5 changed files with 11281 additions and 11180 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
(export (version D)
(design
(source /Users/adachi-kousuke/src/github.com/foostan/crkbd/pcb/crkbd.sch)
(date "2018年04月11日水曜日 01:28:23")
(date "2018年04月14日土曜日 22:54:16")
(tool "Eeschema 4.0.7")
(sheet (number 1) (name /) (tstamps /)
(title_block
@ -275,7 +275,7 @@
(tstamp 5A5E37F2))
(comp (ref RSW1)
(value SW_PUSH)
(footprint kbd:SW_3.5x6.0_TH)
(footprint kbd:ResetSW)
(libsource (lib kbd) (part SW_PUSH))
(sheetpath (names /) (tstamps /))
(tstamp 5A5EB9E2))
@ -488,8 +488,35 @@
(footprint kbd:StripLED_rev)
(libsource (lib conn) (part Conn_01x03))
(sheetpath (names /) (tstamps /))
(tstamp 5ACCF3D8)))
(tstamp 5ACCF3D8))
(comp (ref P2)
(value i2c-pin)
(footprint kbd:1pin_conn)
(libsource (lib conn) (part Conn_01x01))
(sheetpath (names /) (tstamps /))
(tstamp 5AD20E0A))
(comp (ref P1)
(value i2c-pin)
(footprint kbd:1pin_conn)
(libsource (lib conn) (part Conn_01x01))
(sheetpath (names /) (tstamps /))
(tstamp 5AD21C5C)))
(libparts
(libpart (lib conn) (part Conn_01x01)
(description "Generic connector, single row, 01x01")
(docs ~)
(footprints
(fp Connector*:*_??x*mm*)
(fp Connector*:*1x??x*mm*)
(fp Pin?Header?Straight?1X*)
(fp Pin?Header?Angled?1X*)
(fp Socket?Strip?Straight?1X*)
(fp Socket?Strip?Angled?1X*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x01))
(pins
(pin (num 1) (name Pin_1) (type passive))))
(libpart (lib conn) (part Conn_01x03)
(description "Generic connector, single row, 01x03")
(docs ~)
@ -625,26 +652,26 @@
(libraries
(library (logical kbd)
(uri /Users/adachi-kousuke/src/github.com/foostan/kbd/labrary/kbd.lib))
(library (logical conn)
(uri "/Library/Application Support/kicad/library/conn.lib"))
(library (logical device)
(uri "/Library/Application Support/kicad/library/device.lib")))
(uri "/Library/Application Support/kicad/library/device.lib"))
(library (logical conn)
(uri "/Library/Application Support/kicad/library/conn.lib")))
(nets
(net (code 1) (name "Net-(L11-Pad3)")
(node (ref L5) (pin 1))
(node (ref L11) (pin 3)))
(node (ref L11) (pin 3))
(node (ref L5) (pin 1)))
(net (code 2) (name "Net-(L11-Pad1)")
(node (ref L17) (pin 3))
(node (ref L11) (pin 1)))
(net (code 3) (name "Net-(L17-Pad1)")
(node (ref L17) (pin 1))
(node (ref L20) (pin 3)))
(node (ref L20) (pin 3))
(node (ref L17) (pin 1)))
(net (code 4) (name "Net-(L16-Pad3)")
(node (ref L19) (pin 1))
(node (ref L16) (pin 3)))
(net (code 5) (name "Net-(L10-Pad3)")
(node (ref L10) (pin 3))
(node (ref L16) (pin 1)))
(node (ref L16) (pin 1))
(node (ref L10) (pin 3)))
(net (code 6) (name "Net-(L10-Pad1)")
(node (ref L4) (pin 3))
(node (ref L10) (pin 1)))
@ -655,31 +682,31 @@
(node (ref L18) (pin 1))
(node (ref L12) (pin 3)))
(net (code 9) (name "Net-(L12-Pad1)")
(node (ref L6) (pin 3))
(node (ref L12) (pin 1)))
(net (code 10) (name "Net-(L13-Pad3)")
(node (ref L13) (pin 3))
(node (ref L7) (pin 1)))
(net (code 11) (name "Net-(L13-Pad1)")
(node (ref L12) (pin 1))
(node (ref L6) (pin 3)))
(net (code 10) (name "Net-(L13-Pad1)")
(node (ref L13) (pin 1)))
(net (code 12) (name "Net-(L5-Pad3)")
(net (code 11) (name "Net-(L5-Pad3)")
(node (ref L6) (pin 1))
(node (ref L5) (pin 3)))
(net (code 13) (name "Net-(L3-Pad3)")
(node (ref L4) (pin 1))
(node (ref L3) (pin 3)))
(net (code 14) (name "Net-(L1-Pad3)")
(net (code 12) (name "Net-(L3-Pad3)")
(node (ref L3) (pin 3))
(node (ref L4) (pin 1)))
(net (code 13) (name "Net-(L1-Pad3)")
(node (ref L1) (pin 3))
(node (ref L2) (pin 1)))
(net (code 15) (name "Net-(L19-Pad3)")
(net (code 14) (name "Net-(L19-Pad3)")
(node (ref L20) (pin 1))
(node (ref L19) (pin 3)))
(net (code 15) (name "Net-(L14-Pad3)")
(node (ref L15) (pin 1))
(node (ref L14) (pin 3)))
(net (code 16) (name "Net-(L3-Pad1)")
(node (ref L3) (pin 1))
(node (ref L9) (pin 3)))
(node (ref L9) (pin 3))
(node (ref L3) (pin 1)))
(net (code 17) (name "Net-(L15-Pad3)")
(node (ref L15) (pin 3))
(node (ref L9) (pin 1)))
(node (ref L9) (pin 1))
(node (ref L15) (pin 3)))
(net (code 18) (name "Net-(L14-Pad1)")
(node (ref L14) (pin 1))
(node (ref L8) (pin 3)))
@ -689,241 +716,243 @@
(net (code 20) (name "Net-(L1-Pad1)")
(node (ref L7) (pin 3))
(node (ref L1) (pin 1)))
(net (code 21) (name "Net-(J2-Pad1)")
(net (code 21) (name "Net-(L13-Pad3)")
(node (ref L7) (pin 1))
(node (ref L13) (pin 3)))
(net (code 22) (name "Net-(J2-Pad1)")
(node (ref JP9) (pin 2))
(node (ref JP5) (pin 2))
(node (ref J2) (pin 1))
(node (ref JP9) (pin 2)))
(net (code 22) (name "Net-(J2-Pad2)")
(node (ref J2) (pin 1)))
(net (code 23) (name "Net-(J2-Pad2)")
(node (ref JP8) (pin 2))
(node (ref JP4) (pin 2))
(node (ref J2) (pin 2))
(node (ref JP8) (pin 2)))
(net (code 23) (name "Net-(J2-Pad3)")
(node (ref J2) (pin 3))
(node (ref JP3) (pin 2))
(node (ref JP7) (pin 2)))
(node (ref J2) (pin 2)))
(net (code 24) (name "Net-(J2-Pad4)")
(node (ref JP6) (pin 2))
(node (ref JP2) (pin 2))
(node (ref J2) (pin 4)))
(net (code 25) (name "Net-(J1-PadA)")
(node (ref J1) (pin A)))
(net (code 26) (name "Net-(J1-PadB)")
(node (ref JP1) (pin 2))
(node (ref J1) (pin B)))
(net (code 25) (name "Net-(J2-Pad3)")
(node (ref J2) (pin 3))
(node (ref JP3) (pin 2))
(node (ref JP7) (pin 2)))
(net (code 26) (name SDA)
(node (ref U1) (pin 5))
(node (ref JP6) (pin 1))
(node (ref JP5) (pin 1))
(node (ref R1) (pin 2)))
(net (code 27) (name SCL)
(node (ref JP7) (pin 1))
(node (ref R2) (pin 2))
(node (ref JP7) (pin 1))
(node (ref JP4) (pin 1))
(node (ref U1) (pin 6)))
(net (code 28) (name "Net-(U1-Pad24)")
(net (code 28) (name "Net-(J1-PadA)")
(node (ref P1) (pin 1))
(node (ref J1) (pin A)))
(net (code 29) (name "Net-(U1-Pad24)")
(node (ref U1) (pin 24)))
(net (code 29) (name "Net-(L14-Pad3)")
(node (ref L15) (pin 1))
(node (ref L14) (pin 3)))
(net (code 30) (name VCC)
(node (ref L4) (pin 4))
(node (ref L3) (pin 4))
(node (ref L2) (pin 4))
(node (ref JP3) (pin 1))
(node (ref U1) (pin 21))
(node (ref JP8) (pin 1))
(node (ref L18) (pin 4))
(node (ref L17) (pin 4))
(node (ref L16) (pin 4))
(node (ref L15) (pin 4))
(node (ref L19) (pin 4))
(node (ref L13) (pin 4))
(net (code 30) (name "Net-(J1-PadB)")
(node (ref J1) (pin B))
(node (ref JP1) (pin 2))
(node (ref P2) (pin 1)))
(net (code 31) (name VCC)
(node (ref L20) (pin 4))
(node (ref U1) (pin 21))
(node (ref L21) (pin 4))
(node (ref L12) (pin 4))
(node (ref L11) (pin 4))
(node (ref L5) (pin 4))
(node (ref J3) (pin 3))
(node (ref L7) (pin 4))
(node (ref L19) (pin 4))
(node (ref L15) (pin 4))
(node (ref L16) (pin 4))
(node (ref L17) (pin 4))
(node (ref L18) (pin 4))
(node (ref L13) (pin 4))
(node (ref JP8) (pin 1))
(node (ref R2) (pin 1))
(node (ref R1) (pin 1))
(node (ref L14) (pin 4))
(node (ref L6) (pin 4))
(node (ref L1) (pin 4))
(node (ref L8) (pin 4))
(node (ref L9) (pin 4))
(node (ref L2) (pin 4))
(node (ref L3) (pin 4))
(node (ref L10) (pin 4))
(node (ref L4) (pin 4))
(node (ref L9) (pin 4))
(node (ref L5) (pin 4))
(node (ref L6) (pin 4))
(node (ref L8) (pin 4))
(node (ref L1) (pin 4))
(node (ref L11) (pin 4))
(node (ref L12) (pin 4))
(node (ref L7) (pin 4))
(node (ref L14) (pin 4))
(node (ref J1) (pin D))
(node (ref R2) (pin 1)))
(net (code 31) (name GND)
(node (ref L3) (pin 2))
(node (ref U1) (pin 3))
(node (ref JP3) (pin 1))
(node (ref J3) (pin 3)))
(net (code 32) (name GND)
(node (ref L21) (pin 2))
(node (ref L15) (pin 2))
(node (ref L1) (pin 2))
(node (ref L11) (pin 2))
(node (ref L20) (pin 2))
(node (ref U1) (pin 23))
(node (ref L8) (pin 2))
(node (ref L10) (pin 2))
(node (ref L9) (pin 2))
(node (ref U1) (pin 4))
(node (ref U1) (pin 3))
(node (ref JP2) (pin 1))
(node (ref L3) (pin 2))
(node (ref JP9) (pin 1))
(node (ref L13) (pin 2))
(node (ref L4) (pin 2))
(node (ref L18) (pin 2))
(node (ref L5) (pin 2))
(node (ref L6) (pin 2))
(node (ref RSW1) (pin 2))
(node (ref L21) (pin 2))
(node (ref L10) (pin 2))
(node (ref L20) (pin 2))
(node (ref L19) (pin 2))
(node (ref L16) (pin 2))
(node (ref L17) (pin 2))
(node (ref J3) (pin 1))
(node (ref L18) (pin 2))
(node (ref L13) (pin 2))
(node (ref L9) (pin 2))
(node (ref L8) (pin 2))
(node (ref JP9) (pin 1))
(node (ref L1) (pin 2))
(node (ref J1) (pin C))
(node (ref L15) (pin 2))
(node (ref U1) (pin 23))
(node (ref L14) (pin 2))
(node (ref L12) (pin 2))
(node (ref L11) (pin 2))
(node (ref L2) (pin 2))
(node (ref L7) (pin 2)))
(net (code 32) (name "Net-(D16-Pad2)")
(node (ref D16) (pin 2))
(node (ref SW16) (pin 2)))
(net (code 33) (name "Net-(D17-Pad2)")
(node (ref D17) (pin 2))
(node (ref SW17) (pin 2)))
(net (code 34) (name "Net-(D18-Pad2)")
(node (ref L12) (pin 2))
(node (ref L16) (pin 2))
(node (ref L7) (pin 2))
(node (ref L14) (pin 2))
(node (ref L19) (pin 2))
(node (ref J1) (pin C))
(node (ref J3) (pin 1)))
(net (code 33) (name "Net-(D16-Pad2)")
(node (ref SW16) (pin 2))
(node (ref D16) (pin 2)))
(net (code 34) (name "Net-(D17-Pad2)")
(node (ref SW17) (pin 2))
(node (ref D17) (pin 2)))
(net (code 35) (name "Net-(D18-Pad2)")
(node (ref SW18) (pin 2))
(node (ref D18) (pin 2)))
(net (code 35) (name "Net-(D13-Pad2)")
(net (code 36) (name "Net-(D13-Pad2)")
(node (ref SW13) (pin 2))
(node (ref D13) (pin 2)))
(net (code 36) (name "Net-(D20-Pad2)")
(net (code 37) (name "Net-(D20-Pad2)")
(node (ref SW20) (pin 2))
(node (ref D20) (pin 2)))
(net (code 37) (name "Net-(D21-Pad2)")
(node (ref SW21) (pin 2))
(node (ref D21) (pin 2)))
(net (code 38) (name "Net-(D7-Pad2)")
(net (code 38) (name "Net-(D21-Pad2)")
(node (ref D21) (pin 2))
(node (ref SW21) (pin 2)))
(net (code 39) (name "Net-(D7-Pad2)")
(node (ref SW7) (pin 2))
(node (ref D7) (pin 2)))
(net (code 39) (name "Net-(D14-Pad2)")
(net (code 40) (name "Net-(D14-Pad2)")
(node (ref D14) (pin 2))
(node (ref SW14) (pin 2)))
(net (code 40) (name "Net-(D15-Pad2)")
(node (ref D15) (pin 2))
(node (ref SW15) (pin 2)))
(net (code 41) (name "Net-(D19-Pad2)")
(net (code 41) (name "Net-(D15-Pad2)")
(node (ref SW15) (pin 2))
(node (ref D15) (pin 2)))
(net (code 42) (name "Net-(D19-Pad2)")
(node (ref SW19) (pin 2))
(node (ref D19) (pin 2)))
(net (code 42) (name "Net-(U1-Pad14)")
(net (code 43) (name "Net-(U1-Pad14)")
(node (ref U1) (pin 14)))
(net (code 43) (name col5)
(node (ref SW12) (pin 1))
(net (code 44) (name col5)
(node (ref SW18) (pin 1))
(node (ref SW6) (pin 1))
(node (ref SW12) (pin 1))
(node (ref U1) (pin 15))
(node (ref SW21) (pin 1)))
(net (code 44) (name col4)
(net (code 45) (name col4)
(node (ref U1) (pin 16))
(node (ref SW20) (pin 1))
(node (ref SW17) (pin 1))
(node (ref SW11) (pin 1))
(node (ref SW5) (pin 1)))
(net (code 45) (name col3)
(node (ref SW10) (pin 1))
(node (ref U1) (pin 17))
(node (ref SW4) (pin 1))
(node (ref SW20) (pin 1))
(node (ref SW5) (pin 1))
(node (ref SW11) (pin 1)))
(net (code 46) (name col3)
(node (ref SW19) (pin 1))
(node (ref SW16) (pin 1)))
(net (code 46) (name col2)
(node (ref SW15) (pin 1))
(node (ref SW9) (pin 1))
(node (ref SW16) (pin 1))
(node (ref SW4) (pin 1))
(node (ref U1) (pin 17))
(node (ref SW10) (pin 1)))
(net (code 47) (name col2)
(node (ref SW3) (pin 1))
(node (ref U1) (pin 18)))
(net (code 47) (name col1)
(node (ref SW14) (pin 1))
(node (ref U1) (pin 19))
(node (ref U1) (pin 18))
(node (ref SW15) (pin 1))
(node (ref SW9) (pin 1)))
(net (code 48) (name col1)
(node (ref SW2) (pin 1))
(node (ref U1) (pin 19))
(node (ref SW14) (pin 1))
(node (ref SW8) (pin 1)))
(net (code 48) (name "Net-(D2-Pad2)")
(node (ref D2) (pin 2))
(node (ref SW2) (pin 2)))
(net (code 49) (name "Net-(D3-Pad2)")
(node (ref D3) (pin 2))
(node (ref SW3) (pin 2)))
(net (code 50) (name "Net-(D4-Pad2)")
(node (ref SW4) (pin 2))
(node (ref D4) (pin 2)))
(net (code 51) (name data)
(node (ref U1) (pin 2))
(node (ref JP1) (pin 1)))
(net (code 52) (name row0)
(node (ref U1) (pin 7))
(node (ref D3) (pin 1))
(net (code 49) (name "Net-(D2-Pad2)")
(node (ref SW2) (pin 2))
(node (ref D2) (pin 2)))
(net (code 50) (name "Net-(D3-Pad2)")
(node (ref SW3) (pin 2))
(node (ref D3) (pin 2)))
(net (code 51) (name "Net-(D4-Pad2)")
(node (ref D4) (pin 2))
(node (ref SW4) (pin 2)))
(net (code 52) (name data)
(node (ref JP1) (pin 1))
(node (ref U1) (pin 2)))
(net (code 53) (name row0)
(node (ref D2) (pin 1))
(node (ref D1) (pin 1))
(node (ref D6) (pin 1))
(node (ref D3) (pin 1))
(node (ref U1) (pin 7))
(node (ref D4) (pin 1))
(node (ref D5) (pin 1))
(node (ref D4) (pin 1)))
(net (code 53) (name row1)
(node (ref D7) (pin 1))
(node (ref D12) (pin 1))
(node (ref U1) (pin 8))
(node (ref D6) (pin 1))
(node (ref D1) (pin 1)))
(net (code 54) (name row1)
(node (ref D8) (pin 1))
(node (ref D12) (pin 1))
(node (ref D11) (pin 1))
(node (ref D10) (pin 1))
(node (ref D9) (pin 1)))
(net (code 54) (name row2)
(node (ref D15) (pin 1))
(node (ref D14) (pin 1))
(node (ref U1) (pin 9))
(node (ref D9) (pin 1))
(node (ref U1) (pin 8))
(node (ref D7) (pin 1)))
(net (code 55) (name row2)
(node (ref D13) (pin 1))
(node (ref D18) (pin 1))
(node (ref D17) (pin 1))
(node (ref D16) (pin 1)))
(net (code 55) (name row3)
(node (ref D16) (pin 1))
(node (ref U1) (pin 9))
(node (ref D14) (pin 1))
(node (ref D15) (pin 1)))
(net (code 56) (name row3)
(node (ref D21) (pin 1))
(node (ref D20) (pin 1))
(node (ref D19) (pin 1))
(node (ref U1) (pin 10)))
(net (code 56) (name "Net-(U1-Pad11)")
(net (code 57) (name "Net-(U1-Pad11)")
(node (ref U1) (pin 11)))
(net (code 57) (name "Net-(U1-Pad12)")
(net (code 58) (name "Net-(U1-Pad12)")
(node (ref U1) (pin 12)))
(net (code 58) (name reset)
(net (code 59) (name reset)
(node (ref RSW1) (pin 1))
(node (ref U1) (pin 22)))
(net (code 59) (name "Net-(U1-Pad13)")
(net (code 60) (name "Net-(U1-Pad13)")
(node (ref U1) (pin 13)))
(net (code 60) (name "Net-(D9-Pad2)")
(node (ref SW9) (pin 2))
(node (ref D9) (pin 2)))
(net (code 61) (name "Net-(D10-Pad2)")
(node (ref SW10) (pin 2))
(node (ref D10) (pin 2)))
(net (code 62) (name "Net-(D11-Pad2)")
(net (code 61) (name "Net-(D9-Pad2)")
(node (ref D9) (pin 2))
(node (ref SW9) (pin 2)))
(net (code 62) (name "Net-(D10-Pad2)")
(node (ref D10) (pin 2))
(node (ref SW10) (pin 2)))
(net (code 63) (name "Net-(D11-Pad2)")
(node (ref D11) (pin 2))
(node (ref SW11) (pin 2)))
(net (code 63) (name "Net-(D12-Pad2)")
(net (code 64) (name "Net-(D12-Pad2)")
(node (ref D12) (pin 2))
(node (ref SW12) (pin 2)))
(net (code 64) (name "Net-(D5-Pad2)")
(node (ref SW5) (pin 2))
(node (ref D5) (pin 2)))
(net (code 65) (name "Net-(D6-Pad2)")
(net (code 65) (name "Net-(D5-Pad2)")
(node (ref D5) (pin 2))
(node (ref SW5) (pin 2)))
(net (code 66) (name "Net-(D6-Pad2)")
(node (ref SW6) (pin 2))
(node (ref D6) (pin 2)))
(net (code 66) (name col0)
(net (code 67) (name col0)
(node (ref U1) (pin 20))
(node (ref SW7) (pin 1))
(node (ref SW13) (pin 1))
(node (ref SW1) (pin 1)))
(net (code 67) (name "Net-(D1-Pad2)")
(node (ref SW1) (pin 1))
(node (ref SW13) (pin 1)))
(net (code 68) (name "Net-(D1-Pad2)")
(node (ref SW1) (pin 2))
(node (ref D1) (pin 2)))
(net (code 68) (name "Net-(D8-Pad2)")
(node (ref D8) (pin 2))
(node (ref SW8) (pin 2)))
(net (code 69) (name LED)
(net (code 69) (name "Net-(D8-Pad2)")
(node (ref SW8) (pin 2))
(node (ref D8) (pin 2)))
(net (code 70) (name LED)
(node (ref U1) (pin 1))
(node (ref L21) (pin 3))
(node (ref J3) (pin 2))
(node (ref U1) (pin 1)))
(net (code 70) (name SDA)
(node (ref R1) (pin 2))
(node (ref U1) (pin 5))
(node (ref JP5) (pin 1))
(node (ref JP6) (pin 1)))))
(node (ref J3) (pin 2)))))

View File

@ -627,7 +627,7 @@ U 1 1 5A5EB9E2
P 1650 3300
F 0 "RSW1" H 1800 3410 50 0000 C CNN
F 1 "SW_PUSH" H 1650 3220 50 0000 C CNN
F 2 "kbd:SW_3.5x6.0_TH" H 1650 3300 50 0001 C CNN
F 2 "kbd:ResetSW" H 1650 3300 50 0001 C CNN
F 3 "" H 1650 3300 50 0000 C CNN
1 1650 3300
1 0 0 -1

View File

@ -36,59 +36,59 @@ def set_matrix_position(ref_prefix, matrix):
pcb = pcbnew.GetBoard()
# ProMicro
set_position('U1', 115.25, 20.25, 0)
#set_position('U1', 115.25, 20.25, 0)
# OLED
set_position('J2', 110.75, 38.5, 0)
#set_position('J2', 110.75, 38.5, 0)
# OLED JP
set_position('JP2', 118.375, 35.25, -90)
set_position('JP3', 115.875, 35.25, -90)
set_position('JP4', 113.375, 35.25, -90)
set_position('JP5', 110.875, 35.25, -90)
set_position('JP6', 118.375, 35.25, -90)
set_position('JP7', 115.875, 35.25, -90)
set_position('JP8', 113.375, 35.25, -90)
set_position('JP9', 110.875, 35.25, -90)
#set_position('JP2', 118.375, 35.25, -90)
#set_position('JP3', 115.875, 35.25, -90)
#set_position('JP4', 113.375, 35.25, -90)
#set_position('JP5', 110.875, 35.25, -90)
#set_position('JP6', 118.375, 35.25, -90)
#set_position('JP7', 115.875, 35.25, -90)
#set_position('JP8', 113.375, 35.25, -90)
#set_position('JP9', 110.875, 35.25, -90)
# Undergrow LED
set_position('J3', 102, 29.5, 0)
#set_position('J3', 102, 29.5, 0)
# TRRS Jack
set_position('J1', 124.75, 45, -90)
#set_position('J1', 124.75, 45, -90)
# Reset Switch
set_position('RSW1', 120, 51, 0)
#set_position('RSW1', 120, 51, 0)
# R
set_position('R1', 105.5, 46, 90)
set_position('R2', 108, 46, 90)
#set_position('R1', 105.5, 46, 90)
#set_position('R2', 108, 46, 90)
# JP1
set_position('JP1', 105.5, 41, 0)
#set_position('JP1', 105.5, 41, 0)
# Switch
set_matrix_position('SW', [
[[0, 0.375*PITCH, 0], [0, 0.375*PITCH, 0], [0, 0.125*PITCH, 0], [0, 0*PITCH, 0], [0, 0.125*PITCH, 0], [0, 0.25*PITCH, 0]],
[[0, 0.375*PITCH, 0], [0, 0.375*PITCH, 0], [0, 0.125*PITCH, 0], [0, 0*PITCH, 0], [0, 0.125*PITCH, 0], [0, 0.25*PITCH, 0]],
[[0, 0.375*PITCH, 0], [0, 0.375*PITCH, 0], [0, 0.125*PITCH, 0], [0, 0*PITCH, 0], [0, 0.125*PITCH, 0], [0, 0.25*PITCH, 0]],
[[3.5*PITCH, 0*PITCH+3, 0], [3.5*PITCH+2, 0.25*PITCH+1, 345], [3.5*PITCH+5.25, 0.25*PITCH+4.75, 240]]
[[0, 0.375*PITCH, 180], [0, 0.375*PITCH, 180], [0, 0.125*PITCH, 180], [0, 0*PITCH, 180], [0, 0.125*PITCH, 180], [0, 0.25*PITCH, 180]],
[[0, 0.375*PITCH, 180], [0, 0.375*PITCH, 180], [0, 0.125*PITCH, 180], [0, 0*PITCH, 180], [0, 0.125*PITCH, 180], [0, 0.25*PITCH, 180]],
[[0, 0.375*PITCH, 180], [0, 0.375*PITCH, 180], [0, 0.125*PITCH, 180], [0, 0*PITCH, 180], [0, 0.125*PITCH, 180], [0, 0.25*PITCH, 180]],
[[3.5*PITCH, 0*PITCH+3, 180], [3.5*PITCH+2, 0.25*PITCH+1, 160], [3.5*PITCH+5.25, 0.25*PITCH+4.75, 240]]
])
# Diode
set_matrix_position('D', [
[[-8, 0.375*PITCH, 90], [8, 0.375*PITCH, 90], [8, 0.125*PITCH, 90], [8, 0*PITCH, 90], [8, 0.125*PITCH, 90], [-8, 0.25*PITCH, 90]],
[[-8, 0.375*PITCH, 90], [8, 0.375*PITCH, 90], [8, 0.125*PITCH, 90], [8, 0*PITCH, 90], [8, 0.125*PITCH, 90], [-8, 0.25*PITCH, 90]],
[[-8, 0.375*PITCH, 90], [8, 0.375*PITCH, 90], [8, 0.125*PITCH, 90], [8, 0*PITCH, 90], [8, 0.125*PITCH, 90], [-8, 0.25*PITCH, 90]],
[[3.5*PITCH+8, 0*PITCH+3, 90], [3.5*PITCH+8+3, 0.25*PITCH, 90], [3.5*PITCH-8+3, 0.25*PITCH, 90]]
[[-8, 0.375*PITCH, 270], [8, 0.375*PITCH, 270], [8, 0.125*PITCH, 270], [8, 0*PITCH, 270], [8, 0.125*PITCH, 270], [-8, 0.25*PITCH-2.375, 270]],
[[-8, 0.375*PITCH, 270], [8, 0.375*PITCH, 270], [8, 0.125*PITCH, 270], [8, 0*PITCH, 270], [8, 0.125*PITCH, 270], [-8, 0.25*PITCH-2.375, 270]],
[[-8, 0.375*PITCH, 270], [8, 0.375*PITCH, 270], [8, 0.125*PITCH, 270], [8, 0*PITCH, 270], [8, 0.125*PITCH, 270], [-8, 0.25*PITCH-2.375, 270]],
[[3.5*PITCH-8, 0*PITCH+3, 270], [3.5*PITCH-11, 0.25*PITCH-2, 270], [3.5*PITCH-27, 0.25*PITCH-2, 270]]
])
# LED
set_matrix_position('L', [
[[0, 0.375*PITCH+5.5, 0], [0, 0.375*PITCH+5.5, 0], [0, 0.125*PITCH+5.5, 0], [0, 0*PITCH+5.5, 0], [0, 0.125*PITCH+5.5, 0], [0, 0.25*PITCH+5.5, 0]],
[[0, 0.375*PITCH+5.5, 0], [0, 0.375*PITCH+5.5, 0], [0, 0.125*PITCH+5.5, 0], [0, 0*PITCH+5.5, 0], [0, 0.125*PITCH+5.5, 0], [0, 0.25*PITCH+5.5, 0]],
[[0, 0.375*PITCH+5.5, 0], [0, 0.375*PITCH+5.5, 0], [0, 0.125*PITCH+5.5, 0], [0, 0*PITCH+5.5, 0], [0, 0.125*PITCH+5.5, 0], [0, 0.25*PITCH+5.5, 0]],
[[3.5*PITCH, 0*PITCH+5.5+3, 0], [3.5*PITCH+0.5, 0.25*PITCH+5.5+1, 345], [3.5*PITCH+0.5, 0.25*PITCH+8.5-6.5, 240]]
[[0, 0.375*PITCH-5.5, 0], [0, 0.375*PITCH-5.5, 0], [0, 0.125*PITCH-5.5, 0], [0, 0*PITCH-5.5, 0], [0, 0.125*PITCH-5.5, 0], [0, 0.25*PITCH-5.5, 0]],
[[0, 0.375*PITCH-5.5, 0], [0, 0.375*PITCH-5.5, 0], [0, 0.125*PITCH-5.5, 0], [0, 0*PITCH-5.5, 0], [0, 0.125*PITCH-5.5, 0], [0, 0.25*PITCH-5.5, 0]],
[[0, 0.375*PITCH-5.5, 0], [0, 0.375*PITCH-5.5, 0], [0, 0.125*PITCH-5.5, 0], [0, 0*PITCH-5.5, 0], [0, 0.125*PITCH-5.5, 0], [0, 0.25*PITCH-5.5, 0]],
[[3.5*PITCH, 0*PITCH-5.5+3, 0], [3.5*PITCH+3.5, 0.25*PITCH-5.25+1, 165], [3.5*PITCH+0.5, 0.25*PITCH+8.5-6.5, 240]]
])
#hole_xn = 8