class

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)
Source

Instance methods

beep
Source
beep_long
Source
beep_long?
Source
beep_off
Source
beep_off?
Source
beep_short
Source
beep_short?
Source
clear
Source
code
Source
code=(code : UInt8)
Source
green
Source
green_flash
Source
green_flash?
Source
green_off
Source
green_off?
Source
green_on
Source
green_on?
Source
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.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
red_flash
Source
red_flash?
Source
red_off
Source
red_off?
Source
red_on
Source
red_on?
Source
to_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>
Source
yellow
Source
yellow_flash
Source
yellow_flash?
Source
yellow_off
Source
yellow_off?
Source
yellow_on
Source
yellow_on?
Source

Nested types