Move layouts for direct_pins boards to data driven (#19872)
This commit is contained in:
@@ -18,10 +18,21 @@
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [{"label":"0,0", "x":0, "y":0}, {"label":"0,1", "x":1, "y":0}, {"label":"0,2", "x":2, "y":0}, {"label":"1,0", "x":0, "y":1}, {"label":"1,1", "x":1, "y":1}, {"label":"1,2", "x":2, "y":1}]
|
||||
"layout": [
|
||||
{"x":0, "y":0, "matrix": [0, 0]},
|
||||
{"x":1, "y":0, "matrix": [0, 1]},
|
||||
{"x":2, "y":0, "matrix": [0, 2]},
|
||||
{"x":0, "y":1, "matrix": [1, 0]},
|
||||
{"x":1, "y":1, "matrix": [1, 1]},
|
||||
{"x":2, "y":1, "matrix": [1, 2]}
|
||||
]
|
||||
},
|
||||
"LAYOUT_2us": {
|
||||
"layout": [{"label":"0,0", "x":0, "y":0, "h":2}, {"label":"0,1", "x":1, "y":0, "h":2}, {"label":"0,2", "x":2, "y":0, "h":2}]
|
||||
"layout": [
|
||||
{"x":0, "y":0, "h":2, "matrix": [0, 0]},
|
||||
{"x":1, "y":0, "h":2, "matrix": [0, 1]},
|
||||
{"x":2, "y":0, "h":2, "matrix": [0, 2]}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user