Patlite::PHN::Status
Inherits Reference < Object
Constants
BEEP_LONG = 16_u8
BEEP_SHORT = 8_u8
GREEN_FLASH = 128_u8
GREEN_ON = 4_u8
RED_FLASH = 32_u8
RED_ON = 1_u8
YELLOW_FLASH = 64_u8
YELLOW_ON = 2_u8
Constructors
new(code : UInt8 = 0_u8)
SourceInstance methods
beep
Sourcebeep_long
Sourcebeep_long?
Sourcebeep_off
Sourcebeep_off?
Sourcebeep_short
Sourcebeep_short?
Sourceclear
Sourcecode
Sourcecode=(code : UInt8)
Sourcegreen
Sourcegreen_flash
Sourcegreen_flash?
Sourcegreen_off
Sourcegreen_off?
Sourcegreen_on
Sourcegreen_on?
Sourceinspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
red
Sourcered_flash
Sourcered_flash?
Sourcered_off
Sourcered_off?
Sourcered_on
Sourcered_on?
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
yellow
Sourceyellow_flash
Sourceyellow_flash?
Sourceyellow_off
Sourceyellow_off?
Sourceyellow_on
Sourceyellow_on?
Source