Skip to content

Commit c940c66

Browse files
committed
fix(photoresistor-sensor): story title, element font size and pinInfo of AO
1 parent ec182a3 commit c940c66

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/photoresistor-sensor-element.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { customElement, html, LitElement, property, svg } from 'lit-element';
22
import { ElementPin } from '.';
3-
import { VCC, GND } from './pin';
3+
import { VCC, GND, analog } from './pin';
44

55
@customElement('wokwi-photoresistor-sensor')
66
export class PhotoresistorSensorElement extends LitElement {
@@ -11,7 +11,7 @@ export class PhotoresistorSensorElement extends LitElement {
1111
{ name: 'VCC', x: 172, y: 16, signals: [VCC()] },
1212
{ name: 'GND', x: 172, y: 26, signals: [GND()] },
1313
{ name: 'DO', x: 172, y: 35.8, signals: [] },
14-
{ name: 'A0', x: 172, y: 45.5, signals: [] },
14+
{ name: 'AO', x: 172, y: 45.5, signals: [analog(0)] },
1515
];
1616

1717
render() {
@@ -142,8 +142,8 @@ export class PhotoresistorSensorElement extends LitElement {
142142
/>
143143
144144
<!-- Text -->
145-
<g fill="#fffefe" font-size="3.4px" font-family="sans-serif">
146-
<text x="117.46" y="14.90">
145+
<g fill="#fffefe" font-size="4.4px" font-family="sans-serif">
146+
<text x="117.46" y="13.90">
147147
PWR
148148
</text>
149149
<text x="117.46" y="18.41">
@@ -164,7 +164,7 @@ export class PhotoresistorSensorElement extends LitElement {
164164
<text x="117.44" y="45.53">
165165
DO
166166
</text>
167-
<text x="117.44" y="49.036">
167+
<text x="117.44" y="50.036">
168168
LED
169169
</text>
170170
</g>

0 commit comments

Comments
 (0)