Sha256: 63abe27fd123001164456a58ac59d3c7a5836369cf1e542642f6b52370b39df5

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'i2c/drivers/ss1602'

trap('INT'){
  exit
}

ARGF.binmode

begin
  display = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27)

  ARGF.each do |line|
    line.split.each do |arg|
      display.off
      display.text(arg, 0, true)
      display.on
      sleep 0.5
    end
  end
ensure
  display.clear if display
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i2c-ss1602-0.0.2 bin/spritz