Skip to content

Commit

Permalink
ADC0,1,2,3 - BlackLine, INPUT_PULLUP
Browse files Browse the repository at this point in the history
  • Loading branch information
aivs committed Mar 4, 2024
1 parent a525d3a commit 56affff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion libs/arduino-code-gen/src/lib/devices/sensor-binary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}));`;
}

Expand Down

0 comments on commit 56affff

Please sign in to comment.