BLE::HID class of PicoRuby

Singleton methods

new

BLE::HID.new(
      ?name: String,
      ?mouse: bool,
      ?consumer: bool
    ) -> void

Instance methods

battery_level=

instance.battery_level=(Integer level) -> Integer

connected?

instance.connected?() -> bool

heartbeat_callback

instance.heartbeat_callback() -> void

keyboard_led_state

instance.keyboard_led_state() -> Integer

keyboard_release

instance.keyboard_release() -> bool

keyboard_send

instance.keyboard_send(Integer modifier, Integer keycode) -> bool

media_send

instance.media_send(Integer code) -> bool

mouse_move

instance.mouse_move(Integer x, Integer y, ?Integer wheel, ?Integer buttons) -> bool

packet_callback

instance.packet_callback(String event_packet) -> void

send_key

instance.send_key(Integer keycode, ?Integer modifier) -> bool

start

instance.start(?Integer? timeout_ms) ?{ () -> void } -> Integer
Tags: class