Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
637ded0b1e
135 changed files with 9026 additions and 106 deletions
|
|
@ -20,100 +20,288 @@
|
|||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layout_aliases": {
|
||||
"LAYOUT": "LAYOUT_all"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
{"label": "K00", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "K01", "matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"label": "K02", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "K03", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "K04", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "K05", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "K06", "matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"label": "K07", "matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"label": "K08", "matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"label": "K09", "matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"label": "K0A", "matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"label": "K0B", "matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"label": "K0C", "matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"label": "K0D", "matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"label": "K0E", "matrix": [0, 14], "x": 14, "y": 0},
|
||||
{"label": "K10", "matrix": [1, 0], "x": 15, "y": 0},
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [0, 14], "x": 15, "y": 0},
|
||||
|
||||
{"label": "K11", "matrix": [1, 1], "x": 0, "y": 1},
|
||||
{"label": "K12", "matrix": [1, 2], "x": 1, "y": 1},
|
||||
{"label": "K13", "matrix": [1, 3], "x": 2, "y": 1},
|
||||
{"label": "K14", "matrix": [1, 4], "x": 3, "y": 1},
|
||||
{"label": "K15", "matrix": [1, 5], "x": 4, "y": 1},
|
||||
{"label": "K16", "matrix": [1, 6], "x": 5, "y": 1},
|
||||
{"label": "K17", "matrix": [1, 7], "x": 6, "y": 1},
|
||||
{"label": "K18", "matrix": [1, 8], "x": 7, "y": 1},
|
||||
{"label": "K19", "matrix": [1, 9], "x": 8, "y": 1},
|
||||
{"label": "K1A", "matrix": [1, 10], "x": 9, "y": 1},
|
||||
{"label": "K1B", "matrix": [1, 11], "x": 10, "y": 1},
|
||||
{"label": "K1C", "matrix": [1, 12], "x": 11, "y": 1},
|
||||
{"label": "K1D", "matrix": [1, 13], "x": 12, "y": 1},
|
||||
{"label": "K1E", "matrix": [1, 14], "x": 13, "y": 1, "w": 2},
|
||||
{"label": "K20", "matrix": [2, 0], "x": 15, "y": 1},
|
||||
{"matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1, "w": 2},
|
||||
{"matrix": [1, 14], "x": 15, "y": 1},
|
||||
|
||||
{"label": "K21", "matrix": [2, 1], "x": 0, "y": 2, "w": 1.5},
|
||||
{"label": "K22", "matrix": [2, 2], "x": 1.5, "y": 2},
|
||||
{"label": "K23", "matrix": [2, 3], "x": 2.5, "y": 2},
|
||||
{"label": "K24", "matrix": [2, 4], "x": 3.5, "y": 2},
|
||||
{"label": "K25", "matrix": [2, 5], "x": 4.5, "y": 2},
|
||||
{"label": "K26", "matrix": [2, 6], "x": 5.5, "y": 2},
|
||||
{"label": "K27", "matrix": [2, 7], "x": 6.5, "y": 2},
|
||||
{"label": "K28", "matrix": [2, 8], "x": 7.5, "y": 2},
|
||||
{"label": "K29", "matrix": [2, 9], "x": 8.5, "y": 2},
|
||||
{"label": "K2A", "matrix": [2, 10], "x": 9.5, "y": 2},
|
||||
{"label": "K2B", "matrix": [2, 11], "x": 10.5, "y": 2},
|
||||
{"label": "K2C", "matrix": [2, 12], "x": 11.5, "y": 2},
|
||||
{"label": "K2D", "matrix": [2, 13], "x": 12.5, "y": 2},
|
||||
{"label": "K2E", "matrix": [2, 14], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"label": "K30", "matrix": [3, 0], "x": 15, "y": 2},
|
||||
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2},
|
||||
{"matrix": [2, 13], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"matrix": [2, 14], "x": 15, "y": 2},
|
||||
|
||||
{"label": "K31", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.75},
|
||||
{"label": "K32", "matrix": [3, 2], "x": 1.75, "y": 3},
|
||||
{"label": "K33", "matrix": [3, 3], "x": 2.75, "y": 3},
|
||||
{"label": "K34", "matrix": [3, 4], "x": 3.75, "y": 3},
|
||||
{"label": "K35", "matrix": [3, 5], "x": 4.75, "y": 3},
|
||||
{"label": "K36", "matrix": [3, 6], "x": 5.75, "y": 3},
|
||||
{"label": "K37", "matrix": [3, 7], "x": 6.75, "y": 3},
|
||||
{"label": "K38", "matrix": [3, 8], "x": 7.75, "y": 3},
|
||||
{"label": "K39", "matrix": [3, 9], "x": 8.75, "y": 3},
|
||||
{"label": "K3A", "matrix": [3, 10], "x": 9.75, "y": 3},
|
||||
{"label": "K3B", "matrix": [3, 11], "x": 10.75, "y": 3},
|
||||
{"label": "K3C", "matrix": [3, 12], "x": 11.75, "y": 3},
|
||||
{"label": "K3D", "matrix": [3, 13], "x": 12.75, "y": 3},
|
||||
{"label": "K3E", "matrix": [3, 14], "x": 13.75, "y": 3, "w": 1.25},
|
||||
{"label": "K40", "matrix": [4, 0], "x": 15, "y": 3},
|
||||
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3},
|
||||
{"matrix": [3, 12], "x": 12.75, "y": 3},
|
||||
{"matrix": [3, 13], "x": 13.75, "y": 3, "w": 1.25},
|
||||
{"matrix": [3, 14], "x": 15, "y": 3},
|
||||
|
||||
{"label": "K41", "matrix": [4, 1], "x": 0, "y": 4, "w": 2.25},
|
||||
{"label": "K42", "matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"label": "K43", "matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"label": "K44", "matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"label": "K45", "matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"label": "K46", "matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"label": "K47", "matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"label": "K48", "matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"label": "K49", "matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"label": "K4A", "matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"label": "K4B", "matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"label": "K4C", "matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"label": "K4D", "matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"label": "K4E", "matrix": [4, 14], "x": 15, "y": 4},
|
||||
{"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
|
||||
{"matrix": [4, 1], "x": 1.25, "y": 4},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"label": "K50", "matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"label": "K51", "matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"label": "K52", "matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"label": "K55", "matrix": [5, 5], "x": 3.75, "y": 5, "w": 5.25},
|
||||
{"label": "K58", "matrix": [5, 8], "x": 9, "y": 5},
|
||||
{"label": "K59", "matrix": [5, 9], "x": 10, "y": 5},
|
||||
{"label": "K5A", "matrix": [5, 10], "x": 11, "y": 5},
|
||||
{"label": "K5B", "matrix": [5, 11], "x": 12, "y": 5},
|
||||
{"label": "K5C", "matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"label": "K5D", "matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"label": "K5E", "matrix": [5, 14], "x": 15, "y": 5}
|
||||
{"matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 5], "x": 3.75, "y": 5, "w": 6.25},
|
||||
{"matrix": [5, 8], "x": 14, "y": 0},
|
||||
{"matrix": [5, 9], "x": 10, "y": 5},
|
||||
{"matrix": [5, 10], "x": 11, "y": 5},
|
||||
{"matrix": [5, 11], "x": 12, "y": 5},
|
||||
{"matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_75_ansi_rwkl": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [5, 8], "x": 14, "y": 0},
|
||||
{"matrix": [0, 14], "x": 15, "y": 0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1, "w": 2},
|
||||
{"matrix": [1, 14], "x": 15, "y": 1},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2},
|
||||
{"matrix": [2, 13], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"matrix": [2, 14], "x": 15, "y": 2},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3},
|
||||
{"matrix": [3, 13], "x": 12.75, "y": 3, "w": 2.25},
|
||||
{"matrix": [3, 14], "x": 15, "y": 3},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4, "w": 2.25},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 5], "x": 3.75, "y": 5, "w": 6.25},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5, "w": 1.5},
|
||||
{"matrix": [5, 11], "x": 11.5, "y": 5, "w": 1.5},
|
||||
{"matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_75_iso_rwkl": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [5, 8], "x": 14, "y": 0},
|
||||
{"matrix": [0, 14], "x": 15, "y": 0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1, "w": 2},
|
||||
{"matrix": [1, 14], "x": 15, "y": 1},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2},
|
||||
{"matrix": [2, 14], "x": 15, "y": 2},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3},
|
||||
{"matrix": [3, 12], "x": 12.75, "y": 3},
|
||||
{"matrix": [3, 13], "x": 13.75, "y": 2, "w": 1.25, "h": 2},
|
||||
{"matrix": [3, 14], "x": 15, "y": 3},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
|
||||
{"matrix": [4, 1], "x": 1.25, "y": 4},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"matrix": [5, 5], "x": 3.75, "y": 5, "w": 6.25},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5, "w": 1.5},
|
||||
{"matrix": [5, 11], "x": 11.5, "y": 5, "w": 1.5},
|
||||
{"matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* |Ctrl|Win |Alt | Space |END|Alt |Ctrl|Left |Down|Rig|
|
||||
* `----------------------------------------------------------------'
|
||||
*/
|
||||
[0] = LAYOUT(
|
||||
[0] = LAYOUT_all(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME,KC_DEL,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC,KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSLS,KC_PGDN,
|
||||
|
|
@ -42,7 +42,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[1] = LAYOUT(
|
||||
[1] = LAYOUT_all(
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
||||
KC_TRNS,KC_TRNS,KC_UP, KC_TRNS,KC_TRNS,KC_TRNS,KC_CALC,KC_TRNS,KC_INS, KC_TRNS,KC_PSCR,KC_SCRL,KC_PAUS,KC_TRNS,KC_TRNS,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,57 @@
|
|||
// Copyright 2022 peepeetee (@peepeetee)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Base */
|
||||
/* Keymap 0: Default Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│Hm │End│Del│
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bkspc │PgU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │PgD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │Enter │Ins│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │Up │Fn │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Ctrl│GUI │Alt │Space │Alt │Ctrl │Lft│Dwn│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[0] = LAYOUT_75_ansi_rwkl(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_END, KC_DEL,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_INS,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* Keymap 1: Fn Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │Up │ │ │ │Cal│ │Ins│ │PSc│SLk│Pau│ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │BL Brt│Lft│Dwn│Rgt│ │ │ │ │ │ │Hm │PUp│ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │BL Step │ │App│ │ │ │Vl-│Vl+│Mut│End│PDn│ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Slp │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[1] = LAYOUT_75_ansi_rwkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, _______,
|
||||
BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, _______,
|
||||
BL_STEP, _______, KC_APP, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, _______, _______, _______,
|
||||
KC_SLEP, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
// Copyright 2022 peepeetee (@peepeetee)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Base */
|
||||
/* Keymap 0: Default Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│Hm │End│Del│
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bkspc │PgU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │PgD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐Ent ├───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │Ins│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │Up │Fn │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Ctrl│GUI │Alt │Space │Alt │Ctrl │Lft│Dwn│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[0] = LAYOUT_75_iso_rwkl(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_END, KC_DEL,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_INS,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* Keymap 1: Fn Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │Up │ │ │ │Cal│ │Ins│ │PSc│SLk│Pau│ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ ├───┤
|
||||
* │BL Brt│Lft│Dwn│Rgt│ │ │ │ │ │ │Hm │PUp│ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┼───┤
|
||||
* │BL Step │ │App│ │ │ │Vl-│Vl+│Mut│End│PDn│ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Slp │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[1] = LAYOUT_75_iso_rwkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______,
|
||||
BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, _______, _______,
|
||||
BL_STEP, _______, _______, KC_APP, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, _______, _______, _______,
|
||||
KC_SLEP, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
||||
24
keyboards/amjkeyboard/amj84/matrix_diagram.md
Normal file
24
keyboards/amjkeyboard/amj84/matrix_diagram.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Matrix Diagram for AMJKeyboard AMJ84
|
||||
|
||||
```
|
||||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
│00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0A │0B │0C │0D │58 │0E │
|
||||
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
│10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1A │1B │1C │1D │1E │
|
||||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ ┌─────┐
|
||||
│20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2A │2B │2C │2D │2E │ │ │
|
||||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ ┌──┴┐3D │ ISO Enter
|
||||
│30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3A │3B │3D │3E │ │3C │ │
|
||||
├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ └───┴────┘
|
||||
│40 │41 │42 │43 │44 │45 │46 │47 │48 │49 │4A │4B │4C │4D │4E │
|
||||
├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
|
||||
│50 │51 │52 │55 │59 │5A │5B │5C │5D │5E │
|
||||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
|
||||
┌────────┐ └─────┬─────┘
|
||||
│40 │ 2.25u LShift │
|
||||
└────────┘ ┌─────┴─────┐
|
||||
┌─────┬───┬─────┬───────────────────────┬─────┬─────┐
|
||||
│50 │51 │52 │55 │5A │5B │ RWKL
|
||||
└─────┴───┴─────┴───────────────────────┴─────┴─────┘
|
||||
1.5u 1u 1.5u 6u
|
||||
```
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
"scroll_lock": "C5",
|
||||
"on_state": 0
|
||||
},
|
||||
"community_layouts": ["tkl_ansi"],
|
||||
"community_layouts": ["tkl_ansi", "tkl_jis"],
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"scroll_lock": "C5",
|
||||
"on_state": 0
|
||||
},
|
||||
"community_layouts": ["tkl_ansi"],
|
||||
"community_layouts": ["tkl_ansi", "tkl_jis"],
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
},
|
||||
"vid": "0x6369"
|
||||
},
|
||||
"community_layouts": ["tkl_jis", "tkl_iso_tsangan", "tkl_ansi_tsangan"],
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"device_version": "0.0.1"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"community_layouts": ["fullsize_ansi", "fullsize_iso"],
|
||||
"community_layouts": ["fullsize_ansi", "fullsize_iso", "fullsize_jis"],
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
|
|
|
|||
90
keyboards/custommk/evo70_r2/config.h
Normal file
90
keyboards/custommk/evo70_r2/config.h
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// No VBUS sense needed
|
||||
#define BOARD_OTG_NOVBUSSENS 1
|
||||
|
||||
#define STM32_LSECLK 32768
|
||||
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 16
|
||||
#define MATRIX_ROW_PINS { A8, A1, A2, B1, A7 }
|
||||
|
||||
// FRAM configuration
|
||||
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A0
|
||||
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 4 // 48MHz / 4 = 12MHz; max supported by MB85R64 is 20MHz
|
||||
|
||||
// External flash configuration
|
||||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B12
|
||||
#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 1 // 48MHz; max supported by W25Q128JV is 133MHz
|
||||
#define EXTERNAL_FLASH_SIZE (16 * 1024 * 1024) //128Mbit or 16MByte
|
||||
#define EXTERNAL_FLASH_SPI_TIMEOUT 200000 //datasheet max is 200seconds for flash chip erase
|
||||
|
||||
// SPI Configuration
|
||||
#define SPI_DRIVER SPID1
|
||||
#define SPI_SCK_PIN B3
|
||||
#define SPI_SCK_PAL_MODE 5
|
||||
#define SPI_MOSI_PIN B5
|
||||
#define SPI_MOSI_PAL_MODE 5
|
||||
#define SPI_MISO_PIN B4
|
||||
#define SPI_MISO_PAL_MODE 5
|
||||
|
||||
|
||||
// SPI LCD Configuration
|
||||
#define LCD_RST_PIN B2
|
||||
#define LCD_CS_PIN A9
|
||||
#define LCD_DC_PIN B0
|
||||
#ifndef LCD_ACTIVITY_TIMEOUT
|
||||
#define LCD_ACTIVITY_TIMEOUT 30000
|
||||
#endif
|
||||
|
||||
// I2C OLED Configuration
|
||||
#define I2C1_SCL_PIN B6
|
||||
#define I2C1_SDA_PIN B9
|
||||
|
||||
#define I2C1_CLOCK_SPEED 400000
|
||||
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2
|
||||
|
||||
#define OLED_DISABLE_TIMEOUT
|
||||
|
||||
#define COL_SHIFT_IN_PIN B14
|
||||
#define COL_SHIFT_CLK_PIN B15
|
||||
|
||||
#define QUANTUM_PAINTER_SUPPORTS_256_PALETTE TRUE
|
||||
#define QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS TRUE
|
||||
|
||||
#define OLED_UPDATE_INTERVAL 66
|
||||
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD3
|
||||
#define BACKLIGHT_PWM_CHANNEL 1
|
||||
#define BACKLIGHT_PAL_MODE 2
|
||||
|
||||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
|
||||
#define TAP_CODE_DELAY 10
|
||||
|
||||
#define AUDIO_PIN B8
|
||||
#define AUDIO_PWM_DRIVER PWMD4
|
||||
#define AUDIO_PWM_CHANNEL 3
|
||||
#define AUDIO_PWM_PAL_MODE 2
|
||||
#define AUDIO_STATE_TIMER GPTD5
|
||||
#define AUDIO_INIT_DELAY
|
||||
36
keyboards/custommk/evo70_r2/halconf.h
Normal file
36
keyboards/custommk/evo70_r2/halconf.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_I2C TRUE
|
||||
|
||||
#define HAL_USE_PWM TRUE
|
||||
|
||||
#define HAL_USE_RTC TRUE
|
||||
|
||||
#define HAL_USE_SPI TRUE
|
||||
|
||||
#define HAL_USE_GPT TRUE
|
||||
|
||||
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
|
||||
|
||||
#define SERIAL_BUFFERS_SIZE 256
|
||||
|
||||
// This enables interrupt-driven mode
|
||||
#define SPI_USE_WAIT TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
152
keyboards/custommk/evo70_r2/info.json
Normal file
152
keyboards/custommk/evo70_r2/info.json
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
{
|
||||
"keyboard_name": "EVO70 R2",
|
||||
"url": "https://shop.custommk.com/collections/evo70/products/evo70",
|
||||
"maintainer": "customMK",
|
||||
"manufacturer": "customMK",
|
||||
"tags": ["70%", "encoder", "underglow", "backlight"],
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true,
|
||||
"encoder": true,
|
||||
"quantum_painter": true,
|
||||
"oled": true,
|
||||
"rgblight": true,
|
||||
"backlight": true,
|
||||
"audio": true
|
||||
},
|
||||
"usb": {
|
||||
"vid": "0xF35B",
|
||||
"pid": "0xFAB6",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"processor": "STM32F411",
|
||||
"bootloader": "stm32-dfu",
|
||||
"rgblight": {
|
||||
"led_count": 48,
|
||||
"hue_steps": 4,
|
||||
"saturation_steps": 8,
|
||||
"brightness_steps": 4,
|
||||
"max_brightness": 128,
|
||||
"layers": {
|
||||
"enabled": true
|
||||
},
|
||||
"animations": {
|
||||
"alternating": true,
|
||||
"breathing": true,
|
||||
"christmas": true,
|
||||
"knight": true,
|
||||
"rainbo_mood": true,
|
||||
"rainbow_swirl": true,
|
||||
"rgb_test": true,
|
||||
"snake": true,
|
||||
"static_gradient": true,
|
||||
"twinkle": true
|
||||
}
|
||||
},
|
||||
"ws2812": {
|
||||
"driver": "pwm",
|
||||
"pin": "A10"
|
||||
},
|
||||
"backlight": {
|
||||
"driver": "pwm",
|
||||
"breathing": true,
|
||||
"breathing_period": 6,
|
||||
"levels": 17,
|
||||
"pin": "A6"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"label":"Encoder", "matrix": [1, 0], "x":0.5, "y":0},
|
||||
{"label":"Esc", "matrix": [0, 0], "x":2.5, "y":0},
|
||||
{"label":"1", "matrix": [0, 2], "x":3.5, "y":0},
|
||||
{"label":"2", "matrix": [0, 3], "x":4.5, "y":0},
|
||||
{"label":"3", "matrix": [0, 4], "x":5.5, "y":0},
|
||||
{"label":"4", "matrix": [0, 5], "x":6.5, "y":0},
|
||||
{"label":"5", "matrix": [0, 6], "x":7.5, "y":0},
|
||||
{"label":"6", "matrix": [0, 7], "x":8.5, "y":0},
|
||||
{"label":"7", "matrix": [0, 8], "x":9.5, "y":0},
|
||||
{"label":"8", "matrix": [0, 9], "x":10.5, "y":0},
|
||||
{"label":"9", "matrix": [0, 10], "x":11.5, "y":0},
|
||||
{"label":"0", "matrix": [0, 11], "x":12.5, "y":0},
|
||||
{"label":"-", "matrix": [0, 12], "x":13.5, "y":0},
|
||||
{"label":"=", "matrix": [0, 13], "x":14.5, "y":0},
|
||||
{"label":"Backspace", "matrix": [0, 14], "x":15.5, "y":0, "w":2},
|
||||
{"label":"Delete", "matrix": [0, 15], "x":17.5, "y":0},
|
||||
|
||||
{"label":"Tab", "matrix": [1, 1], "x":2.5, "y":1, "w":1.5},
|
||||
{"label":"Q", "matrix": [1, 2], "x":4, "y":1},
|
||||
{"label":"W", "matrix": [1, 3], "x":5, "y":1},
|
||||
{"label":"E", "matrix": [1, 4], "x":6, "y":1},
|
||||
{"label":"R", "matrix": [1, 5], "x":7, "y":1},
|
||||
{"label":"T", "matrix": [1, 6], "x":8, "y":1},
|
||||
{"label":"Y", "matrix": [1, 7], "x":9, "y":1},
|
||||
{"label":"U", "matrix": [1, 8], "x":10, "y":1},
|
||||
{"label":"I", "matrix": [1, 9], "x":11, "y":1},
|
||||
{"label":"O", "matrix": [1, 10], "x":12, "y":1},
|
||||
{"label":"P", "matrix": [1, 11], "x":13, "y":1},
|
||||
{"label":"[", "matrix": [1, 12], "x":14, "y":1},
|
||||
{"label":"]", "matrix": [1, 13], "x":15, "y":1},
|
||||
{"label":"\\", "matrix": [1, 14], "x":16, "y":1, "w":1.5},
|
||||
{"label":"PgUp", "matrix": [1, 15], "x":17.5, "y":1},
|
||||
|
||||
{"label":"F1", "matrix": [2, 2], "x":0, "y":2},
|
||||
{"label":"F2", "matrix": [2, 0], "x":1, "y":2},
|
||||
{"label":"Caps Lock", "matrix": [2, 1], "x":2.5, "y":2, "w":1.75},
|
||||
{"label":"A", "matrix": [2, 3], "x":4.25, "y":2},
|
||||
{"label":"S", "matrix": [2, 4], "x":5.25, "y":2},
|
||||
{"label":"D", "matrix": [2, 5], "x":6.25, "y":2},
|
||||
{"label":"F", "matrix": [2, 6], "x":7.25, "y":2},
|
||||
{"label":"G", "matrix": [2, 7], "x":8.25, "y":2},
|
||||
{"label":"H", "matrix": [2, 8], "x":9.25, "y":2},
|
||||
{"label":"J", "matrix": [2, 9], "x":10.25, "y":2},
|
||||
{"label":"K", "matrix": [2, 10], "x":11.25, "y":2},
|
||||
{"label":"L", "matrix": [2, 11], "x":12.25, "y":2},
|
||||
{"label":";", "matrix": [2, 12], "x":13.25, "y":2},
|
||||
{"label":"'", "matrix": [2, 13], "x":14.25, "y":2},
|
||||
{"label":"Enter", "matrix": [2, 14], "x":15.25, "y":2, "w":2.25},
|
||||
{"label":"PgDn", "matrix": [2, 15], "x":17.5, "y":2},
|
||||
|
||||
{"label":"F3", "matrix": [3, 1], "x":0, "y":3},
|
||||
{"label":"F4", "matrix": [3, 0], "x":1, "y":3},
|
||||
{"label":"Shift", "matrix": [3, 2], "x":2.5, "y":3, "w":1.25},
|
||||
{"label":"\u2298", "matrix": [0, 1], "x":3.75, "y":3, "w":1},
|
||||
{"label":"Z", "matrix": [3, 3], "x":4.75, "y":3},
|
||||
{"label":"X", "matrix": [3, 4], "x":5.75, "y":3},
|
||||
{"label":"C", "matrix": [3, 5], "x":6.75, "y":3},
|
||||
{"label":"V", "matrix": [3, 6], "x":7.75, "y":3},
|
||||
{"label":"B", "matrix": [3, 7], "x":8.75, "y":3},
|
||||
{"label":"N", "matrix": [3, 8], "x":9.75, "y":3},
|
||||
{"label":"M", "matrix": [3, 9], "x":10.75, "y":3},
|
||||
{"label":",", "matrix": [3, 10], "x":11.75, "y":3},
|
||||
{"label":".", "matrix": [3, 11], "x":12.75, "y":3},
|
||||
{"label":"/", "matrix": [3, 12], "x":13.75, "y":3},
|
||||
{"label":"Shift", "matrix": [3, 13], "x":14.75, "y":3, "w":1.75},
|
||||
{"label":"Up", "matrix": [3, 14], "x":16.5, "y":3},
|
||||
{"label":"End", "matrix": [3, 15], "x":17.5, "y":3},
|
||||
|
||||
{"label":"F5", "matrix": [4, 3], "x":0, "y":4},
|
||||
{"label":"F6", "matrix": [4, 0], "x":1, "y":4},
|
||||
{"label":"Ctrl", "matrix": [4, 1], "x":2.5, "y":4, "w":1.25},
|
||||
{"label":"GUI", "matrix": [4, 2], "x":3.75, "y":4, "w":1.25},
|
||||
{"label":"Alt", "matrix": [4, 4], "x":5, "y":4, "w":1.25},
|
||||
{"label":"Space", "matrix": [4, 7], "x":6.25, "y":4, "w":6.25},
|
||||
{"label":"Alt", "matrix": [4, 10], "x":12.5, "y":4, "w":1.25},
|
||||
{"label":"Ctrl", "matrix": [4, 11], "x":13.75, "y":4, "w":1.25},
|
||||
{"label":"Left", "matrix": [4, 13], "x":15.5, "y":4},
|
||||
{"label":"Down", "matrix": [4, 14], "x":16.5, "y":4},
|
||||
{"label":"Right", "matrix": [4, 15], "x":17.5, "y":4}
|
||||
]
|
||||
}
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{ "pin_a": "B7", "pin_b": "A4", "resolution": 2}
|
||||
]
|
||||
}
|
||||
}
|
||||
33
keyboards/custommk/evo70_r2/keymaps/default/keymap.c
Normal file
33
keyboards/custommk/evo70_r2/keymaps/default/keymap.c
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
|
||||
KC_F1, KC_F2, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
||||
KC_F3, KC_F4, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||
KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU),
|
||||
};
|
||||
#endif
|
||||
13
keyboards/custommk/evo70_r2/keymaps/via/config.h
Normal file
13
keyboards/custommk/evo70_r2/keymaps/via/config.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright 2023 David Hoelscher (@customMK)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
// With 8k FRAM, max out dynamic keymap layers and macros
|
||||
// 5x16 matrix (160 bytes) and one encoder (4 bytes) consume 164 bytes per layer
|
||||
// 32 layers consumes 5248 bytes
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 32
|
||||
|
||||
// Most of the remaining space can be used for macros
|
||||
// QMK Macro keycode range allows up to 128 macros
|
||||
#define DYNAMIC_KEYMAP_MACRO_COUNT 128
|
||||
33
keyboards/custommk/evo70_r2/keymaps/via/keymap.c
Normal file
33
keyboards/custommk/evo70_r2/keymaps/via/keymap.c
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
|
||||
KC_F1, KC_F2, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
||||
KC_F3, KC_F4, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||
KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }
|
||||
};
|
||||
#endif
|
||||
2
keyboards/custommk/evo70_r2/keymaps/via/rules.mk
Normal file
2
keyboards/custommk/evo70_r2/keymaps/via/rules.mk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
117
keyboards/custommk/evo70_r2/matrix.c
Normal file
117
keyboards/custommk/evo70_r2/matrix.c
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
// Copyright 2023 David Hoelscher (@customMK)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "quantum.h"
|
||||
|
||||
// Pin definitions
|
||||
static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||
|
||||
void matrix_wait_for_pin(pin_t pin, uint8_t target_state) {
|
||||
rtcnt_t start = chSysGetRealtimeCounterX();
|
||||
rtcnt_t end = start + 5000;
|
||||
while (chSysIsCounterWithinX(chSysGetRealtimeCounterX(), start, end)) {
|
||||
if (readPin(pin) == target_state) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_wait_for_port(stm32_gpio_t *port, uint32_t target_bitmask) {
|
||||
rtcnt_t start = chSysGetRealtimeCounterX();
|
||||
rtcnt_t end = start + 5000;
|
||||
while (chSysIsCounterWithinX(chSysGetRealtimeCounterX(), start, end)) {
|
||||
if ((palReadPort(port) & target_bitmask) == target_bitmask) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void shift_pulse_clock(void) {
|
||||
writePinHigh(COL_SHIFT_CLK_PIN);
|
||||
matrix_wait_for_pin(COL_SHIFT_CLK_PIN, 1);
|
||||
writePinLow(COL_SHIFT_CLK_PIN);
|
||||
}
|
||||
|
||||
void matrix_init_custom(void) {
|
||||
//set all row pins as input with pullups
|
||||
for (int i = 0; i < MATRIX_ROWS; ++i) {
|
||||
writePinHigh(row_pins[i]);
|
||||
setPinInputHigh(row_pins[i]);
|
||||
}
|
||||
|
||||
//set all column pins high in ROW2COL matrix
|
||||
setPinOutput(COL_SHIFT_IN_PIN);
|
||||
setPinOutput(COL_SHIFT_CLK_PIN);
|
||||
writePinHigh(COL_SHIFT_IN_PIN);
|
||||
matrix_wait_for_pin(COL_SHIFT_IN_PIN, 1);
|
||||
|
||||
for (int i = 0; i < MATRIX_COLS; ++i) {
|
||||
shift_pulse_clock();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||
static matrix_row_t temp_matrix[MATRIX_ROWS] = {0};
|
||||
|
||||
writePinLow(COL_SHIFT_IN_PIN);
|
||||
matrix_wait_for_pin(COL_SHIFT_IN_PIN, 0);
|
||||
|
||||
// Setup the output column pin
|
||||
shift_pulse_clock();
|
||||
|
||||
writePinHigh(COL_SHIFT_IN_PIN);
|
||||
for (int current_col = 0; current_col < MATRIX_COLS; ++current_col) {
|
||||
|
||||
// Read the column ports
|
||||
uint32_t gpio_a = palReadPort(GPIOA);
|
||||
uint32_t gpio_b = palReadPort(GPIOB);
|
||||
|
||||
// row 0, pin A8
|
||||
int current_row = 0;
|
||||
if ((gpio_a & (1 << 8)) >> 8) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 1, pin A1
|
||||
current_row = 1;
|
||||
if ((gpio_a & (1 << 1)) >> 1) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 2, pin A2
|
||||
current_row = 2;
|
||||
if ((gpio_a & (1 << 2)) >> 2) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 3, pin B3
|
||||
current_row = 3;
|
||||
if ((gpio_b & (1 << 1)) >> 1) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
// row 4, pin A7
|
||||
current_row = 4;
|
||||
if ((gpio_a & (1 << 7)) >> 7) {
|
||||
temp_matrix[current_row] &= ~(1ul << current_col);
|
||||
} else {
|
||||
temp_matrix[current_row] |= (1ul << current_col);
|
||||
}
|
||||
|
||||
// Setup the output column pin
|
||||
shift_pulse_clock();
|
||||
|
||||
}
|
||||
|
||||
// Check if matrix has changed, return the last-read data
|
||||
bool changed = memcmp(current_matrix, temp_matrix, sizeof(temp_matrix)) != 0;
|
||||
if (changed) {
|
||||
memcpy(current_matrix, temp_matrix, sizeof(temp_matrix));
|
||||
}
|
||||
shift_pulse_clock();
|
||||
return changed;
|
||||
}
|
||||
58
keyboards/custommk/evo70_r2/mcuconf.h
Normal file
58
keyboards/custommk/evo70_r2/mcuconf.h
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/* Copyright 2023 David Hoelscher (@customMK)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef STM32_LSE_ENABLED
|
||||
#define STM32_LSE_ENABLED TRUE
|
||||
|
||||
#undef STM32_RTCSEL
|
||||
#define STM32_RTCSEL STM32_RTCSEL_LSE
|
||||
|
||||
// Used for underglow
|
||||
#undef STM32_PWM_USE_TIM1 //timer 1 channel 3
|
||||
#define STM32_PWM_USE_TIM1 TRUE
|
||||
|
||||
// Used for backlight
|
||||
//#undef STM32_PWM_USE_TIM2 //timer 2 channel ?
|
||||
//#define STM32_PWM_USE_TIM2 TRUE
|
||||
|
||||
// Used for backlight
|
||||
#undef STM32_PWM_USE_TIM3 //timer 3 channel 1
|
||||
#define STM32_PWM_USE_TIM3 TRUE
|
||||
|
||||
// Used for backlight
|
||||
//#undef STM32_GPT_USE_TIM3 //timer 3 channel 1
|
||||
//#define STM32_GPT_USE_TIM3 TRUE
|
||||
|
||||
// Used for backlight
|
||||
#undef STM32_PWM_USE_TIM4 //timer 4 channel ?
|
||||
#define STM32_PWM_USE_TIM4 TRUE
|
||||
|
||||
// Used for backlight
|
||||
#undef STM32_GPT_USE_TIM5 //timer 5 channel ?
|
||||
#define STM32_GPT_USE_TIM5 TRUE
|
||||
|
||||
// Used for FRAM and flash in example code
|
||||
#undef STM32_SPI_USE_SPI1
|
||||
#define STM32_SPI_USE_SPI1 TRUE
|
||||
|
||||
// Used for OLED
|
||||
#undef STM32_I2C_USE_I2C1
|
||||
#define STM32_I2C_USE_I2C1 TRUE
|
||||
|
||||
21
keyboards/custommk/evo70_r2/readme.md
Normal file
21
keyboards/custommk/evo70_r2/readme.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# EVO70 R2
|
||||
|
||||
EVO70 R2 is a 70% keyboard (65% w/left side function cluster) designed and produced by customMK.
|
||||
|
||||

|
||||
|
||||
* Keyboard Maintainer: [customMK](https://github.com/customMK)
|
||||
* Hardware Supported: EVO70 R2
|
||||
* Hardware Availability: [customMK](https://shop.custommk.com/collections/evo70/products/evo70)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make custommk/evo70_r2:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make custommk/evo70_r2:default:flash
|
||||
|
||||
To enter the bootloader, run the flashing command above, and then either plug in the USB connection while holding the top-left key, or alternatively, plug in the USB connection and then press the reset button on the PCB located under the space bar.
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
11
keyboards/custommk/evo70_r2/rules.mk
Normal file
11
keyboards/custommk/evo70_r2/rules.mk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
AUDIO_DRIVER = pwm_hardware
|
||||
|
||||
# project specific files
|
||||
SRC += matrix.c
|
||||
|
||||
EEPROM_DRIVER = spi
|
||||
|
||||
QUANTUM_PAINTER_DRIVERS = st7735_spi
|
||||
|
||||
CUSTOM_MATRIX = lite
|
||||
CIE1931_CURVE = yes
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue