Boxes.py

self-Logo

Keypad

Generator for keypads with mechanical switches.

Settings for Finger Joints

angle
style style of the fingers
surroundingspacesmaximum space at the start and end in multiple of normal spaces
edge_widthspace below holes of FingerHoleEdge
fingerwidth of the fingers
playextra space to allow finger move in and out
spacespace between fingers
widthwidth of finger holes

Keypad Settings

hheight of the box
top1_thicknessthickness of the button hold layer, cherry like switches need 1.5mm or smaller to snap in
top2_enable enables another top layer that can hold CPG151101S11 hotswap sockets
top2_thicknessthickness of the hotplug layer, CPG151101S11 hotswap sockets need 1.2mm to 1.5mm
pcb_mount_enable adds holes for pcb mount switches
led_enable adds pin holes under switches for leds
diode_enable adds pin holes under switches for diodes
cutout_typeShape of the plate cutout: 'castle' allows for modding, and 'simple' is a tighter and simpler square
columns_definitionEach column is separated by '/', and is in the form 'nb_rows @ offset x repeat_count'. Nb_rows is the number of rows for this column. The offset is in mm and optional. Repeat_count is optional and repeats this column multiple times. Spaces are not important.For example '3x2 / 4@11' means we want 3 columns, the two first with 3 rows without offset, and the last with 4 rows starting at 11mm high.

Default Settings

thicknessthickness of the material
format format of resulting file
tabswidth of tabs holding the parts in place in mm (not supported everywhere)
debug print surrounding boxes for some structures
referenceprint reference rectangle with given length (zero to disable)
burnburn correction in mm (bigger values for tighter fit). Use BurnTest in "Parts and Samples" to find the right value.