RGB class of PicoRuby

Type aliases

rgb_effect_t

:swirl
                    | :rainbow_mood
                    | :breath
                    | :ruby
                    | :nokogiri
                    | :static
                    | :circle

action_type

:thunder
                   | nil

Singleton methods

new

RGB.new(Integer pin, Integer underglow_size, Integer backlight_size, ?bool is_rgbw) -> instance

Instance methods

add_pixel

instance.add_pixel(Integer x, Integer y) -> void

effect=

instance.effect=(rgb_effect_t name) -> void

fifo_push

instance.fifo_push(true data) -> void

hsv2rgb

instance.hsv2rgb(Float | Integer h, Integer s, Float | Integer v) -> Integer

hue=

instance.hue=(Integer val) -> void

init_values

instance.init_values() -> void

invoke_anchor

instance.invoke_anchor(Symbol | nil key) -> Integer

invoke_partner

instance.invoke_partner(Integer message) -> void

ping?

instance.ping?() -> bool

reset_pixel

instance.reset_pixel() -> void

resume

instance.resume() -> void

saturation=

instance.saturation=(Integer val) -> void

show

instance.show-> void

speed=

instance.speed=(Integer val) -> void

thunder

instance.thunder-> void

toggle

instance.toggle() -> void

turn_off

instance.turn_off() -> void

turn_on

instance.turn_on() -> void

value=

instance.value=(Integer | Float val) -> void

ws2812_add_matrix_pixel_at

instance.ws2812_add_matrix_pixel_at(Integer, Integer, Integer) -> void

ws2812_circle

instance.ws2812_circle(Integer, Integer, Integer) -> void

ws2812_circle_set_center

instance.ws2812_circle_set_center(Integer, Integer) -> void

ws2812_fill

instance.ws2812_fill(Integer, Integer) -> void

ws2812_init

instance.ws2812_init(Integer, Integer, bool) -> void

ws2812_init_pixel_distance

instance.ws2812_init_pixel_distance(Integer) -> void

ws2812_rand_show

instance.ws2812_rand_show(Integer, Integer, Integer) -> void

ws2812_reset_swirl_index

instance.ws2812_reset_swirl_index() -> bool

ws2812_rotate_swirl

instance.ws2812_rotate_swirl(Integer) -> bool

ws2812_set_pixel_at

instance.ws2812_set_pixel_at(Integer, Integer) -> void

ws2812_show

instance.ws2812_show() -> void

Attr accessors

pixel_size (reader)

instance.pixel_size -> Integer

effect (reader)

instance.effect -> rgb_effect_t

action (accessor)

instance.action -> action_type

anchor (accessor)

instance.anchor -> bool

split_sync (accessor)

instance.split_sync -> bool
Tags: