Skip to content

Commit 30dd306

Browse files
committed
Basic OR gate added (in Spanish). SVG refactored
1 parent 6fb4585 commit 30dd306

File tree

4 files changed

+597
-0
lines changed

4 files changed

+597
-0
lines changed

blocks/or/and.ice

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"version": "1.1",
3+
"package": {
4+
"name": "AND",
5+
"version": "1.0.1",
6+
"description": "AND logic gate",
7+
"author": "Jesús Arroyo, Juan González",
8+
"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"
9+
},
10+
"design": {
11+
"board": "icezum",
12+
"graph": {
13+
"blocks": [
14+
{
15+
"id": "00925b04-5004-4307-a737-fa4e97c8b6ab",
16+
"type": "basic.code",
17+
"data": {
18+
"code": "//-- Puerta AND\n\nassign c = a & b;\n\n",
19+
"params": [],
20+
"ports": {
21+
"in": [
22+
{
23+
"name": "a"
24+
},
25+
{
26+
"name": "b"
27+
}
28+
],
29+
"out": [
30+
{
31+
"name": "c"
32+
}
33+
]
34+
}
35+
},
36+
"position": {
37+
"x": 256,
38+
"y": 48
39+
}
40+
},
41+
{
42+
"id": "18c2ebc7-5152-439c-9b3f-851c59bac834",
43+
"type": "basic.input",
44+
"data": {
45+
"name": "",
46+
"pins": [
47+
{
48+
"index": "0",
49+
"name": "",
50+
"value": "0"
51+
}
52+
],
53+
"virtual": true
54+
},
55+
"position": {
56+
"x": 64,
57+
"y": 80
58+
}
59+
},
60+
{
61+
"id": "664caf9e-5f40-4df4-800a-b626af702e62",
62+
"type": "basic.output",
63+
"data": {
64+
"name": "",
65+
"pins": [
66+
{
67+
"index": "0",
68+
"name": "",
69+
"value": "0"
70+
}
71+
],
72+
"virtual": true
73+
},
74+
"position": {
75+
"x": 752,
76+
"y": 144
77+
}
78+
},
79+
{
80+
"id": "97b51945-d716-4b6c-9db9-970d08541249",
81+
"type": "basic.input",
82+
"data": {
83+
"name": "",
84+
"pins": [
85+
{
86+
"index": "0",
87+
"name": "",
88+
"value": "0"
89+
}
90+
],
91+
"virtual": true
92+
},
93+
"position": {
94+
"x": 64,
95+
"y": 208
96+
}
97+
}
98+
],
99+
"wires": [
100+
{
101+
"source": {
102+
"block": "18c2ebc7-5152-439c-9b3f-851c59bac834",
103+
"port": "out"
104+
},
105+
"target": {
106+
"block": "00925b04-5004-4307-a737-fa4e97c8b6ab",
107+
"port": "a"
108+
}
109+
},
110+
{
111+
"source": {
112+
"block": "97b51945-d716-4b6c-9db9-970d08541249",
113+
"port": "out"
114+
},
115+
"target": {
116+
"block": "00925b04-5004-4307-a737-fa4e97c8b6ab",
117+
"port": "b"
118+
}
119+
},
120+
{
121+
"source": {
122+
"block": "00925b04-5004-4307-a737-fa4e97c8b6ab",
123+
"port": "c"
124+
},
125+
"target": {
126+
"block": "664caf9e-5f40-4df4-800a-b626af702e62",
127+
"port": "in"
128+
}
129+
}
130+
]
131+
},
132+
"state": {
133+
"pan": {
134+
"x": 0,
135+
"y": 0
136+
},
137+
"zoom": 1
138+
}
139+
},
140+
"dependencies": {}
141+
}

blocks/or/or-icon.svg

Lines changed: 78 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)