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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rpi_lcd16x2.rb +2 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ef74280beeea7588a584cd8dfa53a9a64aa114
|
4
|
+
data.tar.gz: 094ce8efd66a5c450847f8ec6a392ab1a3125ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
[
|
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.
|
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-
|
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
|