Skip to content

Commit 502eb3c

Browse files
committed
Merge commit '653d3d6d6871863940490e9908d8f862c4f33f19' as 'pcbs/common/kbd'
2 parents dd8f9d2 + 653d3d6 commit 502eb3c

File tree

84 files changed

+463465
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+463465
-0
lines changed

pcbs/common/kbd/.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [foostan]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: kicad-footprints
2+
on: [pull_request]
3+
4+
jobs:
5+
on-pull-request:
6+
name: kicad-footprints
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.6
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.6
14+
- name: Init tools
15+
run: |
16+
make tools
17+
- name: Check lib table
18+
run: |
19+
make kicad-footprints-check-lib-table
20+
- name: Check all
21+
run: |
22+
make kicad-footprints-check-all
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: kicad-symbols
2+
on: [pull_request]
3+
4+
jobs:
5+
on-pull-request:
6+
name: kicad-symbols
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.6
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.6
14+
- name: Init tools
15+
run: |
16+
make tools
17+
- name: Check lib table
18+
run: |
19+
make kicad-symbols-check-lib-table
20+
- name: Comparelibs
21+
run: |
22+
make kicad-symbols-comparelibs

pcbs/common/kbd/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
kicad-library-utils
3+
old

pcbs/common/kbd/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 foostan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

pcbs/common/kbd/Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.PHONY: tools
2+
tools:
3+
if [ -d kicad-library-utils ]; then rm -rf kicad-library-utils; fi
4+
git clone --depth 1 https://github.com/KiCad/kicad-library-utils kicad-library-utils
5+
6+
.PHONY: kicad-symbols-comparelibs
7+
kicad-symbols-comparelibs:
8+
if [ -d old ]; then rm -rf old; fi
9+
git clone --depth 1 https://github.com/foostan/kbd old
10+
cd kicad-library-utils/schlib; \
11+
./comparelibs.py --new ../../kicad-symbols/*.lib --old ../../old/kicad-symbols/*.lib --check -v
12+
13+
.PHONY: kicad-symbols-check-lib-table
14+
kicad-symbols-check-lib-table:
15+
cd kicad-library-utils; \
16+
./check_lib_table.py ../kicad-symbols/*.lib --table ../kicad-symbols/sym-lib-table
17+
18+
.PHONY: kicad-footprints-check-all
19+
kicad-footprints-check-all:
20+
cd kicad-library-utils/pcb; \
21+
./check_kicad_mod.py ../../kicad-footprints/kbd.pretty/*.kicad_mod -vv
22+
23+
.PHONY: kicad-footprints-check-lib-table
24+
kicad-footprints-check-lib-table:
25+
cd kicad-library-utils; \
26+
./check_lib_table.py ../kicad-footprints/*.pretty --table ../kicad-footprints/fp-lib-table

pcbs/common/kbd/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# KBD - for building keyboard libraries
2+
3+
## KiCad Footprint Libraries
4+
5+
This repository contains the KiCad footprint libraries for building keyboard.
6+
7+
**The libraries in this repository are intended to be used with KiCad version 5 or with a nightly that supports rounded rectangle and polygon pads.**
8+
9+
Each footprint library is stored as a directory with the `.pretty` suffix. The footprint files are `.kicad_mod` files within
10+
11+
## KiCad Symbols
12+
13+
This repository contains the KiCad schematic symbol libraries for building keyboard.
14+
15+
**The libraries in this repositiory are intended for KiCad version 5.x**
16+
17+
Each symbol library is stored as a `.lib` and `.dcm` file pair.
18+
19+
## KiCad 3D Models
20+
This repository contains 3D models for rendering and MCAD integration, for use with [KiCad EDA](http://www.kicad.org/) software.
21+
The model needs a mechanical model source (a manually-modelled or script-generated file); its WRL counterpart file must be obtained as a conversion from the MCAD model
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.kicad_mod text=auto
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(fp_lib_table
2+
(lib (name kbd)(type KiCad)(uri ${KISYSMOD}/kbd.pretty)(options "")(descr ""))
3+
)

0 commit comments

Comments
 (0)