SSD1306 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf915215c9f00f142ce8a43291fba8f5cfb958d7
4
- data.tar.gz: 1d48b6cf15121bb6409f122826a0386a67d43f88
3
+ metadata.gz: a8a40a8b9902a110c37e2d386ae73e54c436123f
4
+ data.tar.gz: abe4bfe12d782ca5792a5f5d1ec559ff4261fe95
5
5
  SHA512:
6
- metadata.gz: 691da270c42786c99a9cf6e419b564845facba88854dfbf9208327d7d5f1ffa07ee0a1e12167a8b702e966cb40e0b95b7d5403756d1e4fb88fe2555b740a137c
7
- data.tar.gz: ed54c7282557c13f20508c4166ef1a41e543c690dd663fe1e9a08b0f3696423946819457455454eb6929e651c64184582c33f1a8c5851afd56bef90e9e17db59
6
+ metadata.gz: 255f6d60ab5b2ac6bfb737e9b9ec8c599c3a9075e6908996aea7782619a15d9a154daca1f29740c6e98e1e044a762e972d5d312791b52533e9beb48a8c599500
7
+ data.tar.gz: 57c33c6a12897b19254cde930bf8ef0ce0d85303bdea6b40af6e962df4c45688bcd33c0758e8dd74c46f3f7f227db2c71e84b6e6df31d560dc87d0eb077729f8
@@ -138,10 +138,8 @@ SSD1306_VERTICAL_AND_LEFT_HORIZONTAL_SCROLL = 0x2A
138
138
  self.command(@pages - 1)
139
139
  # Write buffer data
140
140
  # TODO: This works for I2C only
141
- for i in (0..@buffer.length).step(8)
142
- control = 0x40
143
- @interface.write @address, control, @buffer[i..i+8].pack('c*')
144
- end
141
+ control = 0x40
142
+ @interface.write @address, control, @buffer.pack('c*')
145
143
  end
146
144
 
147
145
  #TODO Complete image processing
@@ -1,3 +1,3 @@
1
1
  module SSD1306
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SSD1306
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Bick