Skip to content

Complete refactor plus cursor_position fix

Compare
Choose a tag to compare
@kattni kattni released this 21 Nov 20:29
706a097

THIS RELEASE CHANGES HOW THE ENTIRE LIBRARY IS USED. THE API HAS CHANGED ENTIRELY.

NOW I2C/SPI BACKPACK REQUIRES EXTERNAL LIBRARIES:

  • Adafruit_CircuitPython_MCP2300x for I2C
  • Adafruit_CircuitPython_74HC595 for SPI

Adds support for RGB I2C shield kit and Pi plate. REQUIRES EXTERNAL LIBRARY:

  • Adafruit_CircuitPython_MCP2300x

Change log:

  • Import method has changed - Character_LCD is a base class with Character_LCD_Mono and Character_LCD_RGB as subclasses.
  • character_lcd_i2c, character_lcd_spi and character_lcd_rgb_i2c are separate files and should be imported separately for use with backpacks, shields or plates.
  • cursor, blink, display, message, text_direction are now properties.
  • Includes fix for backlight polarity issue - set backlight_inverted=True in the constructor if necessary.
  • Includes fix for keeping cursor displayed on screen when using cursor_position to set a coordinate location for the cursor on the display.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip install adafruit-circuitpython-charlcd.

Read the docs for info on how to use it.