diff --git a/gpio.py b/gpio.py index 92f68b4..97ff328 100644 --- a/gpio.py +++ b/gpio.py @@ -134,6 +134,8 @@ def read(pin): @_verify def set(pin, value): '''set the pin value to 0 or 1''' + if value is LOW: + value = 0 value = int(bool(value)) log.debug("Write {0}: {1}".format(pin, value)) f = _open[pin]['value']