Sha256: f42477fb83dd433b22d2b78b7131b21de1e55062ce9e598cdf64de6d07f87a4b
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'i2c/drivers/lcd' trap('INT'){ exit } ARGF.binmode begin display = I2C::Drivers::LCD::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-lcd-0.0.4 | bin/spritz |