GPIO class of PicoRuby
Type aliases
gpio_pin_t
Integer|String|Symbol
gpio_logic_t
0 | 1
Singleton methods
high_at?
GPIO.high_at?(gpio_pin_t) -> bool
low_at?
GPIO.low_at?(Integer) -> bool
new
GPIO.new(gpio_pin_t pin, Integer flags, ?Integer alt_function) -> instance
open_drain_at
GPIO.open_drain_at(gpio_pin_t) -> 0
pull_down_at
GPIO.pull_down_at(gpio_pin_t) -> 0
pull_up_at
GPIO.pull_up_at(gpio_pin_t) -> 0
read_at
GPIO.read_at(gpio_pin_t) -> gpio_logic_t
set_dir_at
GPIO.set_dir_at(gpio_pin_t, Integer) -> 0
set_function_at
GPIO.set_function_at(gpio_pin_t, Integer) -> 0
write_at
GPIO.write_at(gpio_pin_t, Integer) -> 0
Instance methods
high?
instance.high?() -> bool
low?
instance.low?() -> bool
open_drain
instance.open_drain(Integer flags) -> 0
read
instance.read() -> gpio_logic_t
set_dir
instance.set_dir(Integer flags) -> 0
set_function
instance.set_function(Integer flags, Integer alt_function) -> 0
set_pull
instance.set_pull(Integer flags) -> 0
setmode
instance.setmode(Integer flags, ?Integer alt_function) -> 0
write
instance.write(Integer) -> 0