RotaryEncoder class of PicoRuby

Singleton methods

new

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

Instance methods

clockwise

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

counterclockwise

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

on_pin_a

instance.on_pin_a(Integer event_type) -> void

on_pin_b

instance.on_pin_b(Integer event_type) -> void
Tags: class