rpi_lcd16x2 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: c42a54f9093e60f9d28777f8d97f3a11fcdd05d2
4
- data.tar.gz: f7b0d6555f0f94972257bf9a45292bf35a7a4363
3
+ metadata.gz: 59ef74280beeea7588a584cd8dfa53a9a64aa114
4
+ data.tar.gz: 094ce8efd66a5c450847f8ec6a392ab1a3125ee0
5
5
  SHA512:
6
- metadata.gz: e2e66aa61980af0dc958efa218d06f18789dcd300630667d28a25906e6848191c8e4f120652be37bf4634740d7033cba6187e18aae52b344965215298395a1ee
7
- data.tar.gz: fcf61fcfc4582de9dc606921a5c076273098a1e9eaf43b72fc02ec218dc7475e1a11692903f0913945f98678a6e942e0a1ff360e0625d3a956c8bf5c3644ad64
6
+ metadata.gz: b5be1befe180c2de01443e66506b278a1930039d0c2ec934255e95a0642ec41ecb9e8c18d42a778fed656723f7ecc745fce54474f6faddce917547a427b6051d
7
+ data.tar.gz: f059823335a04ee624e34bd0a88c54ddd1c543b6b2fec514cafbe8d1fe82592120bebe33d12670c429bb69b24a60a5f7e0ed1a68b9082721bd71d386fed6c063
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rpi_lcd16x2.rb CHANGED
@@ -7,8 +7,6 @@
7
7
 
8
8
  require 'wiringpi'
9
9
 
10
- T_MS = 0.000001
11
-
12
10
 
13
11
  class RpiLcd16x2
14
12
 
@@ -74,7 +72,7 @@ class RpiLcd16x2
74
72
 
75
73
  protected
76
74
 
77
- def cmd(h) write_command; write_command h; sleep 0.01 end
75
+ def cmd(h) write_command; write_command h; sleep 0.001 end
78
76
 
79
77
  # Sets interface data length (DL), number of display line (N),
80
78
  # and character font (F).
@@ -101,7 +99,7 @@ class RpiLcd16x2
101
99
  # Indicate to LCD that command should be 'executed'
102
100
  #
103
101
  def pulse_enable()
104
- [0,1,0].each {|x| Wiringpi.digitalWrite(@p_en, x); sleep T_MS * 10}
102
+ [1,0].each {|x| Wiringpi.digitalWrite(@p_en, x)}
105
103
  end
106
104
 
107
105
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpi_lcd16x2
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
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  ZwpzKBOmi7OYBuBy3q1GGg3t+VgVp9Z4Eg2TyGWFT+vrpKHB/+jeP4Rv8827/KDs
32
32
  tlNQqZyiZthqbQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-08-12 00:00:00.000000000 Z
34
+ date: 2014-08-13 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: wiringpi
metadata.gz.sig CHANGED
Binary file