diff --git a/apps/configurator/src/app/components/z-uno-shield/svg-shild/components/devices/door/door.component.svg b/apps/configurator/src/app/components/z-uno-shield/svg-shild/components/devices/door/door.component.svg index b6d4550..dbab2a9 100644 --- a/apps/configurator/src/app/components/z-uno-shield/svg-shild/components/devices/door/door.component.svg +++ b/apps/configurator/src/app/components/z-uno-shield/svg-shild/components/devices/door/door.component.svg @@ -15,11 +15,10 @@ - - - - - + + + + diff --git a/libs/arduino-code-gen/src/lib/devices/sensor-binary.ts b/libs/arduino-code-gen/src/lib/devices/sensor-binary.ts index c66f2c5..b518ea8 100644 --- a/libs/arduino-code-gen/src/lib/devices/sensor-binary.ts +++ b/libs/arduino-code-gen/src/lib/devices/sensor-binary.ts @@ -57,7 +57,7 @@ export class SensorBinary extends BaseDevice { public override get setup(): string { const inverted = this.config.device?.type === 'inverted' ? '!': ''; - return ` pinMode(A3, INPUT_PULLDOWN); + return ` pinMode(${this.config.id}, INPUT_PULLUP); zunoChangeInit(pin${this.config.id}SensorBinaryState, ${inverted}!digitalRead(${this.config.id}));`; }