pyupm_lcm1602 module¶
-
class
pyupm_lcm1602.
Lcm1602
(*args)[source]¶ Bases:
object
API for the LCM1602 I2C controller for HD44780-based displays.
ID: lcm1602
Name: LCD Display Driver for the LCM1602 Controller for HD44780-based Displays
Category: display
Manufacturer: adafruit sparkfun seeed
Link:https://www.adafruit.com/datasheets/TC1602A-01T.pdf
Connection: i2c gpio This supports all sizes of HD44780 displays, from 16x2 to 4x20. The controller has no idea of the actual display hardware, so it lets you write farther than you can see. These displays with such controllers are available from various manufacturers with different I2C addresses. Adafruit* TC1602A-01T seems to be a well-documented example. The driver also supports parallel GPIO connections directly to the HD44780 in case you are not using an I2C expander/backpack.
Example for LCM1602 displays that use the I2C busCode sample for GPIO based LCM1602 displays
C++ includes: lcm1602.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
-
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
-