Skip to content

Commit 6fb4585

Browse files
committed
Basic and gate added (in Spanish). SVG refactored
1 parent c0d89f7 commit 6fb4585

File tree

3 files changed

+454
-0
lines changed

3 files changed

+454
-0
lines changed

blocks/and/and-icon.svg

Lines changed: 76 additions & 0 deletions
Loading

blocks/and/and-test1.ice

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
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": "7b8b9b9b-003d-4616-b7ab-3c1affe8bf20",
16+
"type": "basic.input",
17+
"data": {
18+
"name": "Boton1",
19+
"pins": [
20+
{
21+
"index": "0",
22+
"name": "D13",
23+
"value": "144"
24+
}
25+
],
26+
"virtual": false
27+
},
28+
"position": {
29+
"x": 40,
30+
"y": 32
31+
}
32+
},
33+
{
34+
"id": "3736e01d-ea5b-46e0-819d-89cc7f532633",
35+
"type": "98c8f94e97cf863329b447a3116a234fdd19c372",
36+
"position": {
37+
"x": 224,
38+
"y": 72
39+
}
40+
},
41+
{
42+
"id": "fdcbb7a7-20f7-4d21-92f7-646d40f11783",
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": 376,
57+
"y": 72
58+
}
59+
},
60+
{
61+
"id": "b8b556bd-f62b-4c4d-b9a1-c7de27979287",
62+
"type": "basic.input",
63+
"data": {
64+
"name": "Boton2",
65+
"pins": [
66+
{
67+
"index": "0",
68+
"name": "D12",
69+
"value": "143"
70+
}
71+
],
72+
"virtual": false
73+
},
74+
"position": {
75+
"x": 40,
76+
"y": 112
77+
}
78+
}
79+
],
80+
"wires": [
81+
{
82+
"source": {
83+
"block": "3736e01d-ea5b-46e0-819d-89cc7f532633",
84+
"port": "664caf9e-5f40-4df4-800a-b626af702e62"
85+
},
86+
"target": {
87+
"block": "fdcbb7a7-20f7-4d21-92f7-646d40f11783",
88+
"port": "in"
89+
}
90+
},
91+
{
92+
"source": {
93+
"block": "7b8b9b9b-003d-4616-b7ab-3c1affe8bf20",
94+
"port": "out"
95+
},
96+
"target": {
97+
"block": "3736e01d-ea5b-46e0-819d-89cc7f532633",
98+
"port": "18c2ebc7-5152-439c-9b3f-851c59bac834"
99+
}
100+
},
101+
{
102+
"source": {
103+
"block": "b8b556bd-f62b-4c4d-b9a1-c7de27979287",
104+
"port": "out"
105+
},
106+
"target": {
107+
"block": "3736e01d-ea5b-46e0-819d-89cc7f532633",
108+
"port": "97b51945-d716-4b6c-9db9-970d08541249"
109+
}
110+
}
111+
]
112+
},
113+
"state": {
114+
"pan": {
115+
"x": 0,
116+
"y": 0
117+
},
118+
"zoom": 1
119+
}
120+
},
121+
"dependencies": {
122+
"98c8f94e97cf863329b447a3116a234fdd19c372": {
123+
"package": {
124+
"name": "AND",
125+
"version": "1.0.1",
126+
"description": "Puerta AND",
127+
"author": "Jesús Arroyo, Juan González",
128+
"image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%22-252%20400.9%2090%2040%22%3E%3Cg%20fill=%22none%22%20stroke=%22#000%22%3E%3Cpath%20d=%22M-205.685%20439.896h-19.631v-37.47h19.63s17.82%201.737%2017.82%2018.516c0%2016.78-17.82%2018.954-17.82%2018.954z%22%20stroke-width=%223%22%20stroke-linejoin=%22round%22/%3E%3Cpath%20d=%22M-250.832%20410.818h24.08M-250.832%20430.785h24.08M-187.107%20420.708h24.08%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/g%3E%3C/svg%3E"
129+
},
130+
"design": {
131+
"graph": {
132+
"blocks": [
133+
{
134+
"id": "00925b04-5004-4307-a737-fa4e97c8b6ab",
135+
"type": "basic.code",
136+
"data": {
137+
"code": "//-- Puerta AND\n\nassign c = a & b;\n\n",
138+
"params": [],
139+
"ports": {
140+
"in": [
141+
{
142+
"name": "a"
143+
},
144+
{
145+
"name": "b"
146+
}
147+
],
148+
"out": [
149+
{
150+
"name": "c"
151+
}
152+
]
153+
}
154+
},
155+
"position": {
156+
"x": 256,
157+
"y": 48
158+
}
159+
},
160+
{
161+
"id": "18c2ebc7-5152-439c-9b3f-851c59bac834",
162+
"type": "basic.input",
163+
"data": {
164+
"name": ""
165+
},
166+
"position": {
167+
"x": 64,
168+
"y": 80
169+
}
170+
},
171+
{
172+
"id": "664caf9e-5f40-4df4-800a-b626af702e62",
173+
"type": "basic.output",
174+
"data": {
175+
"name": ""
176+
},
177+
"position": {
178+
"x": 752,
179+
"y": 144
180+
}
181+
},
182+
{
183+
"id": "97b51945-d716-4b6c-9db9-970d08541249",
184+
"type": "basic.input",
185+
"data": {
186+
"name": ""
187+
},
188+
"position": {
189+
"x": 64,
190+
"y": 208
191+
}
192+
}
193+
],
194+
"wires": [
195+
{
196+
"source": {
197+
"block": "18c2ebc7-5152-439c-9b3f-851c59bac834",
198+
"port": "out"
199+
},
200+
"target": {
201+
"block": "00925b04-5004-4307-a737-fa4e97c8b6ab",
202+
"port": "a"
203+
}
204+
},
205+
{
206+
"source": {
207+
"block": "97b51945-d716-4b6c-9db9-970d08541249",
208+
"port": "out"
209+
},
210+
"target": {
211+
"block": "00925b04-5004-4307-a737-fa4e97c8b6ab",
212+
"port": "b"
213+
}
214+
},
215+
{
216+
"source": {
217+
"block": "00925b04-5004-4307-a737-fa4e97c8b6ab",
218+
"port": "c"
219+
},
220+
"target": {
221+
"block": "664caf9e-5f40-4df4-800a-b626af702e62",
222+
"port": "in"
223+
}
224+
}
225+
]
226+
},
227+
"state": {
228+
"pan": {
229+
"x": 0,
230+
"y": 0
231+
},
232+
"zoom": 1
233+
}
234+
}
235+
}
236+
}
237+
}

0 commit comments

Comments
 (0)