class Patlite::PHN::Status
- Patlite::PHN::Status
- Reference
- Object
Defined in:
patlite/phn/staus.crConstant Summary
-
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
Instance Method Summary
- #beep : Beep
- #beep_long
- #beep_long?
- #beep_off
- #beep_off?
- #beep_short
- #beep_short?
- #clear
- #code : UInt8
- #code=(code : UInt8)
- #green : Light
- #green_flash
- #green_flash? : Bool
- #green_off
- #green_off? : Bool
- #green_on
- #green_on? : Bool
-
#inspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #red : Light
- #red_flash
- #red_flash? : Bool
- #red_off
- #red_off? : Bool
- #red_on
- #red_on? : Bool
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #yellow : Light
- #yellow_flash
- #yellow_flash? : Bool
- #yellow_off
- #yellow_off? : Bool
- #yellow_on
- #yellow_on? : Bool
Constructor Detail
Instance Method Detail
def inspect(io : IO)
#
Description copied from class Reference
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>
def to_s(io : IO)
#
Description copied from class Reference
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>