RotaryEncoder class of PicoRuby

Singleton methods

new

RotaryEncoder.new(Integer pin_a, Integer pin_b) -> instance

Instance methods

call_proc_if

instance.call_proc_if(Integer keycode) -> void

ccw

instance.ccw() { () -> void } -> void

clockwise

instance.clockwise() { () -> void } -> void

configure

instance.configure(Symbol symbol) -> void

consume_encoder

instance.consume_encoder(Integer) -> Integer

consume_rotation_anchor

instance.consume_rotation_anchor() -> void

consume_rotation_partner

instance.consume_rotation_partner() -> Integer

counterclockwise

instance.counterclockwise() { () -> void } -> void

create_keycodes

instance.create_keycodes(Integer) -> void

cw

instance.cw() { () -> void } -> void

init_encoder

instance.init_encoder(Integer, Integer) -> Integer

init_pins

instance.init_pins() -> void

left?

instance.left?() -> bool
instance.right?() -> bool
Tags: