Skip to content

Commit

Permalink
Add pull_up_dn_control method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewn committed Sep 25, 2013
1 parent 8b7832d commit bd7edd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wiringpi/gpio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def pin_mode(pin, mode)
Wiringpi2.pinMode(pin, mode)
end

def pull_up_dn_control(pin,mode)
Wiringpi2.pullUpDnControl(pin, mode)
end

def delay(ms)
Wiringpi2.delay(ms)
end
Expand Down

0 comments on commit bd7edd8

Please sign in to comment.