Created
September 23, 2022 15:43
-
-
Save malerba118/d82ff88ed8815328ad8f4a2f2c8b2ccc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const circuit = { | |
parts: [ | |
{ | |
id: "1", | |
type: "breadboard", | |
parentId: null, | |
position: { | |
x: 0, | |
y: 0, | |
z: 0, | |
}, | |
rotation: 0, | |
terminals: [], | |
}, | |
{ | |
id: "41fe6f65-fb4e-43b1-b682-e0d8dc02a15f", | |
type: "resistor", | |
parentId: "1", | |
position: { | |
x: -7.363460000003677, | |
y: 0.84973808070585, | |
z: -1.1426041004049439, | |
}, | |
rotation: 0, | |
terminals: [ | |
{ | |
name: "t1", | |
connections: ["I.3"], | |
}, | |
{ | |
name: "t2", | |
connections: ["positive.a.1"], | |
}, | |
], | |
}, | |
{ | |
id: "11747c01-63bf-4248-b3f1-1561b51e047f", | |
type: "wire-end", | |
parentId: "3f6ee5dc-b450-4032-8111-ac5d1e2b354c", | |
position: { | |
x: -3.4366731216247586, | |
y: 0.2426156748747965, | |
z: -2.5673075236241125, | |
}, | |
rotation: 1.2246467991473532e-16, | |
terminals: [ | |
{ | |
name: "t1", | |
connections: ["1.0"], | |
}, | |
], | |
}, | |
{ | |
id: "20168205-9301-4b63-b1fc-19a43d0875e8", | |
type: "wire-end", | |
parentId: "1", | |
position: { | |
x: -6.347460000003677, | |
y: 0.84973808070585, | |
z: -2.158604100404944, | |
}, | |
rotation: 0, | |
terminals: [ | |
{ | |
name: "t1", | |
connections: ["positive.a.5"], | |
}, | |
], | |
}, | |
{ | |
id: "3f6ee5dc-b450-4032-8111-ac5d1e2b354c", | |
type: "raspberry-pi", | |
parentId: null, | |
position: { | |
x: -7.8915522417244155, | |
y: 0, | |
z: -7.618124385749704, | |
}, | |
rotation: -3.141592653589793, | |
terminals: [], | |
}, | |
], | |
wires: [ | |
{ | |
id: "067971ea-836b-4105-894a-06c5f7d32a98", | |
color: "red", | |
partOneId: "11747c01-63bf-4248-b3f1-1561b51e047f", | |
partTwoId: "20168205-9301-4b63-b1fc-19a43d0875e8", | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment