Rename crkbd to corne classic and some fix

This commit is contained in:
foostan
2018-08-24 20:59:19 +09:00
parent d88f115f85
commit 09adc4774f
24 changed files with 14716 additions and 2153268 deletions

View File

@@ -0,0 +1,263 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Connector_Generic:Conn_01x01
#
DEF Connector_Generic:Conn_01x01 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Connector_Generic:Conn_01x01" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*
$ENDFPLIST
DRAW
S -50 5 0 -5 1 1 6 N
S -50 50 50 -50 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_Generic:Conn_01x03
#
DEF Connector_Generic:Conn_01x03 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Connector_Generic:Conn_01x03" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_1x??_*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -150 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_Generic:Conn_01x04
#
DEF Connector_Generic:Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Connector_Generic:Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_1x??_*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device:D
#
DEF Device:D D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "Device:D" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 50 -50 -50 N
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device:Jumper
#
DEF Device:Jumper JP 0 30 Y N 1 F N
F0 "JP" 0 150 50 H V C CNN
F1 "Device:Jumper" 0 -80 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
A 0 -26 125 1426 373 0 1 0 N -98 50 99 50
C -100 0 35 0 1 0 N
C 100 0 35 0 1 0 N
X 1 1 -300 0 165 R 50 50 0 1 P
X 2 2 300 0 165 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# Device:Jumper_NO_Small
#
DEF Device:Jumper_NO_Small JP 0 30 N N 1 F N
F0 "JP" 0 80 50 H V C CNN
F1 "Device:Jumper_NO_Small" 10 -60 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
C -40 0 20 0 1 0 N
C 40 0 20 0 1 0 N
X 1 1 -100 0 40 R 50 50 0 1 P
X 2 2 100 0 40 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# Device:R
#
DEF Device:R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "Device:R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# kbd:MJ-4PP-9
#
DEF kbd:MJ-4PP-9 J 0 40 Y Y 1 F N
F0 "J" 0 150 50 H V C CNN
F1 "kbd:MJ-4PP-9" 0 -150 50 H V C CNN
F2 "" 275 175 50 H I C CNN
F3 "" 275 175 50 H I C CNN
DRAW
S -75 -75 -125 50 0 1 0 N
S 125 100 -150 -100 0 1 12 N
P 3 0 1 0 -100 50 -100 75 125 75 N
P 4 0 1 0 -50 -75 -25 -50 0 -75 125 -75 N
P 4 0 1 0 0 -25 25 0 50 -25 125 -25 N
P 4 0 1 0 50 25 75 50 100 25 125 25 N
X ~ A 200 75 79 L 28 20 1 1 I
X ~ B 200 -75 79 L 28 20 1 1 I
X ~ C 200 -25 79 L 28 20 1 1 I
X ~ D 200 25 79 L 28 20 1 1 I
ENDDRAW
ENDDEF
#
# kbd:ProMicro
#
DEF kbd:ProMicro U 0 40 Y Y 1 F N
F0 "U" 0 950 60 H V C CNN
F1 "kbd:ProMicro" 0 -550 60 H V C CNN
F2 "" 100 -1050 60 H V C CNN
F3 "" 100 -1050 60 H V C CNN
DRAW
S -500 850 500 -450 0 1 0 N
X TX 1 -700 750 200 R 50 50 1 1 B
X E6 10 -700 -150 200 R 50 50 1 1 B
X B4 11 -700 -250 200 R 50 50 1 1 B
X B5 12 -700 -350 200 R 50 50 1 1 B
X B6 13 700 -350 200 L 50 50 1 1 B
X B2 14 700 -250 200 L 50 50 1 1 B
X B3 15 700 -150 200 L 50 50 1 1 B
X B1 16 700 -50 200 L 50 50 1 1 B
X F7 17 700 50 200 L 50 50 1 1 B
X F6 18 700 150 200 L 50 50 1 1 B
X F5 19 700 250 200 L 50 50 1 1 B
X RX 2 -700 650 200 R 50 50 1 1 B
X F4 20 700 350 200 L 50 50 1 1 B
X VCC 21 700 450 200 L 50 50 1 1 W
X RST 22 700 550 200 L 50 50 1 1 I
X GND 23 700 650 200 L 50 50 1 1 W
X RAW 24 700 750 200 L 50 50 1 1 w
X GND 3 -700 550 200 R 50 50 1 1 W
X GND 4 -700 450 200 R 50 50 1 1 W
X SDA 5 -700 350 200 R 50 50 1 1 B
X SCL 6 -700 250 200 R 50 50 1 1 B
X D4 7 -700 150 200 R 50 50 1 1 B
X C6 8 -700 50 200 R 50 50 1 1 B
X D7 9 -700 -50 200 R 50 50 1 1 B
ENDDRAW
ENDDEF
#
# kbd:SK6812MINI
#
DEF kbd:SK6812MINI L 0 40 Y Y 1 F N
F0 "L" 0 0 51 H V C CNN
F1 "kbd:SK6812MINI" 0 -50 16 H V C CNN
F2 "" 0 0 60 H I C CNN
F3 "" 0 0 60 H I C CNN
DRAW
S -150 150 150 -150 0 1 0 N
X DOUT 1 -200 100 47 R 28 28 1 1 O
X VSS 2 -200 -100 47 R 28 28 1 1 W
X DIN 3 200 -100 47 L 28 28 1 1 I
X VDD 4 200 100 47 L 28 28 1 1 W
ENDDRAW
ENDDEF
#
# kbd:SW_PUSH
#
DEF kbd:SW_PUSH SW 0 40 N N 1 F N
F0 "SW" 150 110 50 H V C CNN
F1 "kbd:SW_PUSH" 0 -80 50 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
DRAW
S -170 50 170 60 0 1 0 N
P 4 0 1 0 -40 60 -30 90 30 90 40 60 N
X 1 1 -300 0 200 R 50 50 0 1 P I
X 2 2 300 0 200 L 50 50 0 1 P I
ENDDRAW
ENDDEF
#
# power:GND
#
DEF power:GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "power:GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power:PWR_FLAG
#
DEF power:PWR_FLAG #FLG 0 0 N N 1 F P
F0 "#FLG" 0 75 50 H I C CNN
F1 "power:PWR_FLAG" 0 150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N
X pwr 1 0 0 0 U 50 50 0 0 w
ENDDRAW
ENDDEF
#
# power:VCC
#
DEF power:VCC #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power:VCC" 0 150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
C 0 75 25 0 1 0 N
P 2 0 1 0 0 0 0 50 N
X VCC 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
#End Library

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
update=2018年08月24日金曜日 18:16:26
version=1
last_client=kicad
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.500000000000
PcbTextSizeH=1.500000000000
PcbTextThickness=0.300000000000
ModuleTextSizeV=1.000000000000
ModuleTextSizeH=1.000000000000
ModuleTextSizeThickness=0.150000000000
SolderMaskClearance=0.000000000000
SolderMaskMinWidth=0.000000000000
DrawSegmentWidth=0.200000000000
BoardOutlineThickness=0.100000000000
ModuleOutlineThickness=0.150000000000
[cvpcb]
version=1
NetIExt=net
[general]
version=1
[eeschema]
version=1
LibDir=

