class Patlite::PHN::Status

Defined in:

patlite/phn/staus.cr

Constant 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

Constructor Detail

def self.new(code : UInt8 = 0_u8) #

[View source]

Instance Method Detail

def beep : Beep #

[View source]
def beep_long #

[View source]
def beep_long? #

[View source]
def beep_off #

[View source]
def beep_off? #

[View source]
def beep_short #

[View source]
def beep_short? #

[View source]
def clear #

[View source]
def code : UInt8 #

[View source]
def code=(code : UInt8) #

[View source]
def green : Light #

[View source]
def green_flash #

[View source]
def green_flash? : Bool #

[View source]
def green_off #

[View source]
def green_off? : Bool #

[View source]
def green_on #

[View source]
def green_on? : Bool #

[View source]
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>

[View source]
def red : Light #

[View source]
def red_flash #

[View source]
def red_flash? : Bool #

[View source]
def red_off #

[View source]
def red_off? : Bool #

[View source]
def red_on #

[View source]
def red_on? : Bool #

[View source]
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>

[View source]
def yellow : Light #

[View source]
def yellow_flash #

[View source]
def yellow_flash? : Bool #

[View source]
def yellow_off #

[View source]
def yellow_off? : Bool #

[View source]
def yellow_on #

[View source]
def yellow_on? : Bool #

[View source]