pyupm_lcdks module¶
-
class
pyupm_lcdks.
LCDKS
(rs=8, enable=9, d0=4, d1=5, d2=6, d3=7, keypad=0, backlight=-1)[source]¶ Bases:
object
API for the generic LCD Keypad Shield.
ID: lcdks
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 LCD Keypad Shield uses 7 digital outputs and 1 analog input (for the keypad). The outputs are used to drive an attached LCM1602 LCD controller. This driver should be compatible with the similar LCD keypad shields from Sainsmart, DFRobot and Sparkfun.
C++ includes: lcdks.hpp
-
autoscrollOff
()[source]¶ upm_result_t autoscrollOff()
Left justify text entered from the cursor
Result of operation
-
autoscrollOn
()[source]¶ upm_result_t autoscrollOn()
Right justify text entered from the cursor
Result of operation
-
createChar
(charSlot, charData)[source]¶ upm_result_t createChar(uint8_t charSlot, std::vector< uint8_t > charData)
Create a custom character
charSlot: the character slot to write, only 8 are available
charData: A vector containing 8 bytes making up the character
Result of operation
-
entryLeftToRight
()[source]¶ upm_result_t entryLeftToRight()
set the entry mode so that characters are added left to right
Result of operation
-
entryRightToLeft
()[source]¶ upm_result_t entryRightToLeft()
set the entry mode so that characters are added right to left
Result of operation
-
getKeyValue
()[source]¶ float getKeyValue()
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.
The floating point value representing a key.
-
getRawKeyValue
()[source]¶ float getRawKeyValue()
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.
Deprecated This function is deprecated. Use getKeyValue() instead.
The floating point value representing a key.
-
home
()[source]¶ upm_result_t home()
Returns to the original coordinates (0,0)
Result of the operation
-
scrollDisplayLeft
()[source]¶ upm_result_t scrollDisplayLeft()
Scroll the display left, without changing the character RAM
Result of operation
-
scrollDisplayRight
()[source]¶ upm_result_t scrollDisplayRight()
Scroll the display right, without changing the character RAM
Result of operation
-