i2c-ss1602 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d9161bd943cd9df68f4959e5087ebffed8fb749
4
+ data.tar.gz: 9170d803a70d846ffb68f19e11d2ecb3675a23f6
5
+ SHA512:
6
+ metadata.gz: 13b5ba4892663ae637fd95ca09f6f92b5748d8f2cea91f07ba8ebcc0b7080dfa287f88419e14c8f0d21459630ea9f08e87950c2a923d869bdb93dd22f39f66c5
7
+ data.tar.gz: bd99ac0f9c7615e9abed55a44c931ac8dd042407b34a5919fdf2ed8802f39ff5a5be5d67f816bff443adf721a4ed3f8d02763705e283e85ab5d9b6067a94cd1a
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
@@ -0,0 +1 @@
1
+ 2.3
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
@@ -0,0 +1,8 @@
1
+ # Changelog for i2c-ss1602
2
+
3
+ ## v0.0.2
4
+ * Update for Ruby 2.3
5
+ * First release as Rubygem
6
+
7
+ ## v0.0.1
8
+ * Initial revision
@@ -0,0 +1,43 @@
1
+ # How to contribute
2
+
3
+ I like to encourage you to contribute to the repository.
4
+ This should be as easy as possible for you but there are a few things to consider when contributing.
5
+ The following guidelines for contribution should be followed if you want to submit a pull request.
6
+
7
+ ## How to prepare
8
+
9
+ * You need a [GitHub account](https://github.com/signup/free)
10
+ * Submit an [issue ticket](https://github.com/anselmh/CONTRIBUTING.md/issues) for your issue if the is no one yet.
11
+ * Describe the issue and include steps to reproduce if it's a bug.
12
+ * Ensure to mention the earliest version that you know is affected.
13
+ * If you are able and want to fix this, fork the repository on GitHub
14
+
15
+ ## Make Changes
16
+
17
+ * In your forked repository, create a topic branch for your upcoming patch. (e.g. `feature--autoplay` or `bugfix--ios-crash`)
18
+ * Usually this is based on the master branch.
19
+ * Create a branch based on master; `git branch
20
+ fix/master/my_contribution master` then checkout the new branch with `git
21
+ checkout fix/master/my_contribution`. Please avoid working directly on the `master` branch.
22
+ * Make sure you stick to the coding style that is used already.
23
+ * Make use of the `.editorconfig`-file if provided with the repository.
24
+ * Make commits of logical units and describe them properly.
25
+ * Check for unnecessary whitespace with `git diff --check` before committing.
26
+
27
+ * If possible, submit tests to your patch / new feature so it can be tested easily.
28
+ * Assure nothing is broken by running all the tests.
29
+
30
+ ## Submit Changes
31
+
32
+ * Push your changes to a topic branch in your fork of the repository.
33
+ * Open a pull request to the original repository and choose the right original branch you want to patch.
34
+ _Advanced users may install the `hub` gem and use the [`hub pull-request` command](https://github.com/defunkt/hub#git-pull-request)._
35
+ * If not done in commit messages (which you really should do) please reference and update your issue with the code changes. But _please do not close the issue yourself_.
36
+ _Notice: You can [turn your previously filed issues into a pull-request here](http://issue2pr.herokuapp.com/)._
37
+ * Even if you have write access to the repository, do not directly push or merge pull-requests. Let another team member review your pull request and approve.
38
+
39
+ # Additional Resources
40
+
41
+ * [General GitHub documentation](http://help.github.com/)
42
+ * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
43
+ * [Read the Issue Guidelines by @necolas](https://github.com/necolas/issue-guidelines/blob/master/CONTRIBUTING.md) for more details
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in i2c-SS1602.gemspec
4
+ gemspec
@@ -0,0 +1,12 @@
1
+ guard 'bundler' do
2
+ watch('Gemfile')
3
+ watch(%r|^.*\.gemspec|)
4
+ end
5
+
6
+ guard 'minitest' do
7
+ watch(%r|^test/unit/test_(.*)\.rb|)
8
+ watch(%r|^lib/*\.rb|){'test/unit'}
9
+ watch(%r|^lib/.*/*\.rb|){'test/unit'}
10
+ watch(%r{^lib/.*/([^/]+)\.rb$}){|m| "test/unit/test_#{m[1]}.rb"}
11
+ watch(%r|^test/helper\.rb|){'test/unit'}
12
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Nicholas E. Rabenau
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,33 @@
1
+ # SainSmart 1602 I2C driver
2
+
3
+ This is a Ruby driver for the SainSmart 1602 LCD display with I2C adapter. The code was partially ported from [raspi-gpio](https://github.com/paulbarber/raspi-gpio/blob/master/lcd_display.py).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```
10
+ gem 'i2c-ss1602'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```
22
+ $ gem install i2c-ss1602
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ require 'i2c/drivers/ss1602'
29
+ display = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27)
30
+ display.clear
31
+ display.text('Hello', 0)
32
+ display.text('World', 1)
33
+ ```
@@ -0,0 +1,9 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:test) do |test|
5
+ test.libs << 'test'
6
+ test.pattern = 'test/**/test_*.rb'
7
+ end
8
+
9
+ task :default => :test
@@ -0,0 +1,2 @@
1
+ * Figure out how to control the cursor
2
+ * Create character set for German Umlauts and load it into the device on startup
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+ require 'i2c/drivers/ss1602'
5
+
6
+ display = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27)
7
+
8
+ x = ARGV[0].to_f
9
+ r = (0..100)
10
+
11
+ unless r.include?(x)
12
+ STDERR.puts "#{x} is not within the acceptable range of #{r}"
13
+ exit 1
14
+ end
15
+
16
+ char = ARGV[1] || '#'
17
+
18
+ bar = char * (x / 100 * display.cols)
19
+ clean_bar = sprintf('%-1$*2$s', bar, display.cols)
20
+ display.text(clean_bar, 0)
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+ require 'i2c/drivers/ss1602'
5
+
6
+ trap('INT'){
7
+ exit
8
+ }
9
+
10
+ ARGF.binmode
11
+
12
+ begin
13
+ display = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27)
14
+
15
+ ARGF.each do |line|
16
+ line.split.each do |arg|
17
+ display.off
18
+ display.text(arg, 0, true)
19
+ display.on
20
+ sleep 0.5
21
+ end
22
+ end
23
+ ensure
24
+ display.clear if display
25
+ end
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ #
4
+ # Sample use:
5
+ #
6
+ # TZ='Europe/Berlin' date "+%d.%m.%Y %H:%M Uhr 24'C" | bin/ss1602
7
+ #
8
+
9
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
10
+ require 'i2c/drivers/ss1602'
11
+
12
+ trap('INT'){
13
+ exit
14
+ }
15
+
16
+ ARGF.binmode
17
+ txt = ARGF.read
18
+
19
+ d = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27)
20
+
21
+ # Spread text over lines
22
+ (0..(d.rows - 1)).each do |row|
23
+ x0 = row * d.cols
24
+ x1 = x0 + d.cols - 1
25
+
26
+ output = (txt[x0..x1] || '').chomp
27
+ d.text(output, row, true)
28
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'i2c/drivers/ss1602/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'i2c-ss1602'
8
+ spec.version = I2C::Drivers::SS1602::VERSION
9
+ spec.authors = ['Nicholas E. Rabenau']
10
+ spec.email = ['nerab@gmx.at']
11
+ spec.description = %q{Ruby driver for the SainSmart 1602 LCD display with I2C adapter}
12
+ spec.summary = %q{Driver for the SainSmart 1602 LCD display}
13
+ spec.homepage = 'https://github.com/nerab/i2c-ss1602'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_dependency 'i2c'
22
+
23
+ spec.add_development_dependency 'bundler'
24
+ spec.add_development_dependency 'rake'
25
+ spec.add_development_dependency 'guard-bundler'
26
+ spec.add_development_dependency 'guard-minitest'
27
+ spec.add_development_dependency 'fakefs'
28
+
29
+ spec.add_development_dependency 'pry'
30
+ spec.add_development_dependency 'byebug'
31
+ spec.add_development_dependency 'pry-byebug'
32
+ end
@@ -0,0 +1,10 @@
1
+ require_relative 'ss1602/version'
2
+ require_relative 'ss1602/display'
3
+
4
+ module I2C
5
+ module Drivers
6
+ module SS1602
7
+ # Your code goes here...
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,173 @@
1
+ require 'i2c'
2
+
3
+ module I2C
4
+ module Drivers
5
+ module SS1602
6
+ #
7
+ # Driver class for the SainSmart 1602 I2C LCD Display.
8
+ #
9
+ # see https://github.com/andec/i2c
10
+ #
11
+ # Parts copied from https://github.com/paulbarber/raspi-gpio/blob/master/lcd_display.py
12
+ #
13
+ class Display
14
+ attr_reader :rows, :cols, :cursor
15
+
16
+ def initialize(bus_or_bus_name, device_address)
17
+ if bus_or_bus_name.respond_to?(:write)
18
+ @device = BusDevice.new(bus_or_bus_name, device_address)
19
+ else
20
+ @device = BusDevice.new(I2C.create(bus_or_bus_name), device_address)
21
+ end
22
+
23
+ @rows = 2
24
+ @cols = 16
25
+
26
+ init_sequence
27
+
28
+ @cursor = Cursor.new(self)
29
+ end
30
+
31
+ def clear
32
+ write(COMMAND_CLEARDISPLAY)
33
+ write(COMMAND_RETURNHOME)
34
+ end
35
+
36
+ def text(string, row, pad = false)
37
+ case row
38
+ when 0
39
+ write(0x80)
40
+ when 1
41
+ write(0xC0)
42
+ else
43
+ raise "Only rows #{0..(@rows - 1)} are supported"
44
+ end
45
+
46
+ # Right-pad with spaces so that the line only shows string
47
+ string = sprintf('%-1$*2$s', string, @cols) if pad
48
+
49
+ string.each_char do |c|
50
+ write(c.ord, BIT_RS)
51
+ end
52
+ end
53
+
54
+ def on
55
+ write(COMMAND_DISPLAYCONTROL | FLAG_DISPLAYON)
56
+ end
57
+
58
+ def off
59
+ write(COMMAND_DISPLAYCONTROL | FLAG_DISPLAYOFF)
60
+ end
61
+
62
+ #
63
+ # Send a low-level command to the display
64
+ #
65
+ def write(cmd, mode = 0)
66
+ write_four_bits(mode | (cmd & 0xF0))
67
+ write_four_bits(mode | ((cmd << 4) & 0xF0))
68
+ end
69
+
70
+ private
71
+
72
+ # commands
73
+ COMMAND_CLEARDISPLAY = 0x01
74
+ COMMAND_RETURNHOME = 0x02
75
+ COMMAND_ENTRYMODESET = 0x04
76
+ COMMAND_DISPLAYCONTROL = 0x08
77
+ COMMAND_CURSORSHIFT = 0x10
78
+ COMMAND_FUNCTIONSET = 0x20
79
+ COMMAND_SETCGRAMADDR = 0x40
80
+ COMMAND_SETDDRAMADDR = 0x80
81
+
82
+ # flags for display entry mode
83
+ FLAG_ENTRYRIGHT = 0x00
84
+ FLAG_ENTRYLEFT = 0x02
85
+ FLAG_ENTRYSHIFTINCREMENT = 0x01
86
+ FLAG_ENTRYSHIFTDECREMENT = 0x00
87
+
88
+ # flags for display on/off control
89
+ FLAG_DISPLAYON = 0x04
90
+ FLAG_DISPLAYOFF = 0x00
91
+ FLAG_CURSORON = 0x02
92
+ FLAG_CURSOROFF = 0x00
93
+ FLAG_BLINKON = 0x01
94
+ FLAG_BLINKOFF = 0x00
95
+
96
+ # flags for display/cursor shift
97
+ FLAG_DISPLAYMOVE = 0x08
98
+ FLAG_CURSORMOVE = 0x00
99
+ FLAG_MOVERIGHT = 0x04
100
+ FLAG_MOVELEFT = 0x00
101
+
102
+ # flags for function set
103
+ FLAG_8BITMODE = 0x10
104
+ FLAG_4BITMODE = 0x00
105
+ FLAG_2LINE = 0x08
106
+ FLAG_1LINE = 0x00
107
+ FLAG_5x10DOTS = 0x04
108
+ FLAG_5x8DOTS = 0x00
109
+
110
+ # flags for backlight control
111
+ FLAG_BACKLIGHT = 0x08
112
+ FLAG_NOBACKLIGHT = 0x00
113
+
114
+ BIT_EN = 0b00000100 # Enable bit
115
+ BIT_RW = 0b00000010 # Read/Write bit
116
+ BIT_RS = 0b00000001 # Register select bit
117
+
118
+ class BusDevice
119
+ def initialize(bus, address)
120
+ @bus, @address = bus, address
121
+ end
122
+
123
+ def write(data)
124
+ @bus.write(@address, data)
125
+ end
126
+ end
127
+
128
+ class Cursor
129
+ def initialize(display)
130
+ @display = display
131
+ end
132
+
133
+ def on
134
+ @display.write(COMMAND_DISPLAYCONTROL | FLAG_CURSORON)
135
+ end
136
+
137
+ def off
138
+ @display.write(COMMAND_DISPLAYCONTROL | FLAG_CURSOROFF)
139
+ end
140
+ end
141
+
142
+ def init_sequence
143
+ write(0x03)
144
+ write(0x03)
145
+ write(0x03)
146
+ write(0x02)
147
+
148
+ write(COMMAND_FUNCTIONSET | FLAG_2LINE | FLAG_5x8DOTS | FLAG_4BITMODE)
149
+
150
+ on
151
+ clear
152
+ write(COMMAND_ENTRYMODESET | FLAG_ENTRYLEFT)
153
+ sleep(0.2)
154
+ end
155
+
156
+ #
157
+ # Clocks EN to latch command
158
+ #
159
+ def strobe(data)
160
+ @device.write(data | BIT_EN | FLAG_BACKLIGHT)
161
+ sleep(0.0005)
162
+ @device.write(((data & ~BIT_EN) | FLAG_BACKLIGHT))
163
+ sleep(0.001)
164
+ end
165
+
166
+ def write_four_bits(data)
167
+ @device.write(data | FLAG_BACKLIGHT)
168
+ strobe(data)
169
+ end
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,7 @@
1
+ module I2C
2
+ module Drivers
3
+ module SS1602
4
+ VERSION = '0.0.2'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module FakeFS
2
+ class File < StringIO
3
+ def ioctl(integer_cmd, arg)
4
+ # do nothing
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ require 'minitest/autorun'
2
+ require_relative '../lib/i2c/drivers/ss1602'
3
+
4
+ class MiniTest::Test
5
+ def initialize(name = nil)
6
+ @test_name = name
7
+ super(name) unless name.nil?
8
+ end
9
+
10
+ def fixture(name = @test_name)
11
+ File.join(File.dirname(__FILE__), 'fixtures', name)
12
+ end
13
+ end
@@ -0,0 +1,37 @@
1
+ require 'helper'
2
+ require 'fakefs/safe'
3
+ require_relative '../extensions/fakefs'
4
+ require 'fileutils'
5
+
6
+ class TestDisplay < MiniTest::Test
7
+ def setup
8
+ FakeFS.activate!
9
+
10
+ @io = fixture
11
+ FileUtils.mkdir_p(File.dirname(@io))
12
+ FileUtils.touch(@io)
13
+
14
+ @display = I2C::Drivers::SS1602::Display.new(@io, 0x42)
15
+ end
16
+
17
+ def teardown
18
+ FakeFS.deactivate!
19
+ end
20
+
21
+ def test_clear
22
+ @display.clear
23
+ s = File.read(@io).unpack('B*')
24
+
25
+ # Not sure why assert_equal chokes if FakeFs is still active
26
+ FakeFS.deactivate!
27
+ assert_equal('TBD', s)
28
+ end
29
+
30
+ def test_text_0
31
+ @display.text('FOOBAR', 0)
32
+ s = File.read(@io).unpack('B*')
33
+
34
+ FakeFS.deactivate!
35
+ assert_equal('TBD', s)
36
+ end
37
+ end
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: i2c-ss1602
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Nicholas E. Rabenau
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: i2c
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: fakefs
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: byebug
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-byebug
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Ruby driver for the SainSmart 1602 LCD display with I2C adapter
140
+ email:
141
+ - nerab@gmx.at
142
+ executables:
143
+ - bargraph
144
+ - spritz
145
+ - ss1602
146
+ extensions: []
147
+ extra_rdoc_files: []
148
+ files:
149
+ - ".gitignore"
150
+ - ".ruby-version"
151
+ - ".travis.yml"
152
+ - CHANGELOG
153
+ - CONTRIBUTING.md
154
+ - Gemfile
155
+ - Guardfile
156
+ - LICENSE.txt
157
+ - README.markdown
158
+ - Rakefile
159
+ - TODO.markdown
160
+ - bin/bargraph
161
+ - bin/spritz
162
+ - bin/ss1602
163
+ - i2c-ss1602.gemspec
164
+ - lib/i2c/drivers/ss1602.rb
165
+ - lib/i2c/drivers/ss1602/display.rb
166
+ - lib/i2c/drivers/ss1602/version.rb
167
+ - test/extensions/fakefs.rb
168
+ - test/helper.rb
169
+ - test/unit/test_item.rb
170
+ homepage: https://github.com/nerab/i2c-ss1602
171
+ licenses:
172
+ - MIT
173
+ metadata: {}
174
+ post_install_message:
175
+ rdoc_options: []
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ requirements: []
189
+ rubyforge_project:
190
+ rubygems_version: 2.5.1
191
+ signing_key:
192
+ specification_version: 4
193
+ summary: Driver for the SainSmart 1602 LCD display
194
+ test_files:
195
+ - test/extensions/fakefs.rb
196
+ - test/helper.rb
197
+ - test/unit/test_item.rb
198
+ has_rdoc: