Sha256: 8656cc5ff18e2753752333ab68648fbfb97ebca8089f3f1d4323f1815e73e0d1

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

PORT = 1

vmthread :MAIN do
  data32 :Timer
  data32 :Data1
  datas :String, 8

  loop do
    ui_draw(FILLWINDOW, 0x00, 0, 0)
    ui_draw(SELECT_FONT, SMALL_FONT)
    ui_draw(TEXT, FG_COLOR, 0, 10, "Vernier Readout  V0.00")

    ui_draw(TEXT, FG_COLOR, 0, 50, "Raw 1")
    ui_draw(SELECT_FONT, NORMAL_FONT)

    input_device(READY_RAW, 0, PORT, 1, 0, 1, :Data1)

    and32(:Data1, 0xFFFF, :Data1)
    strings(NUMBER_FORMATTED, :Data1, "%-5d", 8, :String)
    ui_draw(TEXT, FG_COLOR, 64, 50, :String)

    ui_draw(UPDATE)

    timer_wait(250, :Timer)
    timer_ready(:Timer)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lignite-0.4.0 spec/data/VernierReadout.rb
lignite-0.3.0 spec/data/VernierReadout.rb