Specifications
lcdPlot() – LCD Support (Deprecated)
Currently this function only works on the CEL ZIC2410 firmware, on evaluation boards equipped with
an LCD display. As CEL is no longer manufacturing the hardware, the function is deprecated and may
not be supported in future releases. The lcdPlot() function performs different tasks, depending on the
parameters passed to it:
Calling lcdPlot() with no parameters will trigger “LCD detection.” If an LCD is present, it will be
cleared, and the function will return True. If an LCD is not present, the function will return False.
Calling lcdPlot(x, y, isSet) will set (isSet=True) or clear (isSet=False) the pixel at the specified x, y
coordinates. The pixel resolution of the LCD is 64 rows by 128 columns. Coordinate 0,0 is in the
upper left hand corner.
Calling lcdPlot(str) will print the specified string at the current text cursor position.
Within the string, you can optionally include a “\x01” to turn inverse text on, and a “\x02” to turn
inverse text off.
Calling lcdPlot(x, y, str) will print the specified string at the specified x (in pixels) and y (in text lines,
not pixels).
Within the string, you can again turn inverse text on and off. In addition, you can specify a custom
bitmap by specifying a binary string containing:
A literal \xF0 (this must be the very first character of the string)
A byte specifying the bitmaps width in pixels
A byte specifying the bitmaps height in pixels (must be a multiple of 8)
Bytes specifying the actual bitmap pixels, in column order.
For example, the following will draw a small triangle in the upper left hand corner of the display:
lcdPlot(0, 0, "\xF0\x08\x08\xFF\x81\x82\x84\x88\x90\xA0\xC0")
len(sequence) – Return the length of a sequence
This function returns the size of parameter sequence. Currently sequence must be a string or a tuple,
but this may change in a future version of SNAPpy.
print len('123') # Returns 3
Page 60 of 202 SNAP Reference Manual Document Number 600-0007K