Skip to content

2.1 Release refactor

Compare
Choose a tag to compare
@tdicola tdicola released this 16 Nov 00:50

This is an update to refactor the library closer to current CircuitPython library conventions. There is a breaking change in this release! The import structure for the module has changed from explicit imports of files:

import adafruit_character_lcd

or

import adafruit_character_lcd_RGB

To a single module which contains both normal and RGB LCD classes. In addition the class names have been changed from cirpyth_char_lcd and cirpyth_char_lcd_RGB to Character_LCD and Character_LCD_RGB respectively. No other functional changes were made to the LCD classes themselves.

You will need to update your imports and class creation to match what the examples now show. For example to use the normal LCD:

import adafruit_character_lcd
lcd = adafruit_character_lcd.Character_LCD(...)

Or the RGB LCD:

import adafruit_character_lcd
lcd = adafruit_character_lcd.Character_LCD_RGB(...)

The binary mpy files for this release are only compatible with CircuitPython 2.x. Note they might not work on CircuitPython 3.0+!