Exemple #1
0
	def display(self):
		global lcd
		topStart = self.position
		topEnd = topStart + 16
		top = cleanString(self.text[topStart:topEnd])
		fullArt = "~~~~~~~~~~~~~~~~"
		bottom = "                "

		if self.playPos < 0:
			bottom = fullArt
		else:
			bottom = bottom[:self.playAnimPos] + fullArt[self.playAnimPos] + bottom[self.playAnimPos+1:]
			bottom = bottom[:self.playPos] + ">" + bottom[self.playPos+1:]

		fmtText = top + "\n" + bottom
		lcd.clear()
		lcd.message(fmtText)
Exemple #2
0
    def display(self):
        global lcd
        topStart = self.position
        topEnd = topStart + 16
        top = cleanString(self.text[topStart:topEnd])
        fullArt = "~~~~~~~~~~~~~~~~"
        bottom = "                "

        if self.playPos < 0:
            bottom = fullArt
        else:
            bottom = bottom[:self.playAnimPos] + fullArt[
                self.playAnimPos] + bottom[self.playAnimPos + 1:]
            bottom = bottom[:self.playPos] + ">" + bottom[self.playPos + 1:]

        fmtText = top + "\n" + bottom
        lcd.clear()
        lcd.message(fmtText)
Exemple #3
0
def display(text):
	fmtText = cleanString(text[:16] + "\n" + text[16:])
	lcd.clear()
	lcd.message(fmtText)
Exemple #4
0
def display(text):
    fmtText = cleanString(text[:16] + "\n" + text[16:])
    lcd.clear()
    lcd.message(fmtText)