Qwiic_SerLCD_Py
v0.0.1_test-5-g73badb5
Python Driver for Qwiic I2C Serial LCDs
|
Classes | |
class | QwiicSerlcd |
This class implements the basic functions of the Qwiic SerLCD device via the I2C bus. More... | |
Functions | |
def | map (x, in_min, in_max, out_min, out_max) |
Map a value from one range to another. More... | |
Variables | |
int | DISPLAY_ADDRESS1 = 0x72 |
int | MAX_ROWS = 4 |
int | MAX_COLUMNS = 20 |
int | SPECIAL_COMMAND = 254 |
int | SETTING_COMMAND = 0x7C |
int | CLEAR_COMMAND = 0x2D |
int | CONTRAST_COMMAND = 0x18 |
int | ADDRESS_COMMAND = 0x19 |
int | SET_RGB_COMMAND = 0x2B |
int | ENABLE_SYSTEM_MESSAGE_DISPLAY = 0x2E |
int | DISABLE_SYSTEM_MESSAGE_DISPLAY = 0x2F |
int | ENABLE_SPLASH_DISPLAY = 0x30 |
int | DISABLE_SPLASH_DISPLAY = 0x31 |
int | SAVE_CURRENT_DISPLAY_AS_SPLASH = 0x0A |
int | LCD_RETURNHOME = 0x02 |
int | LCD_ENTRYMODESET = 0x04 |
int | LCD_DISPLAYCONTROL = 0x08 |
int | LCD_CURSORSHIFT = 0x10 |
int | LCD_SETDDRAMADDR = 0x80 |
int | LCD_ENTRYRIGHT = 0x00 |
int | LCD_ENTRYLEFT = 0x02 |
int | LCD_ENTRYSHIFTINCREMENT = 0x01 |
int | LCD_ENTRYSHIFTDECREMENT = 0x00 |
int | LCD_DISPLAYON = 0x04 |
int | LCD_DISPLAYOFF = 0x00 |
int | LCD_CURSORON = 0x02 |
int | LCD_CURSOROFF = 0x00 |
int | LCD_BLINKON = 0x01 |
int | LCD_BLINKOFF = 0x00 |
int | LCD_DISPLAYMOVE = 0x08 |
int | LCD_CURSORMOVE = 0x00 |
int | LCD_MOVERIGHT = 0x04 |
int | LCD_MOVELEFT = 0x00 |
def qwiic_serlcd.map | ( | x, | |
in_min, | |||
in_max, | |||
out_min, | |||
out_max | |||
) |
Map a value from one range to another.
float | x: The value to be mapped |
float | in_min: Minimum of input range |
float | in_max: Maximum of input range |
float | out_min: Minimum of output range |
float | out_max: Maximum of output range |
int qwiic_serlcd.ADDRESS_COMMAND = 0x19 |
int qwiic_serlcd.CLEAR_COMMAND = 0x2D |
int qwiic_serlcd.CONTRAST_COMMAND = 0x18 |
int qwiic_serlcd.DISABLE_SPLASH_DISPLAY = 0x31 |
int qwiic_serlcd.DISABLE_SYSTEM_MESSAGE_DISPLAY = 0x2F |
int qwiic_serlcd.DISPLAY_ADDRESS1 = 0x72 |
int qwiic_serlcd.ENABLE_SPLASH_DISPLAY = 0x30 |
int qwiic_serlcd.ENABLE_SYSTEM_MESSAGE_DISPLAY = 0x2E |
int qwiic_serlcd.LCD_BLINKOFF = 0x00 |
int qwiic_serlcd.LCD_BLINKON = 0x01 |
int qwiic_serlcd.LCD_CURSORMOVE = 0x00 |
int qwiic_serlcd.LCD_CURSOROFF = 0x00 |
int qwiic_serlcd.LCD_CURSORON = 0x02 |
int qwiic_serlcd.LCD_CURSORSHIFT = 0x10 |
int qwiic_serlcd.LCD_DISPLAYCONTROL = 0x08 |
int qwiic_serlcd.LCD_DISPLAYMOVE = 0x08 |
int qwiic_serlcd.LCD_DISPLAYOFF = 0x00 |
int qwiic_serlcd.LCD_DISPLAYON = 0x04 |
int qwiic_serlcd.LCD_ENTRYLEFT = 0x02 |
int qwiic_serlcd.LCD_ENTRYMODESET = 0x04 |
int qwiic_serlcd.LCD_ENTRYRIGHT = 0x00 |
int qwiic_serlcd.LCD_ENTRYSHIFTDECREMENT = 0x00 |
int qwiic_serlcd.LCD_ENTRYSHIFTINCREMENT = 0x01 |
int qwiic_serlcd.LCD_MOVELEFT = 0x00 |
int qwiic_serlcd.LCD_MOVERIGHT = 0x04 |
int qwiic_serlcd.LCD_RETURNHOME = 0x02 |
int qwiic_serlcd.LCD_SETDDRAMADDR = 0x80 |
int qwiic_serlcd.MAX_COLUMNS = 20 |
int qwiic_serlcd.MAX_ROWS = 4 |
int qwiic_serlcd.SAVE_CURRENT_DISPLAY_AS_SPLASH = 0x0A |
int qwiic_serlcd.SET_RGB_COMMAND = 0x2B |
int qwiic_serlcd.SETTING_COMMAND = 0x7C |
int qwiic_serlcd.SPECIAL_COMMAND = 254 |