Sha256: cad7c64712370c041215590d46988684e01c8e3f9d508ea406de84ecfe8ae85b

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require "lignite/bytes"
require "lignite/logger"

require "lignite/assembler"
require "lignite/body_compiler"
require "lignite/connection"
require "lignite/condition"
require "lignite/connection/bluetooth"
require "lignite/connection/replay"
require "lignite/connection/tap"
require "lignite/connection/usb"
require "lignite/direct_commands"
require "lignite/jump_offset"
require "lignite/message"
require "lignite/motors"
require "lignite/op_compiler"
require "lignite/rbf_object"
require "lignite/system_commands"
require "lignite/variables"
require "lignite/version"

# The main namespace
module Lignite
  LAYER_0 = 0

  PORT_A = 1
  PORT_B = 2
  PORT_C = 4
  PORT_D = 8

  PORT_1 = 0
  PORT_2 = 1
  PORT_3 = 2
  PORT_4 = 3

  COAST = 0
  BRAKE = 1

  # A String of bytes (with Encoding::BINARY)
  class ByteString < String
    # empty class, just for documentation purposes
  end

  # Represents an error returned by the robot
  class VMError < RuntimeError
  end

  def program(&block)
    p = Assembler.new
    p.compile(&block)
    p
  end
  module_function :program
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lignite-0.6.0 lib/lignite.rb