lib/ffi/wiring_pi/gpio.rb in ffi-wiring_pi-0.1.5 vs lib/ffi/wiring_pi/gpio.rb in ffi-wiring_pi-0.1.6
- old
+ new
@@ -62,10 +62,10 @@
#
# @param pin [Integer] pin position (depends on setup mode)
# @param state [Boolean] `true` to set to HIGH, `false` to set to LOW
#
def self.write(pin, state)
- digital_write(state ? HIGH : LOW)
+ digital_write(pin, state ? HIGH : LOW)
end
# Sets pin to HIGH state
#
# @param pin [Integer] pin position (depends on setup mode)