c63e2c85f1
* working on new part definitions * draft of new part definitions * updates comments * starting new allocator * starting from the old allocator * alloc internals renaming * alloc minor renaming * alloc internal renaming * progress on new parts definition * progress on new part defs allocator * refactors BBLoc; progress on new allocator * more progress on new allocator * finishing new allocator * deleting old allocator * moves new allocator and part definitions * porting to new part definitions * refactors instructions for new definitions * debugging new allocator * fixes ground and power wire colros * fixing new part definition bugs * fixes wire end offsets; fixes NeoPixel placement * fixes colorGroup issue * fixes led matrix wiring * naming tweaks * fixes instructions regressions * typo
126 lines
4.3 KiB
JSON
126 lines
4.3 KiB
JSON
{
|
|
"buttonpair": {
|
|
"simulationBehavior": "buttonpair",
|
|
"visual": {
|
|
"builtIn": "buttonpair",
|
|
"width": 75,
|
|
"height": 45,
|
|
"pinDistance": 15,
|
|
"pinLocations": [
|
|
{"x": 0, "y": 0},
|
|
{"x": 30, "y": 45},
|
|
{"x": 45, "y": 0},
|
|
{"x": 75, "y": 45}
|
|
]
|
|
},
|
|
"numberOfPins": 4,
|
|
"pinDefinitions": [
|
|
{"target": "P14", "style": "male", "orientation": "-Z"},
|
|
{"target": "ground", "style": "male", "orientation": "-Z"},
|
|
{"target": "P15", "style": "male", "orientation": "-Z"},
|
|
{"target": "ground", "style": "male", "orientation": "-Z"}
|
|
],
|
|
"instantiation": {
|
|
"kind": "singleton"
|
|
},
|
|
"assembly": [
|
|
{"part": true},
|
|
{"pinIndices": [0, 1]},
|
|
{"pinIndices": [2, 3]}
|
|
]
|
|
},
|
|
"neopixel": {
|
|
"simulationBehavior": "neopixel",
|
|
"visual": {
|
|
"builtIn": "neopixel",
|
|
"width": 58,
|
|
"height": 113,
|
|
"pinDistance": 9,
|
|
"pinLocations": [
|
|
{"x": 10, "y": 0},
|
|
{"x": 19, "y": 0},
|
|
{"x": 28, "y": 0}
|
|
]
|
|
},
|
|
"numberOfPins": 3,
|
|
"pinDefinitions": [
|
|
{"target": {"pinInstantiationIdx": 0}, "style": "solder", "orientation": "+Z"},
|
|
{"target": "threeVolt", "style": "solder", "orientation": "+Z"},
|
|
{"target": "ground", "style": "solder", "orientation": "+Z"}
|
|
],
|
|
"instantiation": {
|
|
"kind": "function",
|
|
"fullyQualifiedName": "neopixel.create",
|
|
"argumentRoles": [
|
|
{"pinInstantiationIdx": 0, "partParameter": "pin"},
|
|
{"partParameter": "mode"}
|
|
]
|
|
},
|
|
"assembly": [
|
|
{"part": true, "pinIndices": [2]},
|
|
{"pinIndices": [0, 1]}
|
|
]
|
|
},
|
|
"ledmatrix": {
|
|
"visual": {
|
|
"builtIn": "ledmatrix",
|
|
"width": 105,
|
|
"height": 105,
|
|
"pinDistance": 15,
|
|
"pinLocations": [
|
|
{"x": 0, "y": 0},
|
|
{"x": 15, "y": 0},
|
|
{"x": 30, "y": 0},
|
|
{"x": 45, "y": 0},
|
|
{"x": 105, "y": 105},
|
|
{"x": 0, "y": 105},
|
|
{"x": 15, "y": 105},
|
|
{"x": 30, "y": 105},
|
|
{"x": 45, "y": 105},
|
|
{"x": 60, "y": 0}
|
|
]
|
|
},
|
|
"simulationBehavior": "ledmatrix",
|
|
"numberOfPins": 10,
|
|
"instantiation": {"kind": "singleton"},
|
|
"pinDefinitions": [
|
|
{"target": "P6", "style": "male", "orientation": "-Z", "colorGroup": 0},
|
|
{"target": "P7", "style": "male", "orientation": "-Z", "colorGroup": 0},
|
|
{"target": "P8", "style": "male", "orientation": "-Z", "colorGroup": 0},
|
|
{"target": "P9", "style": "male", "orientation": "-Z", "colorGroup": 0},
|
|
{"target": "P10", "style": "male", "orientation": "-Z", "colorGroup": 0},
|
|
{"target": "P12", "style": "male", "orientation": "-Z", "colorGroup": 1},
|
|
{"target": "P13", "style": "male", "orientation": "-Z", "colorGroup": 1},
|
|
{"target": "P16", "style": "male", "orientation": "-Z", "colorGroup": 1},
|
|
{"target": "P19", "style": "male", "orientation": "-Z", "colorGroup": 1},
|
|
{"target": "P20", "style": "male", "orientation": "-Z", "colorGroup": 1}
|
|
],
|
|
"assembly": [
|
|
{"part": true},
|
|
{"pinIndices": [0, 1, 2, 3, 4]},
|
|
{"pinIndices": [5, 6, 7, 8, 9]}
|
|
]
|
|
},
|
|
"speaker": {
|
|
"numberOfPins": 2,
|
|
"visual": {
|
|
"image": "/parts/speaker.svg",
|
|
"width": 500,
|
|
"height": 500,
|
|
"pinDistance": 70,
|
|
"pinLocations": [
|
|
{"x": 180, "y": 135},
|
|
{"x": 320, "y": 135}
|
|
]
|
|
},
|
|
"pinDefinitions": [
|
|
{"target": "P0", "style": "male", "orientation": "-Z"},
|
|
{"target": "ground", "style": "male", "orientation": "-Z"}
|
|
],
|
|
"instantiation": {"kind": "singleton"},
|
|
"assembly": [
|
|
{"part": true, "pinIndices": [0]},
|
|
{"pinIndices": [1]}
|
|
]
|
|
}
|
|
} |