Skip to content

Commit c0d89f7

Browse files
committed
Basic not gate added (in Spanish). SVG refactored
1 parent a2847fa commit c0d89f7

File tree

3 files changed

+365
-0
lines changed

3 files changed

+365
-0
lines changed

blocks/not/not-icon.svg

Lines changed: 72 additions & 0 deletions
Loading

blocks/not/not-test1.ice

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
{
2+
"version": "1.1",
3+
"package": {
4+
"name": "",
5+
"version": "",
6+
"description": "",
7+
"author": "",
8+
"image": ""
9+
},
10+
"design": {
11+
"board": "icezum",
12+
"graph": {
13+
"blocks": [
14+
{
15+
"id": "7a2c7107-161f-44c6-a704-383c98d0358e",
16+
"type": "basic.input",
17+
"data": {
18+
"name": "Boton",
19+
"pins": [
20+
{
21+
"index": "0",
22+
"name": "D13",
23+
"value": "144"
24+
}
25+
],
26+
"virtual": false
27+
},
28+
"position": {
29+
"x": 56,
30+
"y": 56
31+
}
32+
},
33+
{
34+
"id": "989e6c46-25b0-47f3-aaa2-dd3755e64ab1",
35+
"type": "30f770205447363911d272b748197534af1d731a",
36+
"position": {
37+
"x": 256,
38+
"y": 56
39+
}
40+
},
41+
{
42+
"id": "a602492b-4c9e-4922-a0de-ea3b95fca8c5",
43+
"type": "basic.output",
44+
"data": {
45+
"name": "LED",
46+
"pins": [
47+
{
48+
"index": "0",
49+
"name": "D4",
50+
"value": "115"
51+
}
52+
],
53+
"virtual": false
54+
},
55+
"position": {
56+
"x": 464,
57+
"y": 56
58+
}
59+
}
60+
],
61+
"wires": [
62+
{
63+
"source": {
64+
"block": "7a2c7107-161f-44c6-a704-383c98d0358e",
65+
"port": "out"
66+
},
67+
"target": {
68+
"block": "989e6c46-25b0-47f3-aaa2-dd3755e64ab1",
69+
"port": "18c2ebc7-5152-439c-9b3f-851c59bac834"
70+
}
71+
},
72+
{
73+
"source": {
74+
"block": "989e6c46-25b0-47f3-aaa2-dd3755e64ab1",
75+
"port": "664caf9e-5f40-4df4-800a-b626af702e62"
76+
},
77+
"target": {
78+
"block": "a602492b-4c9e-4922-a0de-ea3b95fca8c5",
79+
"port": "in"
80+
}
81+
}
82+
]
83+
},
84+
"state": {
85+
"pan": {
86+
"x": 0,
87+
"y": 0
88+
},
89+
"zoom": 1
90+
}
91+
},
92+
"dependencies": {
93+
"30f770205447363911d272b748197534af1d731a": {
94+
"package": {
95+
"name": "NOT",
96+
"version": "1.0.1",
97+
"description": "Puerta NOT",
98+
"author": "Jesús Arroyo, Juan González",
99+
"image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2291.33%22%20height=%2245.752%22%20version=%221%22%3E%3Cpath%20d=%22M28.414%203.789l33.624%2018.883-33.624%2018.884V3.789z%22%20fill=%22none%22%20stroke=%22#000%22%20stroke-width=%223%22%20stroke-linejoin=%22round%22/%3E%3Ccircle%20cx=%2267.578%22%20cy=%2222.613%22%20r=%224.444%22%20fill=%22none%22%20stroke=%22#000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3Cpath%20d=%22M3.612%2022.766h24.65M72.433%2022.766h13.889%22%20fill=%22none%22%20stroke=%22#000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E"
100+
},
101+
"design": {
102+
"graph": {
103+
"blocks": [
104+
{
105+
"id": "5365ed8c-e5db-4445-938f-8d689830ea5c",
106+
"type": "basic.code",
107+
"data": {
108+
"code": "//-- Puerta NOT\n\nassign c = ~a;\n",
109+
"params": [],
110+
"ports": {
111+
"in": [
112+
{
113+
"name": "a"
114+
}
115+
],
116+
"out": [
117+
{
118+
"name": "c"
119+
}
120+
]
121+
}
122+
},
123+
"position": {
124+
"x": 256,
125+
"y": 48
126+
}
127+
},
128+
{
129+
"id": "18c2ebc7-5152-439c-9b3f-851c59bac834",
130+
"type": "basic.input",
131+
"data": {
132+
"name": ""
133+
},
134+
"position": {
135+
"x": 64,
136+
"y": 144
137+
}
138+
},
139+
{
140+
"id": "664caf9e-5f40-4df4-800a-b626af702e62",
141+
"type": "basic.output",
142+
"data": {
143+
"name": ""
144+
},
145+
"position": {
146+
"x": 752,
147+
"y": 144
148+
}
149+
}
150+
],
151+
"wires": [
152+
{
153+
"source": {
154+
"block": "18c2ebc7-5152-439c-9b3f-851c59bac834",
155+
"port": "out"
156+
},
157+
"target": {
158+
"block": "5365ed8c-e5db-4445-938f-8d689830ea5c",
159+
"port": "a"
160+
}
161+
},
162+
{
163+
"source": {
164+
"block": "5365ed8c-e5db-4445-938f-8d689830ea5c",
165+
"port": "c"
166+
},
167+
"target": {
168+
"block": "664caf9e-5f40-4df4-800a-b626af702e62",
169+
"port": "in"
170+
}
171+
}
172+
]
173+
},
174+
"state": {
175+
"pan": {
176+
"x": 0,
177+
"y": 0
178+
},
179+
"zoom": 1
180+
}
181+
}
182+
}
183+
}
184+
}

