Add Ergogen config (points and outlines)

This commit is contained in:
Lexi / Zoe 2024-02-18 17:55:38 +01:00
parent 2976523c11
commit 05283eadb0
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
2 changed files with 111 additions and 0 deletions

99
ergogen/config.yaml Normal file
View File

@ -0,0 +1,99 @@
# Ergogen config for the eepyPad
# Metadata
meta:
# Required version of Ergogen
engine: "4.0.5"
# Version of the board
version: "1.0"
author: binaryDiv
# Define units and default values used throughout this file
units:
# Redefine choc units (keycap size + 1mm clearance)
cx: 18.5
cy: 17.5
# Size of key rectangle in demo view (keycap size)
$default_width: cx-1
$default_height: cy-1
# Actual spacing of keys
$default_spread: cx
$default_padding: cy
# Define the points (i.e. keys)
points:
zones:
pad:
# Set anchor to fix placement on KiCad sheet
anchor:
shift: [ 100, -150 ]
# Key rows (from bottom to top)
rows:
one:
two:
three:
four:
five:
# Key columns (from left to right)
columns:
one:
two:
three:
four:
five:
rows.five.skip: true
# Generate outlines that can be used in the PCB and for 3D models
outlines:
# Outline of the key caps (like the demo preview; used for debugging)
_keys:
- what: rectangle
where: true
size: [ cx-1, cy-1 ]
# Maximum size of PCB (100x100mm to keep it cheap) for visualization
_max_outline:
- what: rectangle
where: pad_three_one
size: [ 100, 100 ]
adjust.shift: [ 0, 50 - 0.5cx ]
# Outline for the PCB
board:
- what: rectangle
where: pad_three_one
size: [ 100, 100 ]
adjust.shift: [ 0, 50 - 0.5cx ]
fillet: 4
# Debug version of board with key caps for visualization
board_debug:
- board
- ^_max_outline
- ^_keys
# Pro Micro board
- what: rectangle
operation: stack
where: pad_five_four
size: [ 18, 32 ]
adjust.shift: [ 0, cy + 5 ]
# Rotary encoder
- what: rectangle
operation: stack
where: pad_five_five
size: [ 14, 14 ]
# Cutouts for the switches
switch_cutouts:
- what: rectangle
where: true
size: 14
# Board outline with switch cutouts
switch_plate:
- board
- -switch_cutouts

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "eepyboard",
"author": "binaryDiv <eepyboard@binarydiv.dev>",
"description": "Dependencies to generate files for the eepyBoard (not an actual node project).",
"private": true,
"scripts": {
"ergogen": "ergogen -o ergogen/output ergogen"
},
"dependencies": {
"ergogen": "4.0.5"
}
}