Class: BetaBrite::Memory::Text

Inherits:
BetaBrite::Memory show all
Defined in:
lib/betabrite/memory.rb

Constant Summary

Constants inherited from BetaBrite::Memory

COMMAND_CODE, DOTS, LOCKED, STRING, TEXT, UNLOCKED

Instance Attribute Summary

Attributes inherited from BetaBrite::Memory

#label, #locked, #size, #time, #type

Instance Method Summary collapse

Methods inherited from BetaBrite::Memory

clear, #format

Constructor Details

#initialize(label, size) ⇒ Text

Returns a new instance of Text.



70
71
72
73
74
75
76
77
# File 'lib/betabrite/memory.rb', line 70

def initialize(label, size)
  super(  :label  => label,
          :type   => TEXT,
          :locked => UNLOCKED,
          :size   => sprintf("%04x", size),
          :time   => 'FF00'
       )
end