Crates.io | kpt_lib |
lib.rs | kpt_lib |
version | 0.1.1 |
source | src |
created_at | 2021-01-26 01:05:11.21404 |
updated_at | 2021-02-15 15:25:19.847243 |
description | Keyboard plate prototyping |
homepage | |
repository | https://github.com/elasticrash/keyboard |
max_upload_size | |
id | 346710 |
size | 29,976 |
Layouts are in json format
basic structure is as follow
{
"layout": [
// rows
[
//keys
{
"size": float //size in units
"char": string //optional for UI module
"k_type": bit // 0: hidden (spacer) 1: visible (key)
},
],
[
],
[
],
[
]
],
"options": {
"plate_height": f32 //how thick the plate needs to be, defaults to 20mm
"screw_holes": bool // adds m2 sized holes at the edge of the plate
// not that useful at the moment, needs to be
// moved more in to allow heat inserts to be
// used
"row": [ // options for the rows (not supported yet)
],
"column": [ //options for the colums
{
"index": integer // column index (zero based)
"offset": float // vertical offset (used to achieve vertical stagger)
// column needs to be the same key size
// rows need to have the same amount keys/spacers
},
]
}
}