From b4e81c48a2b87f33c64ce56ddf90c65530cf4387 Mon Sep 17 00:00:00 2001 From: Jan Bechstein Date: Thu, 21 Jan 2016 11:12:28 +0100 Subject: [PATCH] Explain functionality of message method more detailed in comment --- Adafruit_CharLCD/Adafruit_CharLCD.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Adafruit_CharLCD/Adafruit_CharLCD.py b/Adafruit_CharLCD/Adafruit_CharLCD.py index 2d2dcdc..6ea4a97 100755 --- a/Adafruit_CharLCD/Adafruit_CharLCD.py +++ b/Adafruit_CharLCD/Adafruit_CharLCD.py @@ -232,7 +232,11 @@ class Adafruit_CharLCD(object): self.write8(LCD_ENTRYMODESET | self.displaymode) def message(self, text): - """Write text to display. Note that text can include newlines.""" + """Write text to display. Note that text can include newlines. + The message will always start on the first character of the first line. + Note that it does not clear the LCD by itself, therefore you may still + encounter fragment from previous messages, in case they were longer. + """ line = 0 # Move to left or right side depending on text direction. col = 0 if self.displaymode & LCD_ENTRYLEFT > 0 else self._cols-1