diff --git a/hardware/pigpiod/package.json b/hardware/pigpiod/package.json index 2b886b8f..c188c5c4 100644 --- a/hardware/pigpiod/package.json +++ b/hardware/pigpiod/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-pi-gpiod", - "version": "0.0.6", + "version": "0.0.7", "description": "A node-red node for PiGPIOd", "dependencies" : { "js-pigpio": "*" diff --git a/hardware/pigpiod/pi-gpiod.html b/hardware/pigpiod/pi-gpiod.html index 71d0515d..82ff473f 100644 --- a/hardware/pigpiod/pi-gpiod.html +++ b/hardware/pigpiod/pi-gpiod.html @@ -455,8 +455,12 @@ align: "right", label: function() { if (this.out === "pwm") { return this.name || "PWM: "+bcm2pin[this.pin]; } - if (this.out === "ser") { return this.name || "Servo: "+bcm2pin[this.pin]; } - else { return this.name||"PIN: "+bcm2pin[this.pin] ; } + else if (this.out === "ser") { return this.name || "Servo: "+bcm2pin[this.pin]; } + else { + var suf = ""; + if (this.set == true) { suf = (this.level === "1") ? "¹ " : "₀ "; } + return this.name || "PIN: " + bcm2pin[this.pin] + suf ; + } }, labelStyle: function() { return this.name?"node_label_italic":""; @@ -465,7 +469,6 @@ palettelabel: "pi gpiod", oneditprepare: function() { var pinnow = bcm2pin[this.pin]; - console.log("NOW",pinnow); var pintip = this._("pi-gpiod.tip.pin"); var pinname = this._("pi-gpiod.pinname"); if (!$("#node-input-out").val()) { $("#node-input-out").val("out"); }