Qwiic_SerLCD_Py  v0.0.1_test-5-g73badb5
Python Driver for Qwiic I2C Serial LCDs
Loading...
Searching...
No Matches
qwiic_serlcd Namespace Reference

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
 

Function Documentation

◆ map()

def qwiic_serlcd.map (   x,
  in_min,
  in_max,
  out_min,
  out_max 
)

Map a value from one range to another.

Parameters
floatx: The value to be mapped
floatin_min: Minimum of input range
floatin_max: Maximum of input range
floatout_min: Minimum of output range
floatout_max: Maximum of output range
Returns
int The value scaled to the new range

Variable Documentation

◆ ADDRESS_COMMAND

int qwiic_serlcd.ADDRESS_COMMAND = 0x19

◆ CLEAR_COMMAND

int qwiic_serlcd.CLEAR_COMMAND = 0x2D

◆ CONTRAST_COMMAND

int qwiic_serlcd.CONTRAST_COMMAND = 0x18

◆ DISABLE_SPLASH_DISPLAY

int qwiic_serlcd.DISABLE_SPLASH_DISPLAY = 0x31

◆ DISABLE_SYSTEM_MESSAGE_DISPLAY

int qwiic_serlcd.DISABLE_SYSTEM_MESSAGE_DISPLAY = 0x2F

◆ DISPLAY_ADDRESS1

int qwiic_serlcd.DISPLAY_ADDRESS1 = 0x72

◆ ENABLE_SPLASH_DISPLAY

int qwiic_serlcd.ENABLE_SPLASH_DISPLAY = 0x30

◆ ENABLE_SYSTEM_MESSAGE_DISPLAY

int qwiic_serlcd.ENABLE_SYSTEM_MESSAGE_DISPLAY = 0x2E

◆ LCD_BLINKOFF

int qwiic_serlcd.LCD_BLINKOFF = 0x00

◆ LCD_BLINKON

int qwiic_serlcd.LCD_BLINKON = 0x01

◆ LCD_CURSORMOVE

int qwiic_serlcd.LCD_CURSORMOVE = 0x00

◆ LCD_CURSOROFF

int qwiic_serlcd.LCD_CURSOROFF = 0x00

◆ LCD_CURSORON

int qwiic_serlcd.LCD_CURSORON = 0x02

◆ LCD_CURSORSHIFT

int qwiic_serlcd.LCD_CURSORSHIFT = 0x10

◆ LCD_DISPLAYCONTROL

int qwiic_serlcd.LCD_DISPLAYCONTROL = 0x08

◆ LCD_DISPLAYMOVE

int qwiic_serlcd.LCD_DISPLAYMOVE = 0x08

◆ LCD_DISPLAYOFF

int qwiic_serlcd.LCD_DISPLAYOFF = 0x00

◆ LCD_DISPLAYON

int qwiic_serlcd.LCD_DISPLAYON = 0x04

◆ LCD_ENTRYLEFT

int qwiic_serlcd.LCD_ENTRYLEFT = 0x02

◆ LCD_ENTRYMODESET

int qwiic_serlcd.LCD_ENTRYMODESET = 0x04

◆ LCD_ENTRYRIGHT

int qwiic_serlcd.LCD_ENTRYRIGHT = 0x00

◆ LCD_ENTRYSHIFTDECREMENT

int qwiic_serlcd.LCD_ENTRYSHIFTDECREMENT = 0x00

◆ LCD_ENTRYSHIFTINCREMENT

int qwiic_serlcd.LCD_ENTRYSHIFTINCREMENT = 0x01

◆ LCD_MOVELEFT

int qwiic_serlcd.LCD_MOVELEFT = 0x00

◆ LCD_MOVERIGHT

int qwiic_serlcd.LCD_MOVERIGHT = 0x04

◆ LCD_RETURNHOME

int qwiic_serlcd.LCD_RETURNHOME = 0x02

◆ LCD_SETDDRAMADDR

int qwiic_serlcd.LCD_SETDDRAMADDR = 0x80

◆ MAX_COLUMNS

int qwiic_serlcd.MAX_COLUMNS = 20

◆ MAX_ROWS

int qwiic_serlcd.MAX_ROWS = 4

◆ SAVE_CURRENT_DISPLAY_AS_SPLASH

int qwiic_serlcd.SAVE_CURRENT_DISPLAY_AS_SPLASH = 0x0A

◆ SET_RGB_COMMAND

int qwiic_serlcd.SET_RGB_COMMAND = 0x2B

◆ SETTING_COMMAND

int qwiic_serlcd.SETTING_COMMAND = 0x7C

◆ SPECIAL_COMMAND

int qwiic_serlcd.SPECIAL_COMMAND = 254