class Pigpio::RGB

Defined in:

binding.cr

Constant Summary

PI_OUTPUT = 1
PWM_FREQUENCY = 800
PWM_RANGE = 500

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32, red_pin : UInt32, green_pin : UInt32, blue_pin : UInt32) #

[View source]

Instance Method Detail

def client : Pigpio::Client #

[View source]
def color #

[View source]
def cycle(rate = 20.milliseconds, &) #

[View source]
def rainbow #

[View source]
def set_color(red : UInt32, green : UInt32, blue : UInt32) #

0-100


[View source]
def terminate #

[View source]