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
read_at
GPIO.read_at(gpio_pin_t) -> gpio_logic_t
write_at
GPIO.write_at(gpio_pin_t, Integer) -> 0
Instance methods
high?
instance.high?() -> bool
low?
instance.low?() -> bool
read
instance.read() -> gpio_logic_t
setmode
instance.setmode(Integer flags, ?Integer alt_function) -> 0
write
instance.write(Integer) -> 0