Skip to content

Commit 3b0c4a4

Browse files
authored
fix(flame-sensor): add 4th pin (A)
1 parent 9502602 commit 3b0c4a4

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

src/flame-sensor-element.ts

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ export class FlameSensorElement extends LitElement {
88
@property() ledSignal = false;
99

1010
readonly pinInfo: ElementPin[] = [
11-
{ name: 'VCC', y: 19.5, x: 199, number: 1, signals: [VCC()] },
12-
{ name: 'GND', y: 29.5, x: 199, number: 2, signals: [GND()] },
13-
{ name: 'OUT', y: 39, x: 199, number: 3, signals: [] },
11+
{ name: 'VCC', y: 14.6, x: 199, number: 1, signals: [VCC()] },
12+
{ name: 'GND', y: 24.3, x: 199, number: 2, signals: [GND()] },
13+
{ name: 'DOUT', y: 34, x: 199, number: 3, signals: [] },
14+
{ name: 'AOUT', y: 43.7, x: 199, number: 4, signals: [] },
1415
];
1516

1617
render() {
@@ -184,31 +185,38 @@ export class FlameSensorElement extends LitElement {
184185
fill="#d4d0d1"
185186
/>
186187
<path
187-
d="m169 15.2v28.6h8.39v-28.6z"
188+
d="m169.1 10.2v38.6h8.39v-38.6z"
188189
fill="#1c2546"
189190
stroke="#fff"
190191
stroke-linejoin="round"
191192
stroke-width=".9px"
192193
/>
193194
<g fill="#29261c">
194-
<path d="m170 35.9v6.55h6.55v-6.55z" />
195-
<path d="m170 26.2v6.55h6.55v-6.55z" />
196-
<path d="m170 16.4v6.55h6.55v-6.55z" />
195+
<path d="m170 40.75v6.55h6.55v-6.55z" />
196+
<path d="m170 31.05v6.55h6.55v-6.55z" />
197+
<path d="m170 21.25v6.55h6.55v-6.55z" />
198+
<path d="m170 11.55v6.55h6.55v-6.55z" />
197199
</g>
198200
<g fill="#9f9f9f">
199201
<path
200-
d="m173 37.7c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.271-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.423v-2.04c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
202+
d="m173 42.55c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.271-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.423v-2.04c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
201203
/>
202204
<path
203-
d="m173 28c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.271-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.423v-2.04c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
205+
d="m173 32.85c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.271-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.423v-2.04c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
204206
/>
205207
<path
206-
d="m173 18.3c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.27-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.424v-2.03c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
208+
d="m173 23.15c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.27-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.424v-2.03c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
209+
/>
210+
211+
<path
212+
d="m173 13.45c-0.382 0-0.748 0.152-1.02 0.422-0.271 0.27-0.422 0.637-0.422 1.02s0.151 0.749 0.422 1.02c0.27 0.27 0.636 0.422 1.02 0.422h26.1c0.234 0 0.423-0.19 0.423-0.424v-2.03c0-0.234-0.189-0.424-0.423-0.424h-26.1z"
207213
/>
208214
</g>
209-
<text fill="#fffefe" font-family="sans-serif" font-size="9.43px">
210-
<tspan x="162.447" y="22.354">+</tspan>
211-
<tspan x="162.343" y="43.763">s</tspan>
215+
<text fill="#fffefe" font-family="sans-serif" font-size="8px">
216+
<tspan x="171" y="10">+</tspan>
217+
<tspan x="164.3" y="26.5">-</tspan>
218+
<tspan x="162.5" y="36.9">D</tspan>
219+
<tspan x="171" y="56">A</tspan>
212220
</text>
213221
</svg>
214222
`;

0 commit comments

Comments
 (0)