display: Add a get_dimensions() method to lcd chip classes

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-11-21 18:42:06 -05:00
parent cbbc6801a0
commit a00d7b418f
4 changed files with 7 additions and 5 deletions

View file

@ -105,6 +105,8 @@ class HD44780:
return 0
def clear(self):
self.text_framebuffer[:] = ' '*80
def get_dimensions(self):
return (20, 4)
HD44780_chars = [
# Extruder (a thermometer)