blocks/not/not.ice

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"version": "1.1",
3+
"package": {
4+
"name": "NOT",
5+
"version": "1.0.1",
6+
"description": "Puerta NOT",
7+
"author": "Jesús Arroyo, Juan González",
8+
"image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2291.33%22%20height=%2245.752%22%20version=%221%22%3E%3Cpath%20d=%22M28.414%203.789l33.624%2018.883-33.624%2018.884V3.789z%22%20fill=%22none%22%20stroke=%22#000%22%20stroke-width=%223%22%20stroke-linejoin=%22round%22/%3E%3Ccircle%20cx=%2267.578%22%20cy=%2222.613%22%20r=%224.444%22%20fill=%22none%22%20stroke=%22#000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3Cpath%20d=%22M3.612%2022.766h24.65M72.433%2022.766h13.889%22%20fill=%22none%22%20stroke=%22#000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E"
9+
},
10+
"design": {
11+
"board": "icezum",
12+
"graph": {
13+
"blocks": [
14+
{
15+
"id": "5365ed8c-e5db-4445-938f-8d689830ea5c",
16+
"type": "basic.code",
17+
"data": {
18+
"code": "//-- Puerta NOT\n\nassign c = ~a;\n",
19+
"params": [],
20+
"ports": {
21+
"in": [
22+
{
23+
"name": "a"
24+
}
25+
],
26+
"out": [
27+
{
28+
"name": "c"
29+
}
30+
]
31+
}
32+
},
33+
"position": {
34+
"x": 256,
35+
"y": 48
36+
}
37+
},
38+
{
39+
"id": "18c2ebc7-5152-439c-9b3f-851c59bac834",
40+
"type": "basic.input",
41+
"data": {
42+
"name": "",
43+
"pins": [
44+
{
45+
"index": "0",
46+
"name": "",
47+
"value": "0"
48+
}
49+
],
50+
"virtual": true
51+
},
52+
"position": {
53+
"x": 64,
54+
"y": 144
55+
}
56+
},
57+
{
58+
"id": "664caf9e-5f40-4df4-800a-b626af702e62",
59+
"type": "basic.output",
60+
"data": {
61+
"name": "",
62+
"pins": [
63+
{
64+
"index": "0",
65+
"name": "",
66+
"value": "0"
67+
}
68+
],
69+
"virtual": true
70+
},
71+
"position": {
72+
"x": 752,
73+
"y": 144
74+
}
75+
}
76+
],
77+
"wires": [
78+
{
79+
"source": {
80+
"block": "18c2ebc7-5152-439c-9b3f-851c59bac834",
81+
"port": "out"
82+
},
83+
"target": {
84+
"block": "5365ed8c-e5db-4445-938f-8d689830ea5c",
85+
"port": "a"
86+
}
87+
},
88+
{
89+
"source": {
90+
"block": "5365ed8c-e5db-4445-938f-8d689830ea5c",
91+
"port": "c"
92+
},
93+
"target": {
94+
"block": "664caf9e-5f40-4df4-800a-b626af702e62",
95+
"port": "in"
96+
}
97+
}
98+
]
99+
},
100+
"state": {
101+
"pan": {
102+
"x": 0,
103+
"y": 0
104+
},
105+
"zoom": 1
106+
}
107+
},
108+
"dependencies": {}
109+
}

0 commit comments

Comments
 (0)