Sha256: 632b06ad4d4df79cac931f9a141ec9a790a298efb02ad83d21e01e3663b21b59
Contents?: true
Size: 432 Bytes
Versions: 7
Compression:
Stored size: 432 Bytes
Contents
# # This is an example of how to use the ssd class # require 'bundler/setup' require 'denko' board = Denko::Board.new(Denko::Connection::Serial.new) ssd = Denko::LED::SevenSegment.new board: board, pins: { cathode: 10, a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9 } # Turn off the ssd on exit trap("SIGINT") { exit !ssd.off } # Display each new line on the ssd loop { ssd.display(gets.chomp) }
Version data entries
7 entries across 7 versions & 1 rubygems