kpt_lib

Crates.iokpt_lib
lib.rskpt_lib
version0.1.1
sourcesrc
created_at2021-01-26 01:05:11.21404
updated_at2021-02-15 15:25:19.847243
descriptionKeyboard plate prototyping
homepage
repositoryhttps://github.com/elasticrash/keyboard
max_upload_size
id346710
size29,976
Stefanos Kouroupis (elasticrash)

documentation

https://docs.rs/kpt_lib

README

Keyboard plate prototyping (lib)

How to make your own layout

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
            },
        ]
    }
}

Supported exports

  • Dxf
  • Ply
Commit count: 40

cargo fmt