2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"buttonpair": {
|
2016-09-09 10:23:39 +02:00
|
|
|
"simulationBehavior": "buttonpair",
|
|
|
|
"visual": {
|
|
|
|
"builtIn": "buttonpair",
|
|
|
|
"width": 75,
|
|
|
|
"height": 45,
|
|
|
|
"pinDistance": 15,
|
|
|
|
"pinLocations": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 30,
|
|
|
|
"y": 45
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 45,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 75,
|
|
|
|
"y": 45
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"numberOfPins": 4,
|
|
|
|
"pinDefinitions": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"target": "P14",
|
|
|
|
"style": "male",
|
|
|
|
"orientation": "-Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "ground",
|
|
|
|
"style": "male",
|
|
|
|
"orientation": "-Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "P15",
|
|
|
|
"style": "male",
|
|
|
|
"orientation": "-Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "ground",
|
|
|
|
"style": "male",
|
|
|
|
"orientation": "-Z"
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
],
|
|
|
|
"instantiation": {
|
|
|
|
"kind": "singleton"
|
2016-09-02 00:37:39 +02:00
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"assembly": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"part": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
0,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
2016-09-02 00:37:39 +02:00
|
|
|
]
|
|
|
|
},
|
2016-11-01 16:16:03 +01:00
|
|
|
"microservo": {
|
|
|
|
"simulationBehavior": "microservo",
|
|
|
|
"visual": {
|
|
|
|
"builtIn": "microservo",
|
|
|
|
"width": 74.85,
|
|
|
|
"height": 200,
|
|
|
|
"pinDistance": 10,
|
|
|
|
"pinLocations": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"x": 30,
|
|
|
|
"y": 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 37,
|
|
|
|
"y": 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 45,
|
|
|
|
"y": 5
|
|
|
|
}
|
2016-11-01 16:16:03 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"numberOfPins": 3,
|
|
|
|
"pinDefinitions": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"target": {
|
|
|
|
"pinInstantiationIdx": 0
|
|
|
|
},
|
|
|
|
"style": "croc",
|
|
|
|
"orientation": "+Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "threeVolt",
|
|
|
|
"style": "croc",
|
|
|
|
"orientation": "+Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "ground",
|
|
|
|
"style": "croc",
|
|
|
|
"orientation": "+Z"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"instantiations": [
|
|
|
|
{
|
|
|
|
"kind": "function",
|
|
|
|
"fullyQualifiedName": "pins.servoWritePin,pins.servoSetPulse,PwmOnlyPin.servoWrite,PwmOnlyPin.servoSetPulse,servos.Servo.setAngle,servos.Servo.run,servos.Servo.setPulse",
|
|
|
|
"argumentRoles": [
|
|
|
|
{
|
|
|
|
"pinInstantiationIdx": 0,
|
|
|
|
"partParameter": "name"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2016-11-01 16:16:03 +01:00
|
|
|
],
|
|
|
|
"assembly": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"part": true,
|
|
|
|
"pinIndices": [
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
0,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
2016-11-01 16:16:03 +01:00
|
|
|
]
|
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"neopixel": {
|
|
|
|
"simulationBehavior": "neopixel",
|
|
|
|
"visual": {
|
|
|
|
"builtIn": "neopixel",
|
|
|
|
"width": 58,
|
|
|
|
"height": 113,
|
|
|
|
"pinDistance": 9,
|
|
|
|
"pinLocations": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"x": 10,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 19,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 28,
|
|
|
|
"y": 0
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
]
|
2016-09-02 00:37:39 +02:00
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"numberOfPins": 3,
|
|
|
|
"pinDefinitions": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"target": {
|
|
|
|
"pinInstantiationIdx": 0
|
|
|
|
},
|
2020-09-08 11:04:25 +02:00
|
|
|
"style": "croc",
|
2019-12-02 05:58:26 +01:00
|
|
|
"orientation": "+Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "threeVolt",
|
2020-09-08 11:04:25 +02:00
|
|
|
"style": "croc",
|
2019-12-02 05:58:26 +01:00
|
|
|
"orientation": "+Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "ground",
|
2020-09-08 11:04:25 +02:00
|
|
|
"style": "croc",
|
2019-12-02 05:58:26 +01:00
|
|
|
"orientation": "+Z"
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
],
|
|
|
|
"instantiation": {
|
|
|
|
"kind": "function",
|
|
|
|
"fullyQualifiedName": "neopixel.create",
|
|
|
|
"argumentRoles": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"pinInstantiationIdx": 0,
|
|
|
|
"partParameter": "pin"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"partParameter": "mode"
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"assembly": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"part": true,
|
|
|
|
"pinIndices": [
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
0,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
2016-09-02 00:37:39 +02:00
|
|
|
]
|
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"ledmatrix": {
|
|
|
|
"visual": {
|
|
|
|
"builtIn": "ledmatrix",
|
|
|
|
"width": 105,
|
|
|
|
"height": 105,
|
|
|
|
"pinDistance": 15,
|
|
|
|
"pinLocations": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
]
|
2016-09-02 00:37:39 +02:00
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"simulationBehavior": "ledmatrix",
|
|
|
|
"numberOfPins": 10,
|
2019-12-02 05:58:26 +01:00
|
|
|
"instantiation": {
|
|
|
|
"kind": "singleton"
|
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"pinDefinitions": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"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
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
],
|
|
|
|
"assembly": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"part": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
0,
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
5,
|
|
|
|
6,
|
|
|
|
7,
|
|
|
|
8,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
2016-09-02 00:37:39 +02:00
|
|
|
]
|
|
|
|
},
|
2016-09-16 08:50:52 +02:00
|
|
|
"headphone": {
|
|
|
|
"numberOfPins": 2,
|
|
|
|
"visual": {
|
|
|
|
"image": "parts/headphone.svg",
|
|
|
|
"width": 142,
|
|
|
|
"height": 180,
|
|
|
|
"pinDistance": 20,
|
|
|
|
"pinLocations": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"x": 17,
|
|
|
|
"y": 11
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 55,
|
|
|
|
"y": 50
|
|
|
|
}
|
2016-09-16 08:50:52 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"pinDefinitions": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"target": "P0",
|
|
|
|
"style": "croc",
|
|
|
|
"orientation": "Y"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "ground",
|
|
|
|
"style": "croc",
|
|
|
|
"orientation": "Y"
|
|
|
|
}
|
2016-09-16 08:50:52 +02:00
|
|
|
],
|
2019-12-02 05:58:26 +01:00
|
|
|
"instantiation": {
|
|
|
|
"kind": "singleton"
|
|
|
|
},
|
2016-09-16 08:50:52 +02:00
|
|
|
"assembly": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"part": true,
|
|
|
|
"pinIndices": [
|
|
|
|
0
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
2016-09-16 08:50:52 +02:00
|
|
|
]
|
|
|
|
},
|
2016-09-02 00:37:39 +02:00
|
|
|
"speaker": {
|
2016-09-09 10:23:39 +02:00
|
|
|
"numberOfPins": 2,
|
2016-09-02 00:37:39 +02:00
|
|
|
"visual": {
|
2016-09-16 08:50:52 +02:00
|
|
|
"image": "parts/speaker.svg",
|
2016-09-02 00:37:39 +02:00
|
|
|
"width": 500,
|
|
|
|
"height": 500,
|
2016-09-09 10:23:39 +02:00
|
|
|
"pinDistance": 70,
|
|
|
|
"pinLocations": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"x": 180,
|
|
|
|
"y": 135
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"x": 320,
|
|
|
|
"y": 135
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
]
|
2016-09-02 00:37:39 +02:00
|
|
|
},
|
2016-09-09 10:23:39 +02:00
|
|
|
"pinDefinitions": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"target": "P0",
|
|
|
|
"style": "male",
|
|
|
|
"orientation": "-Z"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"target": "ground",
|
|
|
|
"style": "male",
|
|
|
|
"orientation": "-Z"
|
|
|
|
}
|
2016-09-09 10:23:39 +02:00
|
|
|
],
|
2019-12-02 05:58:26 +01:00
|
|
|
"instantiation": {
|
|
|
|
"kind": "singleton"
|
2016-10-12 07:58:53 +02:00
|
|
|
},
|
|
|
|
"assembly": [
|
2019-12-02 05:58:26 +01:00
|
|
|
{
|
|
|
|
"part": true,
|
|
|
|
"pinIndices": [
|
|
|
|
0
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pinIndices": [
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
2016-10-12 07:58:53 +02:00
|
|
|
]
|
2019-12-02 05:58:26 +01:00
|
|
|
}
|
2016-09-02 00:37:39 +02:00
|
|
|
}
|