From 24974a4dd7fb24d4540602b8ca00c49d66d78b87 Mon Sep 17 00:00:00 2001 From: Ariella Eliassaf Date: Sun, 27 Nov 2022 11:22:38 +0200 Subject: [PATCH] feat(hc-sr04): align pins position to grid, also fix texts to uppercase --- src/hc-sr04-element.ts | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/hc-sr04-element.ts b/src/hc-sr04-element.ts index 9ea29b0..2d3d77e 100644 --- a/src/hc-sr04-element.ts +++ b/src/hc-sr04-element.ts @@ -5,10 +5,10 @@ import { ElementPin } from './pin'; @customElement('wokwi-hc-sr04') export class HCSR04Element extends LitElement { readonly pinInfo: ElementPin[] = [ - { name: 'VCC', x: 71.78, y: 94.5, signals: [{ type: 'power', signal: 'VCC', voltage: 5 }] }, - { name: 'TRIG', x: 79.67, y: 94.5, signals: [] }, - { name: 'ECHO', x: 87.56, y: 94.5, signals: [] }, - { name: 'GND', x: 95.45, y: 94.5, signals: [{ type: 'power', signal: 'GND' }] }, + { name: 'VCC', x: 71.3, y: 94.5, signals: [{ type: 'power', signal: 'VCC', voltage: 5 }] }, + { name: 'TRIG', x: 81.3, y: 94.5, signals: [] }, + { name: 'ECHO', x: 91.3, y: 94.5, signals: [] }, + { name: 'GND', x: 101.3, y: 94.5, signals: [{ type: 'power', signal: 'GND' }] }, ]; render() { @@ -68,18 +68,18 @@ export class HCSR04Element extends LitElement { /> - - - + + + - - - - + + + + - HC-SR04 + HC-SR04 - Vcc - Trig - Echo - Gnd + VCC + TRIG + ECHO + GND `;