SAINSMARTKS Class
- ID: sainsmartks
- Name: LCD Keypad Shield
- Category: display
- Manufacturer: sainsmart dfrobot sparkfun
- Link: http://www.sainsmart.com/sainsmart-1602-lcd-keypad-shield-for-arduino-duemilanove-uno-mega2560-mega1280.html
- Link: http://www.dfrobot.com/index.php?route=product/product&product_id=51
- Link: https://www.sparkfun.com/products/13293
- Connection: gpio analog
The Sainsmart LCD Keypad Shield uses 6 digital outputs and 1 analog input (for the keypad). The outputs are used to drive an attached LCM1602 LCD controller. This driver should also be compatible with the similar LCD keypad shields from DFRobot and Sparkfun.
Item Index
Methods
Methods
SAINSMARTKS
-
rs
-
enable
-
d0
-
d1
-
d2
-
d3
-
keypad
SAINSMARTKS constructor
As this is a shield, you will not likely have any choice over the pins that are used. For this reason, we provide defaults for all of them b of course they can be changed if your device is different.
Parameters:
-
rs
Numberregister select pin
-
enable
Numberenable pin
-
d0
Numberdata 0 pin
-
d1
Numberdata 1 pin
-
d2
Numberdata 2 pin
-
d3
Numberdata 3 pin
-
keypad
Numberanalog pin of the keypad
Returns:
getRawKeyValue
()
Number
returns the floating point representation of the key that is being pushed. Each key produces a different value between 0.0 and 1.0, and only one key can be read at a time.
Returns:
the floating point value representing a key