File diff suppressed because it is too large Load Diff

108
corne-classic/pcb/pcbnew.py Normal file
View File

@@ -0,0 +1,108 @@
# execfile '/tmp/pcbnew.py'
import pcbnew
OFFSET_X = float(70)
OFFSET_Y = float(70)
PITCH = float(19)
def set_position(ref, xp, yp, orientation = 0):
module = pcb.FindModuleByReference(ref)
module.SetPosition(pcbnew.wxPointMM(xp + OFFSET_X, yp + OFFSET_Y))
module.SetOrientation( orientation * 10.0 )
def set_matrix_position(ref_prefix, matrix):
i = 0
for yi, rows in enumerate(matrix):
for xi, p in enumerate(rows):
i += 1
ref = "%s%s" % (ref_prefix, i)
xp = xi * PITCH + p[0]
yp = yi * PITCH + p[1]
orientation = p[2]
set_position(ref, xp, yp, orientation)
xp = xi * PITCH + p[0]
yp = yi * PITCH + p[1]
orientation = p[2]
set_position(ref, xp, yp, orientation)
module = pcb.FindModuleByReference(ref)
module.SetPosition(pcbnew.wxPointMM(xp + OFFSET_X, yp + OFFSET_Y))
module.SetOrientation( orientation * 10.0 )
#-------------
pcb = pcbnew.GetBoard()
# ProMicro
#set_position('U1', 115.25, 20.25, 0)
# OLED
#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)
# Undergrow LED
#set_position('J3', 102, 29.5, 0)
# TRRS Jack
#set_position('J1', 124.75, 45, -90)
# Reset Switch
#set_position('RSW1', 120, 51, 0)
# R
#set_position('R1', 105.5, 46, 90)
#set_position('R2', 108, 46, 90)
# JP1
#set_position('JP1', 105.5, 41, 0)
# Switch
set_matrix_position('SW', [
[[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, 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+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
#hole_yn = 6
#hole_ox = float(60.5)
#hole_oy = float(60.5)
#pitch = float(19)
#
#for hole_i in range(0, hole_xn * hole_yn):
# hole_xi = (hole_i / hole_yn)
# hole_yi = (hole_i % hole_yn) - 1
#
# hole_px = hole_ox + pitch * hole_xi
# hole_py = hole_oy + pitch * hole_yi
#
# hole_module = pcb.FindModuleByReference("H%s" % (hole_i+1))
# hole_module.SetPosition(pcbnew.wxPointMM(0, 0))

View File

@@ -0,0 +1,3 @@
(sym_lib_table
(lib (name kbd)(type Legacy)(uri /Users/adachi-kousuke/src/github.com/foostan/kbd/labrary/kbd.lib)(options "")(descr ""))
)